controller

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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

	PackageName       string
	RBACRules         *[]workloadv1.RBACRule
	OwnershipRules    *[]workloadv1.OwnershipRule
	HasChildResources bool
	IsStandalone      bool
	IsComponent       bool
	Collection        *workloadv1.WorkloadCollection
}

Controller scaffolds the workload's controller.

func (*Controller) SetTemplateDefaults

func (f *Controller) SetTemplateDefaults() error

type Phases added in v0.5.0

Controller scaffolds the workload's controller.

func (*Phases) SetTemplateDefaults added in v0.5.0

func (f *Phases) SetTemplateDefaults() error

type SuiteTest added in v0.5.0

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 added in v0.5.0

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

GetCodeFragments implements file.Inserter.

func (*SuiteTest) GetMarkers added in v0.5.0

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

GetMarkers implements file.Inserter.

func (*SuiteTest) SetTemplateDefaults added in v0.5.0

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