v1

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGopkgHeader = "# STANZAS BELOW ARE GENERATED AND MAY BE WRITTEN - DO NOT MODIFY BELOW THIS LINE."

DefaultGopkgHeader is the default header used to separate user managed lines and controller-manager managed lines

View Source
const DefaultGopkgUserContent = `` /* 932-byte string literal not displayed */

DefaultGopkgUserContent is the default user managed lines to provide.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProxyRole

type AuthProxyRole struct {
	file.TemplateMixin
}

AuthProxyRole scaffolds the config/rbac/auth_proxy_role.yaml file

func (*AuthProxyRole) SetTemplateDefaults

func (f *AuthProxyRole) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type AuthProxyRoleBinding

type AuthProxyRoleBinding struct {
	file.TemplateMixin
}

AuthProxyRoleBinding scaffolds the config/rbac/auth_proxy_role_binding_rbac.yaml file

func (*AuthProxyRoleBinding) SetTemplateDefaults

func (f *AuthProxyRoleBinding) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type AuthProxyService

type AuthProxyService struct {
	file.TemplateMixin
}

AuthProxyService scaffolds the config/rbac/auth_proxy_service.yaml file

func (*AuthProxyService) SetTemplateDefaults

func (f *AuthProxyService) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type Boilerplate

type Boilerplate struct {
	file.TemplateMixin
	file.BoilerplateMixin

	// License is the License type to write
	License string

	// Owner is the copyright owner - e.g. "The Kubernetes Authors"
	Owner string

	// Year is the copyright year
	Year string
}

Boilerplate scaffolds a boilerplate header file.

func (*Boilerplate) SetTemplateDefaults

func (f *Boilerplate) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type GitIgnore

type GitIgnore struct {
	file.TemplateMixin
}

GitIgnore scaffolds the .gitignore file

func (*GitIgnore) SetTemplateDefaults

func (f *GitIgnore) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type GopkgToml

type GopkgToml struct {
	file.TemplateMixin

	// ManagedHeader is the header to write after the user owned pieces and before the managed parts of the Gopkg.toml
	ManagedHeader string

	// DefaultUserContent is the default content to use for the user owned pieces
	DefaultUserContent string

	// UserContent is the content to use for the user owned pieces
	UserContent string

	// Stanzas are additional managed stanzas to add after the ManagedHeader
	Stanzas []Stanza
}

GopkgToml writes a templatefile for Gopkg.toml

func (*GopkgToml) SetTemplateDefaults

func (f *GopkgToml) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type Kustomize

type Kustomize struct {
	file.TemplateMixin

	// Prefix to use for name prefix customization
	Prefix string
}

Kustomize scaffolds the Kustomization file.

func (*Kustomize) SetTemplateDefaults

func (f *Kustomize) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type KustomizeImagePatch

type KustomizeImagePatch struct {
	file.TemplateMixin

	// ImageURL to use for controller image in manager's manifest.
	ImageURL string
}

KustomizeImagePatch scaffolds the patch file for customizing image URL manifest file for manager resource.

func (*KustomizeImagePatch) SetTemplateDefaults

func (f *KustomizeImagePatch) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type KustomizeManager

type KustomizeManager struct {
	file.TemplateMixin
}

KustomizeManager scaffolds the Kustomization file in manager folder.

func (*KustomizeManager) SetTemplateDefaults

func (f *KustomizeManager) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type KustomizeRBAC

type KustomizeRBAC struct {
	file.TemplateMixin
}

KustomizeRBAC scaffolds the Kustomization file in rbac folder.

func (*KustomizeRBAC) SetTemplateDefaults

func (f *KustomizeRBAC) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type Makefile

type Makefile struct {
	file.TemplateMixin
	file.RepositoryMixin

	// Image is controller manager image name
	Image string

	// path for controller-tools pkg
	ControllerToolsPath string
}

Makefile scaffolds the Makefile

func (*Makefile) SetTemplateDefaults

func (f *Makefile) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type Stanza

type Stanza struct {
	// Type will be between the'[[]]' e.g. override
	Type string

	// Name will appear after 'name=' and does not include quotes e.g. k8s.io/client-go
	Name string
	// Version will appear after 'version=' and does not include quotes
	Version string

	// Revision will appear after 'revision=' and does not include quotes
	Revision string
}

Stanza is a single Gopkg.toml entry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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