create

package
v0.0.0-...-2826bdd Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 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

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

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

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

GetInput implements input.File

type SuiteTest

type SuiteTest struct {
	input.Input

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

SuiteTest scaffolds a SuiteTest

func (*SuiteTest) GetInput

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

GetInput implements input.File

type Test

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

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