Documentation ¶
Index ¶
- func FileToCRD(fileName string) (*apiextensions.CustomResourceDefinition, error)
- func GetCRD(group, version, kind string) (*apiextensions.CustomResourceDefinition, error)
- func GetCRDForGVK(gvk schema.GroupVersionKind) (*apiextensions.CustomResourceDefinition, error)
- func GetCRDForKind(kind string) (*apiextensions.CustomResourceDefinition, error)
- func LoadCRDs() ([]apiextensions.CustomResourceDefinition, error)
- type CrdLoader
- func (l *CrdLoader) GetCRD(group, version, kind string) (*apiextensions.CustomResourceDefinition, error)
- func (l *CrdLoader) GetCRDForGVK(gvk schema.GroupVersionKind) (*apiextensions.CustomResourceDefinition, error)
- func (l *CrdLoader) GetCRDForKind(kind string) (*apiextensions.CustomResourceDefinition, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileToCRD ¶
func FileToCRD(fileName string) (*apiextensions.CustomResourceDefinition, error)
func GetCRD ¶
func GetCRD(group, version, kind string) (*apiextensions.CustomResourceDefinition, error)
Find a matching CRD from disk, the group and version parameters are optional
func GetCRDForGVK ¶
func GetCRDForGVK(gvk schema.GroupVersionKind) (*apiextensions.CustomResourceDefinition, error)
Find a matching CRD from disk
func GetCRDForKind ¶
func GetCRDForKind(kind string) (*apiextensions.CustomResourceDefinition, error)
Find a matching CRD from disk
func LoadCRDs ¶
func LoadCRDs() ([]apiextensions.CustomResourceDefinition, error)
Types ¶
type CrdLoader ¶
type CrdLoader struct {
// contains filtered or unexported fields
}
func (*CrdLoader) GetCRD ¶
func (l *CrdLoader) GetCRD(group, version, kind string) (*apiextensions.CustomResourceDefinition, error)
Find a matching CRD in the API server, the group and version parameters are optional
func (*CrdLoader) GetCRDForGVK ¶
func (l *CrdLoader) GetCRDForGVK(gvk schema.GroupVersionKind) (*apiextensions.CustomResourceDefinition, error)
Find a matching CRD in the API server
func (*CrdLoader) GetCRDForKind ¶
func (l *CrdLoader) GetCRDForKind(kind string) (*apiextensions.CustomResourceDefinition, error)
Find a matching CRD in the API server
Click to show internal directories.
Click to hide internal directories.