expend

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResource

func CreateResource(ctx context.Context, dynamicClient dynamic.Interface, mapping *meta.RESTMapping, unstructuredResource *unstructured.Unstructured) error

func InstallNPD

func InstallNPD(ctx context.Context, kubeconfig string) error

func ParseResources added in v0.4.0

func ParseResources(clientset kubernetes.Interface, resource string) (*meta.RESTMapping, *unstructured.Unstructured, error)

ParseResources by parsing the resource, put the result into unstructuredResource and return it.

func PluginsInstaller added in v0.5.0

func PluginsInstaller(ctx context.Context, pluginName string, pluginResources string) (err error)

func PluginsUninstaller added in v0.5.0

func PluginsUninstaller(ctx context.Context, pluginName string, pluginResources string) (err error)

func RemoveResource

func RemoveResource(ctx context.Context, dynamicClient dynamic.Interface, mapping *meta.RESTMapping, unstructuredResource *unstructured.Unstructured) error

func ResourceCreater added in v0.5.0

func ResourceCreater(installer Installer, resource string) (err error)

func ResourceRemover added in v0.5.0

func ResourceRemover(installer Installer, resource string) (err error)

func UninstallNPD

func UninstallNPD(ctx context.Context, kubeconfig string) error

Types

type Expends

type Expends interface {
	Install(resource string) error
	Uninstall(resource string) error
}

type Installer added in v0.4.0

type Installer struct {
	CTX context.Context
	// Kubeconfig can be deleted later
	Kubeconfig string
}

func (Installer) Install added in v0.5.0

func (installer Installer) Install(resource string) error

func (Installer) Uninstall added in v0.5.0

func (installer Installer) Uninstall(resource string) error

Jump to

Keyboard shortcuts

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