project

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 11 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

View Source
var AuthProxyServiceTemplate = `` /* 449-byte string literal not displayed */

Functions

This section is empty.

Types

type AuthProxyRole added in v1.0.8

type AuthProxyRole struct {
	input.Input
}

AuthProxyRole scaffolds the config/rbac/auth_proxy_role.yaml file

func (*AuthProxyRole) GetInput added in v1.0.8

func (r *AuthProxyRole) GetInput() (input.Input, error)

GetInput implements input.File

type AuthProxyRoleBinding added in v1.0.8

type AuthProxyRoleBinding struct {
	input.Input
}

AuthProxyRoleBinding scaffolds the config/rbac/auth_proxy_role_binding_rbac.yaml file

func (*AuthProxyRoleBinding) GetInput added in v1.0.8

func (r *AuthProxyRoleBinding) GetInput() (input.Input, error)

GetInput implements input.File

type AuthProxyService added in v1.0.8

type AuthProxyService struct {
	input.Input
}

AuthProxyService scaffolds the config/rbac/auth_proxy_role.yaml file

func (*AuthProxyService) GetInput added in v1.0.8

func (r *AuthProxyService) GetInput() (input.Input, error)

GetInput implements input.File

type Boilerplate

type Boilerplate struct {
	input.Input

	// 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) GetInput

func (c *Boilerplate) GetInput() (input.Input, error)

GetInput implements input.File

type GitIgnore

type GitIgnore struct {
	input.Input
}

GitIgnore scaffolds the .gitignore file

func (*GitIgnore) GetInput

func (c *GitIgnore) GetInput() (input.Input, error)

GetInput implements input.File

type GopkgToml

type GopkgToml struct {
	input.Input

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

	// DefaultGopkgUserContent 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) GetInput

func (g *GopkgToml) GetInput() (input.Input, error)

GetInput implements input.File

type Kustomize

type Kustomize struct {
	input.Input

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

Kustomize scaffolds the Kustomization file.

func (*Kustomize) GetInput

func (c *Kustomize) GetInput() (input.Input, error)

GetInput implements input.File

type KustomizeAuthProxyPatch added in v1.0.6

type KustomizeAuthProxyPatch struct {
	input.Input
}

KustomizeAuthProxyPatch scaffolds the patch file for enabling prometheus metrics for manager Pod.

func (*KustomizeAuthProxyPatch) GetInput added in v1.0.6

func (c *KustomizeAuthProxyPatch) GetInput() (input.Input, error)

GetInput implements input.File

type KustomizeImagePatch

type KustomizeImagePatch struct {
	input.Input

	// 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) GetInput

func (c *KustomizeImagePatch) GetInput() (input.Input, error)

GetInput implements input.File

type KustomizePrometheusMetricsPatch added in v1.0.6

type KustomizePrometheusMetricsPatch struct {
	input.Input
}

KustomizePrometheusMetricsPatch scaffolds the patch file for enabling prometheus metrics for manager Pod.

func (*KustomizePrometheusMetricsPatch) GetInput added in v1.0.6

GetInput implements input.File

type Makefile

type Makefile struct {
	input.Input
	// Image is controller manager image name
	Image string

	// path for controller-tools pkg
	ControllerToolsPath string
}

Makefile scaffolds the Makefile

func (*Makefile) GetInput

func (c *Makefile) GetInput() (input.Input, error)

GetInput implements input.File

type Project

type Project struct {
	// Path is the output file location - defaults to PROJECT
	Path string

	input.ProjectFile
}

Project scaffolds the PROJECT file with project metadata

func (*Project) GetInput

func (c *Project) GetInput() (input.Input, error)

GetInput implements input.File

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

Jump to

Keyboard shortcuts

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