native

package
v1.23.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apply

type Apply struct {
	TemplateFun TemplateFun
	Cli         *utils.Apply
}

func New

func New(cli client.Client, fun TemplateFun) *Apply

func (*Apply) Apply

func (p *Apply) Apply(ctx context.Context, bundle *pluginsv1beta1.Plugin, into string) error

func (*Apply) CorrectNamespaces

func (p *Apply) CorrectNamespaces(ctx context.Context, ns string, cli client.Client, list []*unstructured.Unstructured)

func (*Apply) IsNamespacedScope

func (p *Apply) IsNamespacedScope(cli client.Client, obj client.Object) (apimeta.RESTScopeName, error)

func (*Apply) Remove

func (p *Apply) Remove(ctx context.Context, bundle *pluginsv1beta1.Plugin) error

func (*Apply) Template

func (p *Apply) Template(ctx context.Context, bundle *pluginsv1beta1.Plugin, into string) ([]byte, error)

type TemplateFun

type TemplateFun func(ctx context.Context, bundle *pluginsv1beta1.Plugin, into string) ([]byte, error)

Jump to

Keyboard shortcuts

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