cluster

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceId

func NewTraceId() string

Types

type AgentClient

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

func NewAgentClient

func NewAgentClient(models *model.Models) *AgentClient

type KubeClient

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

func NewKubeClient

func NewKubeClient(models *model.Models) *KubeClient

func (*KubeClient) Apply

func (k *KubeClient) Apply(clusterId string, params interface{}) *utils.Response

func (*KubeClient) Create

func (k *KubeClient) Create(clusterId, resType string, params interface{}) *utils.Response

func (*KubeClient) Delete

func (k *KubeClient) Delete(clusterId, resType string, params interface{}) *utils.Response

func (*KubeClient) Get

func (k *KubeClient) Get(clusterId, resType string, params interface{}) *utils.Response

func (*KubeClient) List

func (k *KubeClient) List(clusterId, resType string, params interface{}) *utils.Response

func (*KubeClient) Patch

func (k *KubeClient) Patch(clusterId, resType string, params interface{}) *utils.Response

func (*KubeClient) Pods

func (k *KubeClient) Pods(clusterId string) (PodClient, error)

func (*KubeClient) Request

func (k *KubeClient) Request(clusterId, resType, action string, params interface{}) *utils.Response

func (*KubeClient) Update

func (k *KubeClient) Update(clusterId, resType string, params interface{}) *utils.Response

func (*KubeClient) Watch

func (k *KubeClient) Watch(clusterId, resType string, params interface{}) (Outer, error)

type Outer

type Outer interface {
	OutCh() <-chan interface{}
	StopCh() <-chan struct{}
	Close()
}

type PodClient

type PodClient interface {
	Exec(interface{}) (PodExec, error)
	Log(interface{}) (Outer, error)
}

type PodExec

type PodExec interface {
	Outer
	Stdin(interface{}) error
}

Jump to

Keyboard shortcuts

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