Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToScheme ¶
type AddToScheme struct {
input.Input
// Resource is a resource in the API group
Resource *Resource
}
AddToScheme scaffolds the code to add the resource to a SchemeBuilder.
type CRD ¶
type CRD struct {
input.Input
// Scope is Namespaced or Cluster
Scope string
// Plural is the plural lowercase of kind
Plural string
// Resource is a resource in the API group
Resource *Resource
}
CRD scaffolds a CRD yaml file.
type Doc ¶
type Doc struct {
input.Input
// Resource is a resource for the API version
Resource *Resource
// Comments are additional lines to write to the doc.go file
Comments []string
}
Doc scaffolds the pkg/apis/group/version/doc.go directory
type Register ¶
type Register struct {
input.Input
// Resource is the resource to scaffold the types_test.go file for
Resource *Resource
}
Register scaffolds the pkg/apis/group/version/register.go file
type Resource ¶
type Resource struct {
// Namespaced is true if the resource is namespaced
Namespaced bool
// Group is the API Group. Does not contain the domain.
Group string
// Version is the API version - e.g. v1beta1
Version string
// Kind is the API Kind.
Kind string
// Resource is the API Resource.
Resource string
// ShortNames is the list of resource shortnames.
ShortNames []string
// CreateExampleReconcileBody will create a Deployment in the Reconcile example
CreateExampleReconcileBody bool
}
Resource contains the information required to scaffold files for a resource.
type RoleBinding ¶
type RoleBinding struct {
input.Input
// Resource is a resource in the API group
Resource *Resource
}
RoleBinding scaffolds the config/manager/group_rolebinding_rbac.yaml file
type Types ¶
type Types struct {
input.Input
// Resource is the resource to scaffold the types_test.go file for
Resource *Resource
}
Types scaffolds the pkg/apis/group/version/kind_types.go file to define the schema for an API
type TypesTest ¶
type TypesTest struct {
input.Input
// Resource is the resource to scaffold the types_test.go file for
Resource *Resource
}
TypesTest scaffolds the pkg/apis/group/version/kind_types_test.go file to test the API schema
type VersionSuiteTest ¶
type VersionSuiteTest struct {
input.Input
// Resource is the resource to scaffold the types_test.go file for
Resource *Resource
}
VersionSuiteTest scaffolds the version_suite_test.go file to setup the versions test