resources

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package resources provides the resources utilities for the client.

Package resources provides the resources utilities for the client.

Package resources provides the resources utilities for the client.

Package resources provides the resources utilities for the client.

Package resources provides the resources utilities for the client.

Package resources provides the resources utilities for the client.

Index

Constants

View Source
const DefaultNamespace = "default"
View Source
const MemberKind = "Member"

MemberKind is the kind of the member.

Variables

This section is empty.

Functions

func ApplyCustomData

func ApplyCustomData(cmd *cobra.Command, s *general.Spec) error

ApplyCustomData applies the custom data.

func ApplyCustomDataKind

func ApplyCustomDataKind(cmd *cobra.Command, s *general.Spec) error

ApplyCustomDataKind applies the custom data kind.

func ApplyObject

func ApplyObject(cmd *cobra.Command, s *general.Spec) error

ApplyObject applies an object.

func CreateCustomData

func CreateCustomData(cmd *cobra.Command, s *general.Spec) error

CreateCustomData creates the custom data.

func CreateCustomDataKind

func CreateCustomDataKind(cmd *cobra.Command, s *general.Spec) error

CreateCustomDataKind creates the custom data kind.

func CreateObject

func CreateObject(cmd *cobra.Command, s *general.Spec) error

CreateObject creates an object.

func CustomData

func CustomData() *api.APIResource

CustomData is CustomData resource.

func CustomDataKind

func CustomDataKind() *api.APIResource

CustomDataKind is CustomDataKind resource.

func DeleteCustomData

func DeleteCustomData(cmd *cobra.Command, cdk string, names []string, all bool) error

DeleteCustomData deletes the custom data.

func DeleteCustomDataKind

func DeleteCustomDataKind(cmd *cobra.Command, names []string, all bool) error

DeleteCustomDataKind deletes the custom data kind.

func DeleteMember

func DeleteMember(_ *cobra.Command, names []string) error

DeleteMember deletes the member.

func DeleteObject

func DeleteObject(cmd *cobra.Command, kind string, names []string, all bool) error

DeleteObject deletes an object.

func DescribeCustomData

func DescribeCustomData(cmd *cobra.Command, args *general.ArgInfo) error

DescribeCustomData describes the custom data.

func DescribeCustomDataKind

func DescribeCustomDataKind(cmd *cobra.Command, args *general.ArgInfo) error

DescribeCustomDataKind describes the custom data kind.

func DescribeMember

func DescribeMember(_ *cobra.Command, args *general.ArgInfo) error

DescribeMember describes the member.

func DescribeObject

func DescribeObject(cmd *cobra.Command, args *general.ArgInfo, kind string, flags *ObjectNamespaceFlags) error

DescribeObject describes an object.

func EditCustomData added in v2.6.1

func EditCustomData(cmd *cobra.Command, args *general.ArgInfo) error

func EditCustomDataKind added in v2.6.1

func EditCustomDataKind(cmd *cobra.Command, args *general.ArgInfo) error

EditCustomDataKind edit the custom data kind.

func EditObject added in v2.6.1

func EditObject(cmd *cobra.Command, args *general.ArgInfo, kind string) error

EditObject edit an object.

func GetAllObject

func GetAllObject(cmd *cobra.Command, flags *ObjectNamespaceFlags) error

GetAllObject gets all objects.

func GetCustomData

func GetCustomData(cmd *cobra.Command, args *general.ArgInfo) error

GetCustomData gets the custom data.

func GetCustomDataKind

func GetCustomDataKind(cmd *cobra.Command, args *general.ArgInfo) error

GetCustomDataKind returns the custom data kind.

func GetMember

func GetMember(_ *cobra.Command, args *general.ArgInfo) (err error)

GetMember gets the member.

func GetObject

func GetObject(cmd *cobra.Command, args *general.ArgInfo, kind string, flags *ObjectNamespaceFlags) error

GetObject gets an object.

func GetResourceKind

func GetResourceKind(arg string) (string, error)

GetResourceKind returns the kind of the resource.

func Member

func Member() *api.APIResource

Member returns the member resource.

func ObjectAPIResources

func ObjectAPIResources() ([]*api.APIResource, error)

ObjectAPIResources returns the object api resources.

Types

type NodeStatus

type NodeStatus struct {
	Node   string                 `json:"node"`
	Status map[string]interface{} `json:"status"`
}

NodeStatus is the status of a node.

type ObjectNamespaceFlags added in v2.7.1

type ObjectNamespaceFlags struct {
	Namespace    string
	AllNamespace bool
}

ObjectNamespaceFlags contains the flags for get objects.

type ObjectStatus

type ObjectStatus struct {
	Spec   map[string]interface{} `json:"spec"`
	Status map[string]interface{} `json:"status"`
}

ObjectStatus is the status of an TrafficObject.

Jump to

Keyboard shortcuts

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