execplugin

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashAnnotation     = "kustomize.config.k8s.io/needs-hash"
	BehaviorAnnotation = "kustomize.config.k8s.io/behavior"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecPlugin

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

ExecPlugin record the name and args of an executable It triggers the executable generator and transformer

func NewExecPlugin

func NewExecPlugin(p string) *ExecPlugin

func (*ExecPlugin) Args

func (p *ExecPlugin) Args() []string

func (*ExecPlugin) Cfg

func (p *ExecPlugin) Cfg() []byte

func (*ExecPlugin) Config

func (p *ExecPlugin) Config(h *resmap.PluginHelpers, config []byte) error

func (*ExecPlugin) ErrIfNotExecutable

func (p *ExecPlugin) ErrIfNotExecutable() error

func (*ExecPlugin) Generate

func (p *ExecPlugin) Generate() (resmap.ResMap, error)

func (*ExecPlugin) Path

func (p *ExecPlugin) Path() string

func (*ExecPlugin) Transform

func (p *ExecPlugin) Transform(rm resmap.ResMap) error

func (*ExecPlugin) UpdateResourceOptions

func (p *ExecPlugin) UpdateResourceOptions(rm resmap.ResMap) (resmap.ResMap, error)

updateResourceOptions updates the generator options for each resource in the given ResMap based on plugin provided annotations.

Jump to

Keyboard shortcuts

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