controller

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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