hack

package
v3.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBoilerplatePath = filepath.Join("hack", "boilerplate.go.txt")

DefaultBoilerplatePath is the default path to the boilerplate file

Functions

This section is empty.

Types

type Boilerplate

type Boilerplate struct {
	machinery.TemplateMixin
	machinery.BoilerplateMixin

	// License is the License type to write
	License string

	// Licenses maps License types to their actual string
	Licenses map[string]string

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

	// Year is the copyright year
	Year string
}

Boilerplate scaffolds a file that defines the common header for the rest of the files

func (*Boilerplate) SetTemplateDefaults

func (f *Boilerplate) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

func (Boilerplate) Validate

func (f Boilerplate) Validate() error

Validate implements file.RequiresValidation

Jump to

Keyboard shortcuts

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