gcp

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagsManager

type TagsManager interface {
	LookupKey(ctx context.Context, projectID string, key string) (*resourcemanagerpb.TagKey, error)
	CreateKey(ctx context.Context, projectID string, key string) (*resourcemanagerpb.TagKey, error)
	LookupValue(ctx context.Context, projectID string, key string, value string) (*resourcemanagerpb.TagValue, error)
	CreateValue(ctx context.Context, projectID string, key string, value string) (*resourcemanagerpb.TagValue, error)
	GetProjectInfo(ctx context.Context, projectID string) (*resourcemanagerpb.Project, error)
	DeleteValueIfUnused(ctx context.Context, projectID string, key string, value string) error
	DeleteKeyIfUnused(ctx context.Context, projectID string, key string) error
}

func NewTagsManager

func NewTagsManager(keysClient *resourcemanager.TagKeysClient, valuesClient *resourcemanager.TagValuesClient, projectClient *resourcemanager.ProjectsClient) TagsManager

Jump to

Keyboard shortcuts

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