Documentation ¶
Index ¶
- type ImageRegistry
- type Operator
- func (i *Operator) GetImageRegistry(ctx context.Context, query bson.D) (ImageRegistry, error)
- func (i *Operator) InsertImageRegistry(ctx context.Context, imageRegistry ImageRegistry) error
- func (i *Operator) ListImageRegistries(ctx context.Context, query bson.D) ([]ImageRegistry, error)
- func (i *Operator) UpdateImageRegistry(ctx context.Context, query bson.D, update bson.D) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageRegistry ¶
type ImageRegistry struct { ImageRegistryID string `bson:"image_registry_id"` ProjectID string `bson:"project_id"` ImageRegistryName string `bson:"image_registry_name"` ImageRepoName string `bson:"image_repo_name"` ImageRegistryType string `bson:"image_registry_type"` SecretName *string `bson:"secret_name"` SecretNamespace *string `bson:"secret_namespace"` IsDefault bool `bson:"is_default"` EnableRegistry *bool `bson:"enable_registry"` UpdatedAt string `bson:"updated_at"` CreatedAt *string `bson:"created_at"` IsRemoved bool `bson:"is_removed"` }
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator is used to perform operations on the database
func NewImageRegistryOperator ¶
func NewImageRegistryOperator(mongodbOperator mongodb.MongoOperator) *Operator
NewImageRegistryOperator returns a new instance of Operator
func (*Operator) GetImageRegistry ¶
func (*Operator) InsertImageRegistry ¶
func (i *Operator) InsertImageRegistry(ctx context.Context, imageRegistry ImageRegistry) error
func (*Operator) ListImageRegistries ¶
Click to show internal directories.
Click to hide internal directories.