crd

package
v0.0.0-...-71c9d12 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomCRD

func CreateCustomCRD(clientset *apiextensionsclientset.Clientset, body interface{}) (runtime.Object, error)

func DeleteCustomCRD

func DeleteCustomCRD(dynamicClient dynamic.Interface, group, version, kind, namespace, name string) error

func GetCRDPage

获取 CRD 列表

func GetCustomCRDInstanceByName

func GetCustomCRDInstanceByName(dynamicClient dynamic.Interface, group, version, kind, namespace, name string) (runtime.Object, error)

根据 group, version, kind, namespace, name 获取 CRD 实例

func GetCustomCRDPage

func GetCustomCRDPage(clientset *apiextensionsclientset.Clientset, dynamicClient dynamic.Interface, group, kind, namespace string, q *pagequery.QueryParam) (*pagequery.Page, error)

func UpdateCustomCRD

func UpdateCustomCRD(dynamicClient dynamic.Interface, group, version, kind, namespace, name string, object *runtime.Unknown) (runtime.Object, error)

根据 group, version, kind, namespace, name 更新 CRD 实例

Types

type CRDCell

implements dataselector.DataCell

func (CRDCell) GetProperty

implements dataselector.DataCell

type CustomCRD

type CustomCRD struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   interface{} `json:"spec"`
	Status interface{} `json:"status,omitempty"`
}

type CustomCRDCell

type CustomCRDCell CustomCRD

CustomCRDCell 是 CustomCRD 的包装类型,实现了 DataCell 接口

func (CustomCRDCell) GetProperty

implements dataselector.DataCell

type CustomCRDList

type CustomCRDList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []CustomCRD `json:"items"`
}

Jump to

Keyboard shortcuts

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