k8s

package
v2.3.19+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sWrapTransportTimeout = 30
)

Variables

This section is empty.

Functions

func GetK8sClientConfig

func GetK8sClientConfig(kubeConfig []byte) (*rest.Config, error)

func NewClientByContent

func NewClientByContent(kubeConfig []byte, k8sWrapTransport WrapTransport) (*kubernetes.Clientset, error)

func NewClientByFile

func NewClientByFile(kubeConfigPath string, k8sWrapTransport WrapTransport) (*kubernetes.Clientset, error)

Types

type SKubeClusterManager

type SKubeClusterManager struct {
	// contains filtered or unexported fields
}

func NewKubeClusterManager

func NewKubeClusterManager(region string, interval time.Duration) *SKubeClusterManager

func (*SKubeClusterManager) GetK8sClient

func (man *SKubeClusterManager) GetK8sClient() (*kubernetes.Clientset, error)

func (*SKubeClusterManager) GetK8sConfig

func (man *SKubeClusterManager) GetK8sConfig() string

func (*SKubeClusterManager) Start

func (man *SKubeClusterManager) Start()

type WrapTransport

type WrapTransport func(rt http.RoundTripper) http.RoundTripper

Jump to

Keyboard shortcuts

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