templates

package
v3.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 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 Dockerfile

type Dockerfile struct {
	file.TemplateMixin
}

Dockerfile scaffolds a file that defines the containerized build process

func (*Dockerfile) SetTemplateDefaults

func (f *Dockerfile) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type GitIgnore

type GitIgnore struct {
	file.TemplateMixin
}

GitIgnore scaffolds a file that defines which files should be ignored by git

func (*GitIgnore) SetTemplateDefaults

func (f *GitIgnore) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type GoMod

type GoMod struct {
	file.TemplateMixin
	file.RepositoryMixin

	ControllerRuntimeVersion string
}

GoMod scaffolds a file that defines the project dependencies

func (*GoMod) SetTemplateDefaults

func (f *GoMod) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type Main

Main scaffolds a file that defines the controller manager entry point

func (*Main) SetTemplateDefaults

func (f *Main) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type MainUpdater

type MainUpdater struct {
	file.RepositoryMixin
	file.MultiGroupMixin
	file.ResourceMixin

	// Flags to indicate which parts need to be included when updating the file
	WireResource, WireController, WireWebhook bool
}

MainUpdater updates main.go to run Controllers

func (*MainUpdater) GetCodeFragments

func (f *MainUpdater) GetCodeFragments() file.CodeFragmentsMap

GetCodeFragments implements file.Inserter

func (*MainUpdater) GetIfExistsAction

func (*MainUpdater) GetIfExistsAction() file.IfExistsAction

GetIfExistsAction implements file.Builder

func (*MainUpdater) GetMarkers

func (f *MainUpdater) GetMarkers() []file.Marker

GetMarkers implements file.Inserter

func (*MainUpdater) GetPath

func (*MainUpdater) GetPath() string

GetPath implements file.Builder

type Makefile

type Makefile struct {
	file.TemplateMixin

	// Image is controller manager image name
	Image string
	// BoilerplatePath is the path to the boilerplate file
	BoilerplatePath string
	// Controller tools version to use in the project
	ControllerToolsVersion string
	// Kustomize version to use in the project
	KustomizeVersion string
}

Makefile scaffolds a file that defines project management CLI commands

func (*Makefile) SetTemplateDefaults

func (f *Makefile) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

Directories

Path Synopsis
config
crd

Jump to

Keyboard shortcuts

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