controller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddController

type AddController struct {
	input.Input

	// Resource is a resource in the API group
	Resource *resource.Resource
}

AddController scaffolds adds a new Controller.

func (*AddController) GetInput

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

GetInput implements input.File

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