project

package
v0.0.0-...-01492f3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 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 = `` /* 789-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 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
	DefaultGopkgUserContent 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 Makefile

type Makefile struct {
	input.Input
}

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 'revsion=' 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