Documentation
¶
Index ¶
- Variables
- func CopyStrSlice(s []string) []string
- func FilterList(l []string, rl []string) []string
- func Flags(fs *pflag.FlagSet)
- func NewClient(d dynamic.Interface, m meta.RESTMapper) (client.Client, error)
- func NewConfigFlags(ar util.Args) (*configflags.ConfigFlags, error)
- func NewDynamicClient(c *rest.Config) (dynamic.Interface, error)
- func NewExtensionsClientSet(c *rest.Config) (*clientset.Clientset, error)
- func NewKubernetesClientSet(c *rest.Config) (*kubernetes.Clientset, error)
- func NewRestConfig(f *configflags.ConfigFlags) (*rest.Config, error)
- func NewRestMapper(c *rest.Config) (meta.RESTMapper, error)
- func RemoveAllElements(s []string, r string) []string
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
Constants ¶
This section is empty.
Variables ¶
var HelpFlags = []string{"-h", "--help"}
HelpFlags is a list of flags to strips
var ProviderSet = wire.NewSet(
NewKubernetesClientSet,
NewExtensionsClientSet,
NewConfigFlags,
NewRestConfig,
NewDynamicClient,
NewRestMapper,
NewClient,
)
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 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.