metadata

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MPL-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var V1 = Operations{
	ListAll:        v1.MetadataListAll,
	Get:            v1.MetadataGet,
	Delete:         v1.MetadataDelete,
	CreateOrUpdate: v1.MetadataCreateOrUpdate,
	Replace:        v1.MetadataReplace,
}

V1 calls the /metadata and /metadata_item endpoints of a resource

Functions

func NewMetadataCreateCommand

func NewMetadataCreateCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func NewMetadataDeleteCommand

func NewMetadataDeleteCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func NewMetadataGetCommand

func NewMetadataGetCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func NewMetadataListCommand

func NewMetadataListCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func NewMetadataReplaceCommand

func NewMetadataReplaceCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func NewMetadataUpdateCommand

func NewMetadataUpdateCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func StringSliceToMap

func StringSliceToMap(slice []string) (map[string]string, error)

Types

type ClientConstructor

type ClientConstructor func(c *cli.Context) (*gcorecloud.ServiceClient, error)

type Operations added in v0.33.0

type Operations struct {
	ListAll        func(client *gcorecloud.ServiceClient, id string) ([]metadata.Metadata, error)
	Get            func(client *gcorecloud.ServiceClient, id string, key string) metadata.MetadataResult
	Delete         func(client *gcorecloud.ServiceClient, id string, key string) metadata.MetadataActionResult
	CreateOrUpdate func(client *gcorecloud.ServiceClient, id string, opts map[string]string) metadata.MetadataActionResult
	Replace        func(client *gcorecloud.ServiceClient, id string, opts map[string]string) metadata.MetadataActionResult
}

Operations are the SDK calls that the metadata commands make

func (Operations) NewCreateCommand added in v0.33.0

func (ops Operations) NewCreateCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func (Operations) NewDeleteCommand added in v0.33.0

func (ops Operations) NewDeleteCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func (Operations) NewGetCommand added in v0.33.0

func (ops Operations) NewGetCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func (Operations) NewListCommand added in v0.33.0

func (ops Operations) NewListCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func (Operations) NewReplaceCommand added in v0.33.0

func (ops Operations) NewReplaceCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

func (Operations) NewUpdateCommand added in v0.33.0

func (ops Operations) NewUpdateCommand(cc ClientConstructor, usage string, argsUsage string, errorText string) *cli.Command

Jump to

Keyboard shortcuts

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