create

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 18 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()

func Yesno added in v1.12.4

func Yesno(reader *bufio.Reader) bool

Yesno reads from stdin looking for one of "y", "yes", "n", "no" and returns true for "y" and false for "n"

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

type Test added in v1.15.0

type Test struct {
	input.Input

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

	// ResourcePackage is the package of the Resource
	ResourcePackage string
}

Test scaffolds a Controller Test

func (*Test) GetInput added in v1.15.0

func (a *Test) 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