Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageMetadata ¶
type PackageMetadata interface { // GroupVersion is the k8s Group/Version to use for the generated types. GroupVersion() *schema.GroupVersion // TargetPackage is the package into which the k8s types will be generated. TargetPackage() *types.Package // RawTypes is the list of types for which k8s types should be generated. RawTypes() []*types.Type // KubeTypes is the list of k8s types to be generated for the given rawType. KubeTypes(rawType *types.Type) []KubeType // AllKubeTypes is the list of all k8s types to be generated AllKubeTypes() []KubeType // AddMetadata is used to add metadata collected by the scanner. AddMetadataForType(rawType *types.Type, kubeTypes ...KubeType) error // Validate is used to validate the metadata prior to generation Validate() []error }
PackageMetadata is the interface used to provide source data used by the package generators.
type Store ¶
type Store interface { // MetadataForGV returns the package metadata associated with the Group/Version MetadataForGV(gv *schema.GroupVersion) PackageMetadata // AllMetadata returns the source metadata. AllMetadata() []PackageMetadata // Validate is used to validate the metadata prior to generation Validate() []error }
Store is used to store/access the source metadata collected by the scanner
Click to show internal directories.
Click to hide internal directories.