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
Click to show internal directories.
Click to hide internal directories.