wirek8s

package
v0.0.0-...-445da97 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelpFlags = []string{"-h", "--help"}

HelpFlags is a list of flags to strips

ProviderSet defines dependencies for initializing Kubernetes objects

Functions

func CopyStrSlice

func CopyStrSlice(s []string) []string

CopyStrSlice returns a copy of the slice of strings.

func FilterList

func FilterList(l []string, rl []string) []string

FilterList returns a copy of "l" with elements from "toRemove" filtered out.

func Flags

func Flags(fs *pflag.FlagSet)

Flags registers flags for talkig to a Kubernetes cluster

func NewClient

func NewClient(d dynamic.Interface, m meta.RESTMapper) (client.Client, error)

NewClient provides a dynamic.Interface

func NewConfigFlags

func NewConfigFlags(ar util.Args) (*configflags.ConfigFlags, error)

NewConfigFlags parses flags used to generate the *rest.Config

func NewDynamicClient

func NewDynamicClient(c *rest.Config) (dynamic.Interface, error)

NewDynamicClient returns a Dynamic Client

func NewExtensionsClientSet

func NewExtensionsClientSet(c *rest.Config) (*clientset.Clientset, error)

NewExtensionsClientSet provides an apiextensions ClientSet

func NewKubernetesClientSet

func NewKubernetesClientSet(c *rest.Config) (*kubernetes.Clientset, error)

NewKubernetesClientSet provides a clientset for talking to k8s clusters

func NewRestConfig

func NewRestConfig(f *configflags.ConfigFlags) (*rest.Config, error)

NewRestConfig returns a new rest.Config parsed from --kubeconfig and --master

func NewRestMapper

func NewRestMapper(c *rest.Config) (meta.RESTMapper, error)

NewRestMapper provides a Discovery rest mapper

func RemoveAllElements

func RemoveAllElements(s []string, r string) []string

RemoveAllElements removes all elements from "s" which match the string "r".

func WordSepNormalizeFunc

func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName

WordSepNormalizeFunc normalizes flags

Types

This section is empty.

Jump to

Keyboard shortcuts

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