label

package
v0.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLabel

func CreateLabel(key string, value string, isInternal bool) (*v1.Label, error)

func GetLabel added in v0.1.1

func GetLabel(id string, conn *sdk.Connection) (*v1.Label, error)

func GetLabels added in v0.1.1

func GetLabels(query string, isInternal bool, size int, conn *sdk.Connection) ([]*v1.Label, error)

Types

type Label

type Label struct {
	types.Meta
	ID             string    `json:"id"`
	CreatedAt      time.Time `json:"created_at"`
	Key            string    `json:"key"`
	UpdatedAt      time.Time `json:"updated_at"`
	Value          string    `json:"value"`
	Internal       bool      `json:"internal"`
	HREF           string    `json:"href"`
	Type           string    `json:"type"`
	AccountID      string    `json:"account_id,omitempty"`
	SubscriptionID string    `json:"subscription_id,omitempty"`
	OrganizationID string    `json:"organization_id,omitempty"`
	ManagedBy      string    `json:"managed_by,omitempty"`
}

type LabelsList

type LabelsList []Label

func PresentLabels

func PresentLabels(labels []*v1.Label) LabelsList

Jump to

Keyboard shortcuts

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