kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Namespace

func Namespace() (string, error)

Namespace from the kubeconfig

func NewAppsV1Client

func NewAppsV1Client() (*apps.AppsV1Client, error)

NewAppsV1Client for current kubeconfig

func NewBatchV1beta1Client

func NewBatchV1beta1Client() (*batch.BatchV1beta1Client, error)

NewBatchV1beta1Client creates a new BatchV1beta1Client for the current kubeconfig

func NewDynamicClient

func NewDynamicClient() (dynamic.Interface, error)

NewDynamicClient creates a new dynamic client

func ObjectContains

func ObjectContains(genericObject interface{}, value string) bool

ObjectContains evaluates if a Kubernetes object contains a certain string

func ResourceContains

func ResourceContains(namespace, value string, resource schema.GroupVersionResource) (bool, error)

ResourceContains evaluates if a given resource contains a given string

func RestConfig

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

RestConfig from the kubeconfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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