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
Click to show internal directories.
Click to hide internal directories.