nddgen

package
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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/netw-device-driver/ndd-runtime/apis/common/v1"

	ResourceAlias  = "resource"
	ResourceImport = "github.com/netw-device-driver/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

func GenerateManaged(filename, header string, p *packages.Package) error

GenerateManaged generates the resource.Managed method set.

func GenerateManagedList

func GenerateManagedList(filename, header string, p *packages.Package) error

GenerateManagedList generates the resource.ManagedList method set.

func GenerateNetworkNode added in v0.1.11

func GenerateNetworkNode(filename, header string, p *packages.Package) error

GenerateNetworkNode generates the resource.NetworkNode method set.

func GenerateNetworkNodeUsage added in v0.1.11

func GenerateNetworkNodeUsage(filename, header string, p *packages.Package) error

GenerateNetworkNodeUsage generates the resource.NetworkNodeUsage method set.

func GenerateNetworkNodeUsageList added in v0.1.11

func GenerateNetworkNodeUsageList(filename, header string, p *packages.Package) error

GenerateNetworkNodeUsageList generates the resource.NetworkNodeUsageList method set.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL