package
Version:
v0.0.0-...-a8f3bf5
Opens a new window with list of versions in this module.
Published: Sep 28, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
-
type Client
-
func (c *Client) GetPodFromListByName(name string, pods *v1.PodList) (*v1.Pod, error)
-
func (c *Client) GetPodList(namespace string) (*v1.PodList, error)
-
func (c *Client) GetPodListWithOpts(namespace string, kind, label, field string, uninitialized, watch bool, ...) (*v1.PodList, error)
-
type Config
-
func NewConfigFromRestTlsData(serverName, host string, port int, apiPath string, ...) *Config
-
func NewConfigFromRestTlsFile(serverName, host string, port int, apiPath, caFile, certFile, keyFile string) *Config
Client is en embedded type of kubernetes clientset
NewClient initializes a new clientset for the given config
GetPodFromListByName returns a pod in the PodList corresponding to the given name
GetPodList returns a list of pods for the given namespace without any option
if namespace is empty, all pods in all namespaces will be returned
GetPodListWithOpts returns a list of pods for all namespaces
corresponding to certains given options
Config is an embedded type of Kubernetes' rest client Config
NewConfigFromRestTls returns a new config with TLS certificate data
func NewConfigFromRestTlsFile(serverName, host string, port int, apiPath, caFile, certFile, keyFile string) *Config
NewConfigFromRestTls returns a new config with TLS certificate files
Source Files
¶
Click to show internal directories.
Click to hide internal directories.