controllers

package
v3.15.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 3 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.MultiGroupMixin
	machinery.BoilerplateMixin
	machinery.ResourceMixin
	machinery.ProjectNameMixin

	ControllerRuntimeVersion string

	// IsLegacyLayout is added to ensure backwards compatibility and should
	// be removed when we remove the go/v3 plugin
	IsLegacyLayout bool
	PackageName    string
}

Controller scaffolds the file that defines the controller for a CRD or a builtin resource nolint:maligned

func (*Controller) SetTemplateDefaults

func (f *Controller) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type ControllerTest

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

	Port           string
	IsLegacyLayout bool
	PackageName    string
}

ControllerTest scaffolds the file that defines tests for the controller for a CRD or a builtin resource nolint:maligned

func (*ControllerTest) SetTemplateDefaults

func (f *ControllerTest) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

Jump to

Keyboard shortcuts

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