kubebuilder

package
v0.0.0-...-d46a6ae Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ControllerFileName = func(u *model.Universe) string {
		return filepath.Join("controllers", strings.ToLower(u.Resource.Kind)+"_controller.go")
	}
	TypeFileName = func(u *model.Universe) string {
		return filepath.Join("api", u.Resource.Version, strings.ToLower(u.Resource.Kind)+"_types.go")
	}
	MainFileName = func(u *model.Universe) string {
		return "main.go"
	}
	GVInfoFileName = func(u *model.Universe) string {
		return filepath.Join("api", u.Resource.Version, "groupversion_info.go")
	}
	MakefileFileName = func(u *model.Universe) string {
		return "Makefile"
	}
)

Functions

func Builder

func Builder() *builder

func Template

func Template(t string, ty types.TemplateType) (*tmpl, error)

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) Attach

func (p *Plugin) Attach(ty types.TemplateType, t *tmpl)

func (*Plugin) Pipe

func (p *Plugin) Pipe(u *model.Universe) error

type SetFileName

type SetFileName func(u *model.Universe) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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