Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserTagsNotDefined = errors.New("user did not define any tags")
UserTagsNotDefined is returned when user defined tags is empty; used for updating status condition.
Functions ¶
func NewDriver ¶
func NewDriver(ctx context.Context, c *imageregistryv1.ImageRegistryConfigStorageGCS, listers *regopclient.StorageListers) *driver
Types ¶
type GCS ¶
func GetConfig ¶
func GetConfig(listers *regopclient.StorageListers) (*GCS, error)
GetConfig reads configuration for the GCS cloud platform services.
type TagBindingsService ¶
type TagBindingsService interface { DeduplicateTags(context.Context, string, []string) []string CreateTagBindings(context.Context, string, []string) error Close() }
TagBindingsService is the interface that wraps methods for resource tag binding operations.
type TagService ¶
type TagService interface { AddTagsToStorageBucket(context.Context, *imageregistryv1.Config) error Close() }
TagService is the interface that wraps methods for resource tag operations.
func NewTagManager ¶
func NewTagManager(ctx context.Context, listers *regopclient.StorageListers, region string) (TagService, error)
NewTagManager creates a tagServiceManager instance. Explicit Close() must be called when tag service is no longer needed to Close() all clients.
Click to show internal directories.
Click to hide internal directories.