metadata

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMetadataInto

func ExtractMetadataInto(r pagination.Page, v interface{}) error

func MetadataItemURL

func MetadataItemURL(c *gcorecloud.ServiceClient, id string, key string) string

func MetadataURL

func MetadataURL(c *gcorecloud.ServiceClient, id string) string

func ResourceActionURL

func ResourceActionURL(c *gcorecloud.ServiceClient, id string, action string) string

Types

type Metadata

type Metadata struct {
	Key      string `json:"key"`
	Value    string `json:"value"`
	ReadOnly bool   `json:"read_only"`
}

func ExtractMetadata

func ExtractMetadata(r pagination.Page) ([]Metadata, error)

ExtractMetadata accepts a Page struct, specifically a MetadataPage struct, and extracts the elements into a slice of securitygroups metadata structs. In other words, a generic collection is mapped into a relevant slice.

type MetadataActionResult

type MetadataActionResult struct {
	gcorecloud.ErrResult
}

MetadataActionResult represents the result of a creation, delete or update operation(no content)

type MetadataPage

type MetadataPage struct {
	pagination.LinkedPageBase
}

func (MetadataPage) IsEmpty

func (r MetadataPage) IsEmpty() (bool, error)

IsEmpty checks whether a MetadataPage struct is empty.

type MetadataResult

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

MetadataResult represents the result of a get operation

func (MetadataResult) Extract

func (r MetadataResult) Extract() (*Metadata, error)

Directories

Path Synopsis
v1
v2

Jump to

Keyboard shortcuts

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