resources

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 14 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.

Index

Constants

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) error

DescribeObject describes an object.

func GetAllObject

func GetAllObject(cmd *cobra.Command) 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) 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
	Status map[string]interface{}
}

NodeStatus is the status of a node.

type ObjectStatus

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

ObjectStatus is the status of an object.

Jump to

Keyboard shortcuts

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