client

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_NAME = "proxy_client"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sProxyClient

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

K8sProxyClient Kubernetes代理客户端

func NewK8sProxyClient

func NewK8sProxyClient(proxy ProxyClientConfig) *K8sProxyClient

func (*K8sProxyClient) K8sClient

func (c *K8sProxyClient) K8sClient(k8sID string) (*kubernetes.Clientset, error)

type ProxyClientConfig

type ProxyClientConfig struct {
	ProxyServer string `json:"proxy_server" yaml:"proxy_server" toml:"proxy_server" env:"PROXY_SERVER"`
	ProxyId     string `json:"proxy_id" yaml:"proxy_id" toml:"proxy_id" env:"PROXY_ID"`
	ProxySecret string `json:"proxy_secret" yaml:"proxy_secret" toml:"proxy_secret" env:"PROXY_SECRET"`
}

type ProxyClientSet

type ProxyClientSet interface {
	K8sProxy() *K8sProxyClient
}

func ProxyClients

func ProxyClients() ProxyClientSet

Jump to

Keyboard shortcuts

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