gcs

package
v0.0.0-...-75a1a27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

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

Types

type GCS

type GCS struct {
	KeyfileData string
	Region      string
	ProjectID   string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL