k8s

package
v0.0.0-...-b0161eb Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(instance *types.Instance, proxyHost string) (*kubernetes.Clientset, error)

func NewLocalCachedFactory

func NewLocalCachedFactory(s storage.StorageApi) *localCachedFactory

Types

type FactoryApi

type FactoryApi interface {
	GetForInstance(instance *types.Instance) (*kubernetes.Clientset, error)
	GetKubeletForInstance(instance *types.Instance) (*KubeletClient, error)
}

type FactoryMock

type FactoryMock struct {
	mock.Mock
}

func (*FactoryMock) GetForInstance

func (m *FactoryMock) GetForInstance(instance *types.Instance) (*kubernetes.Clientset, error)

func (*FactoryMock) GetKubeletForInstance

func (m *FactoryMock) GetKubeletForInstance(i *types.Instance) (*KubeletClient, error)

type KubeletClient

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

func NewKubeletClient

func NewKubeletClient(instance *types.Instance, proxyHost string) (*KubeletClient, error)

func (*KubeletClient) Get

func (c *KubeletClient) Get(path string) (*http.Response, error)

func (*KubeletClient) IsManager

func (c *KubeletClient) IsManager() (bool, error)

Jump to

Keyboard shortcuts

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