client

package
v0.0.0-...-5c47c4c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: EPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sAPI

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

K8sAPI object to access k8s api.

func NewK8sAPI

func NewK8sAPI(config *rest.Config, client *kubernetes.Clientset) *K8sAPI

NewK8sAPI constructor for creation new k8s api access object.

func (*K8sAPI) GetClient

func (api *K8sAPI) GetClient() *kubernetes.Clientset

GetClient returns k8s client.

func (*K8sAPI) GetConfig

func (api *K8sAPI) GetConfig() *rest.Config

GetConfig returns k8s config.

type K8sAPIProvider

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

K8sAPIProvider for creation new K8sAPI.

func NewK8sAPIProvider

func NewK8sAPIProvider() *K8sAPIProvider

NewK8sAPIProvider creates new K8sAPI provider.

func (*K8sAPIProvider) GetK8sAPI

func (clientProvider *K8sAPIProvider) GetK8sAPI(machineExec *model.MachineExec) (*K8sAPI, error)

GetK8sAPI return k8s api object.

Jump to

Keyboard shortcuts

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