kubernetes/vendor/sigs.k8s.io/kustomize/api/internal/plugins/fnplugin/fnplugin.go

type FnPlugin

func bytesToRNode(yml []byte) (*yaml.RNode, error) {}

func resourceToRNode(res *resource.Resource) (*yaml.RNode, error) {}

// GetFunctionSpec return function spec is there is. Otherwise return nil
func GetFunctionSpec(res *resource.Resource) (*runtimeutil.FunctionSpec, error) {}

func toStorageMounts(mounts []string) []runtimeutil.StorageMount {}

// NewFnPlugin creates a FnPlugin struct
func NewFnPlugin(o *types.FnPluginLoadingOptions) *FnPlugin {}

// Cfg returns function config
func (p *FnPlugin) Cfg() []byte {}

// Config is called by kustomize to pass-in config information
func (p *FnPlugin) Config(h *resmap.PluginHelpers, config []byte) error {}

// Generate is called when run as generator
func (p *FnPlugin) Generate() (resmap.ResMap, error) {}

// Transform is called when run as transformer
func (p *FnPlugin) Transform(rm resmap.ResMap) error {}

func injectAnnotation(input *yaml.RNode, k, v string) error {}

// invokePlugin uses Function runner to run function as plugin
func (p *FnPlugin) invokePlugin(input []byte) ([]byte, error) {}