k8s_client

package
v0.0.0-...-987ecbf Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterList

type ClusterList struct {
	Items model.Clusters `json:"items"`
}

type K8sClient

type K8sClient struct {
	Client  http.Client
	BaseUrl string
	Token   string
}

func New

func New() *K8sClient

func (*K8sClient) Do

func (k *K8sClient) Do(method string, path string, headers map[string]string, request interface{}, result interface{}) error

func (*K8sClient) DoRaw

func (k *K8sClient) DoRaw(method string, path string, headers map[string]string, requestBody []byte) ([]byte, error)

func (*K8sClient) GetClusterList

func (k *K8sClient) GetClusterList() (*ClusterList, error)

func (*K8sClient) SaveStatus

func (k *K8sClient) SaveStatus(clusterName string, status *model.ClusterStatus) error

Jump to

Keyboard shortcuts

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