fnplugin

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunctionSpec

func GetFunctionSpec(res *resource.Resource) (*runtimeutil.FunctionSpec, error)

GetFunctionSpec return function spec is there is. Otherwise return nil

Types

type FnPlugin

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

FnPlugin is the struct to hold function information

func NewFnPlugin

func NewFnPlugin(o *types.FnPluginLoadingOptions) *FnPlugin

NewFnPlugin creates a FnPlugin struct

func (*FnPlugin) Cfg

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

Cfg returns function config

func (*FnPlugin) Config

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

Config is called by kustomize to pass-in config information

func (*FnPlugin) Generate

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

Generate is called when run as generator

func (*FnPlugin) Transform

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

Transform is called when run as transformer

Jump to

Keyboard shortcuts

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