controller

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	machinery.TemplateMixin
	machinery.BoilerplateMixin
	machinery.RepositoryMixin
	machinery.ResourceMixin

	// input fields
	Builder kinds.WorkloadBuilder

	// template fields
	BaseImports     []string
	OtherImports    []string
	InternalImports []string
}

Controller scaffolds the workload's controller.

func (*Controller) SetTemplateDefaults

func (f *Controller) SetTemplateDefaults() error

type Phases

Controller scaffolds the workload's controller.

func (*Phases) SetTemplateDefaults

func (f *Phases) SetTemplateDefaults() error

type SuiteTest

type SuiteTest struct {
	machinery.TemplateMixin
	machinery.MultiGroupMixin
	machinery.BoilerplateMixin
	machinery.ResourceMixin

	// CRDDirectoryRelativePath define the Path for the CRD
	CRDDirectoryRelativePath string

	Force bool
}

SuiteTest scaffolds the file that sets up the controller tests nolint:maligned

func (*SuiteTest) GetCodeFragments

func (f *SuiteTest) GetCodeFragments() machinery.CodeFragmentsMap

GetCodeFragments implements file.Inserter.

func (*SuiteTest) GetMarkers

func (f *SuiteTest) GetMarkers() []machinery.Marker

GetMarkers implements file.Inserter.

func (*SuiteTest) SetTemplateDefaults

func (f *SuiteTest) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template.

Jump to

Keyboard shortcuts

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