tagging

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagConfig

type TagConfig struct {
	Key          string            `json:"key"`
	Value        string            `json:"value"`
	Metadata     map[string]string `json:"metadata"`
	Expiration   *time.Time        `json:"expiration,omitempty"`
	Restrictions []string          `json:"restrictions,omitempty"`
}

type TaggingSystem

type TaggingSystem struct {
	// contains filtered or unexported fields
}

func (*TaggingSystem) AddTag

func (ts *TaggingSystem) AddTag(ctx context.Context, resourceID string, config TagConfig) error

func (*TaggingSystem) GetTags

func (ts *TaggingSystem) GetTags(ctx context.Context, resourceID string) (map[string]string, error)

func (*TaggingSystem) RemoveTag

func (ts *TaggingSystem) RemoveTag(ctx context.Context, resourceID string, key string) error

Jump to

Keyboard shortcuts

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