Skip to content

Commit

Permalink
added some warning comments
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <[email protected]>
  • Loading branch information
Min Min committed Dec 31, 2021
1 parent b87b590 commit 8cdbe85
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ type RegistryNamespace struct {
RegType string `bson:"reg_type" json:"reg_type"`
RegProvider string `bson:"reg_provider" json:"reg_provider"`
IsDefault bool `bson:"is_default" json:"is_default"`
Namespace string `bson:"namespace,omitempty" json:"namespace,omitempty"`
AccessKey string `bson:"access_key" json:"access_key"`
SecretKey string `bson:"secret_key" json:"secret_key"`
Region string `bson:"region,omitempty" json:"region,omitempty"`
UpdateTime int64 `bson:"update_time" json:"update_time"`
UpdateBy string `bson:"update_by" json:"update_by"`
// Namespace is NOT a required field, this could be empty when the registry is AWS ECR or so.
// use with CAUTION !!!!
Namespace string `bson:"namespace,omitempty" json:"namespace,omitempty"`
AccessKey string `bson:"access_key" json:"access_key"`
SecretKey string `bson:"secret_key" json:"secret_key"`
Region string `bson:"region,omitempty" json:"region,omitempty"`
UpdateTime int64 `bson:"update_time" json:"update_time"`
UpdateBy string `bson:"update_by" json:"update_by"`
}

func (ns *RegistryNamespace) Validate() error {
Expand Down

0 comments on commit 8cdbe85

Please sign in to comment.