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 LoadAllCRDs() ([]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 LoadAllCRDs ¶ added in v1.114.0
func LoadAllCRDs() ([]apiextensions.CustomResourceDefinition, error)
LoadAllCRDs returns the list of all the CRDs Config Connector manages, including the ones map to GCP resources, and the ones used to manage the Config Connector operator.
func LoadCRDs ¶
func LoadCRDs() ([]apiextensions.CustomResourceDefinition, error)
LoadCRDs returns the list of CRDs Config Connector manages that map to GCP resources.
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.