create

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCreate

func AddCreate(cmd *cobra.Command)

func AddCreateGroup

func AddCreateGroup(cmd *cobra.Command)

func AddCreateResource

func AddCreateResource(cmd *cobra.Command)

func AddCreateSubresource

func AddCreateSubresource(cmd *cobra.Command)

func AddCreateVersion

func AddCreateVersion(cmd *cobra.Command)

func RegisterResourceFlags

func RegisterResourceFlags(cmd *cobra.Command)

func RunCreate

func RunCreate(cmd *cobra.Command, args []string)

func RunCreateGroup

func RunCreateGroup(cmd *cobra.Command, args []string)

func RunCreateResource

func RunCreateResource(cmd *cobra.Command, args []string)

func RunCreateSubresource

func RunCreateSubresource(cmd *cobra.Command, args []string)

func RunCreateVersion

func RunCreateVersion(cmd *cobra.Command, args []string)

func ValidateResourceFlags

func ValidateResourceFlags()

Types

type Controller added in v1.12.3

type Controller struct {
	input.Input

	// Resource is the Resource to make the Controller for
	Resource *resource.Resource

	// ResourcePackage is the package of the Resource
	ResourcePackage string

	// Plural is the plural lowercase of kind
	Plural string

	// Is the Group + "." + Domain for the Resource
	GroupDomain string
}

Controller scaffolds a Controller for a Resource

func (*Controller) GetInput added in v1.12.3

func (a *Controller) GetInput() (input.Input, error)

GetInput implements input.File

type SuiteTest added in v1.12.3

type SuiteTest struct {
	input.Input

	// Resource is the Resource to make the Controller for
	Resource *resource.Resource
}

SuiteTest scaffolds a SuiteTest

func (*SuiteTest) GetInput added in v1.12.3

func (a *SuiteTest) GetInput() (input.Input, error)

GetInput implements input.File

Jump to

Keyboard shortcuts

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