kube

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDecoderBufferSize = 500

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

func ApplyUnstructured

func ApplyUnstructured(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, unstructuredObj unstructured.Unstructured, namespace string, serverSide bool) (*unstructured.Unstructured, error)

func Decode

func Decode(data []byte) ([]unstructured.Unstructured, error)

func NewApplyOptions

func NewApplyOptions(dynamicClient dynamic.Interface, discoveryClient discovery.DiscoveryInterface) *applyOptions

func ObjectToUnstructured

func ObjectToUnstructured(obj runtime.Object) ([]unstructured.Unstructured, error)

func Patch

func Patch(currentUnstr *unstructured.Unstructured, modified []byte, name string, gvk schema.GroupVersionKind) ([]byte, types.PatchType, error)

func RestConfig

func RestConfig(cluster_name string) (*rest.Config, error)

RestConfig returns a complete rest client config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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