Documentation ¶
Index ¶
- func CreateCustomCRD(clientset *apiextensionsclientset.Clientset, body interface{}) (runtime.Object, error)
- func DeleteCustomCRD(dynamicClient dynamic.Interface, group, version, kind, namespace, name string) error
- func GetBestCRDVersionByGroupKind(clientset *apiextensionsclientset.Clientset, group, kind string) (*apiextensions.CustomResourceDefinitionVersion, error)
- func GetCRDPage(clientset *apiextensionsclientset.Clientset, q *pagequery.QueryParam) (*pagequery.Page, error)
- func GetCustomCRDInstanceByName(dynamicClient dynamic.Interface, group, version, kind, namespace, name string) (runtime.Object, error)
- func GetCustomCRDPage(clientset *apiextensionsclientset.Clientset, dynamicClient dynamic.Interface, ...) (*pagequery.Page, error)
- func UpdateCustomCRD(dynamicClient dynamic.Interface, group, version, kind, namespace, name string, ...) (runtime.Object, error)
- type CRDCell
- type CustomCRD
- type CustomCRDCell
- type CustomCRDList
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 GetBestCRDVersionByGroupKind ¶
func GetBestCRDVersionByGroupKind(clientset *apiextensionsclientset.Clientset, group, kind string) (*apiextensions.CustomResourceDefinitionVersion, error)
func GetCRDPage ¶
func GetCRDPage(clientset *apiextensionsclientset.Clientset, q *pagequery.QueryParam) (*pagequery.Page, error)
获取 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)
Types ¶
type CRDCell ¶
type CRDCell apiextensions.CustomResourceDefinition
implements dataselector.DataCell
func (CRDCell) GetProperty ¶
func (cell CRDCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
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 ¶
func (cell CustomCRDCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
implements dataselector.DataCell
Click to show internal directories.
Click to hide internal directories.