Documentation ¶
Index ¶
- Constants
- func Execute()
- func GenerateManaged(filename, header string, p *packages.Package) error
- func GenerateManagedList(filename, header string, p *packages.Package) error
- func GenerateNetworkNode(filename, header string, p *packages.Package) error
- func GenerateNetworkNodeUsage(filename, header string, p *packages.Package) error
- func GenerateNetworkNodeUsageList(filename, header string, p *packages.Package) error
Constants ¶
View Source
const ( // LoadMode used to load all packages. LoadMode = packages.NeedName | packages.NeedFiles | packages.NeedImports | packages.NeedDeps | packages.NeedTypes | packages.NeedSyntax // DisableMarker used to disable generation of managed resource methods for // a type that otherwise appears to be a managed resource that is missing a // subset of its methods. DisableMarker = "ndd:generate:methods" )
View Source
const ( CoreAlias = "corev1" CoreImport = "k8s.io/api/core/v1" RuntimeAlias = "nddv1" RuntimeImport = "github.com/yndd/ndd-runtime/apis/common/v1" ResourceAlias = "resource" ResourceImport = "github.com/yndd/ndd-runtime/pkg/resource" )
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GenerateManaged ¶
GenerateManaged generates the resource.Managed method set.
func GenerateManagedList ¶
GenerateManagedList generates the resource.ManagedList method set.
func GenerateNetworkNode ¶
GenerateNetworkNode generates the resource.NetworkNode method set.
func GenerateNetworkNodeUsage ¶
GenerateNetworkNodeUsage generates the resource.NetworkNodeUsage method set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.