dynamicresource

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicResource

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

DynamicResource is a struct for dynamic resources

func NewClient

func NewClient(dynamicCli dynamic.Interface, s schema.GroupVersionResource, namespace string) *DynamicResource

NewClient function creates a new instance of DynamicResource

func (*DynamicResource) Create

func (r *DynamicResource) Create(res interface{}) error

Create method creates a new instance of appropriate k8s resource

func (*DynamicResource) Delete

func (r *DynamicResource) Delete(name string) error

Delete method deletes a existing instance of appropriate k8s resource

func (*DynamicResource) Get

Get method gets a existing instance of appropriate k8s resource

Jump to

Keyboard shortcuts

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