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
- func ApplyCustomData(cmd *cobra.Command, s *general.Spec) error
- func ApplyCustomDataKind(cmd *cobra.Command, s *general.Spec) error
- func ApplyObject(cmd *cobra.Command, s *general.Spec) error
- func CreateCustomData(cmd *cobra.Command, s *general.Spec) error
- func CreateCustomDataKind(cmd *cobra.Command, s *general.Spec) error
- func CreateObject(cmd *cobra.Command, s *general.Spec) error
- func CustomData() *api.APIResource
- func CustomDataKind() *api.APIResource
- func DeleteCustomData(cmd *cobra.Command, cdk string, names []string, all bool) error
- func DeleteCustomDataKind(cmd *cobra.Command, names []string, all bool) error
- func DeleteMember(_ *cobra.Command, names []string) error
- func DeleteObject(cmd *cobra.Command, kind string, names []string, all bool) error
- func DescribeCustomData(cmd *cobra.Command, args *general.ArgInfo) error
- func DescribeCustomDataKind(cmd *cobra.Command, args *general.ArgInfo) error
- func DescribeMember(_ *cobra.Command, args *general.ArgInfo) error
- func DescribeObject(cmd *cobra.Command, args *general.ArgInfo, kind string, ...) error
- func EditCustomData(cmd *cobra.Command, args *general.ArgInfo) error
- func EditCustomDataKind(cmd *cobra.Command, args *general.ArgInfo) error
- func EditObject(cmd *cobra.Command, args *general.ArgInfo, kind string) error
- func GetAllObject(cmd *cobra.Command, flags *ObjectNamespaceFlags) error
- func GetCustomData(cmd *cobra.Command, args *general.ArgInfo) error
- func GetCustomDataKind(cmd *cobra.Command, args *general.ArgInfo) error
- func GetMember(_ *cobra.Command, args *general.ArgInfo) (err error)
- func GetObject(cmd *cobra.Command, args *general.ArgInfo, kind string, ...) error
- func GetResourceKind(arg string) (string, error)
- func Member() *api.APIResource
- func ObjectAPIResources() ([]*api.APIResource, error)
- type NodeStatus
- type ObjectNamespaceFlags
- type ObjectStatus
Constants ¶
const DefaultNamespace = "default"
const MemberKind = "Member"
MemberKind is the kind of the member.
Variables ¶
This section is empty.
Functions ¶
func ApplyCustomData ¶
ApplyCustomData applies the custom data.
func ApplyCustomDataKind ¶
ApplyCustomDataKind applies the custom data kind.
func ApplyObject ¶
ApplyObject applies an object.
func CreateCustomData ¶
CreateCustomData creates the custom data.
func CreateCustomDataKind ¶
CreateCustomDataKind creates the custom data kind.
func CreateObject ¶
CreateObject creates an object.
func CustomDataKind ¶
func CustomDataKind() *api.APIResource
CustomDataKind is CustomDataKind resource.
func DeleteCustomData ¶
DeleteCustomData deletes the custom data.
func DeleteCustomDataKind ¶
DeleteCustomDataKind deletes the custom data kind.
func DeleteMember ¶
DeleteMember deletes the member.
func DeleteObject ¶
DeleteObject deletes an object.
func DescribeCustomData ¶
DescribeCustomData describes the custom data.
func DescribeCustomDataKind ¶
DescribeCustomDataKind describes the custom data kind.
func DescribeMember ¶
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 EditCustomDataKind ¶ added in v2.6.1
EditCustomDataKind edit the custom data kind.
func EditObject ¶ added in v2.6.1
EditObject edit an object.
func GetAllObject ¶
func GetAllObject(cmd *cobra.Command, flags *ObjectNamespaceFlags) error
GetAllObject gets all objects.
func GetCustomData ¶
GetCustomData gets the custom data.
func GetCustomDataKind ¶
GetCustomDataKind returns the custom data kind.
func GetObject ¶
func GetObject(cmd *cobra.Command, args *general.ArgInfo, kind string, flags *ObjectNamespaceFlags) error
GetObject gets an object.
func GetResourceKind ¶
GetResourceKind returns the kind of the resource.
func ObjectAPIResources ¶
func ObjectAPIResources() ([]*api.APIResource, error)
ObjectAPIResources returns the object api resources.
Types ¶
type NodeStatus ¶
NodeStatus is the status of a node.
type ObjectNamespaceFlags ¶ added in v2.7.1
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.