tags

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOpts

type CreateOpts struct {
	// Tags is a set of tags.
	Tags []string `json:"tags" required:"true"`
}

CreateOpts implements CreateOptsBuilder

func (CreateOpts) ToTagsCreateMap

func (opts CreateOpts) ToTagsCreateMap() (map[string]interface{}, error)

ToImageCreateMap assembles a request body based on the contents of a CreateOpts.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	// Returns value that can be passed to json.Marshal
	ToTagsCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder describes struct types that can be accepted by the Create call. The CreateOpts struct in this package does.

type CreateResult

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

CreateResult represents the result of a Create operation

func Create

func Create(client *golangsdk.ServiceClient, server_id string, opts CreateOptsBuilder) (r CreateResult)

Create implements create tags request

func (CreateResult) Extract

func (r CreateResult) Extract() (*Tags, error)

Extract interprets any commonResult as a Tags.

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

DeleteResult model

func Delete

func Delete(client *golangsdk.ServiceClient, server_id string) (r DeleteResult)

Delete implements image delete request

type GetResult

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

GetResult represents the result of a Get operation

func Get

func Get(client *golangsdk.ServiceClient, server_id string) (r GetResult)

Get implements tags get request

func (GetResult) Extract

func (r GetResult) Extract() (*Tags, error)

Extract interprets any commonResult as a Tags.

type Tags

type Tags struct {
	// Tags is a list of any tags. Tags are arbitrarily defined strings
	// attached to a resource.
	Tags []string `json:"tags"`
}

Tags model

Jump to

Keyboard shortcuts

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