Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInCluster = errors.New("unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Protocol version Version string // Name of the agent Name string // Token used to authenticate with proxy server Token string // Kubernetes apiserver host KubernetesSvcHost string // KubeSphere apigateway host KubeSphereSvcHost string // agent certificates // CertData holds PEM-encoded bytes (typically read from a client certificate file). CertData []byte `json:",omitempty"` // KeyData holds PEM-encoded bytes (typically read from a client certificate key file). KeyData []byte `json:",omitempty"` // CAData holds PEM-encoded bytes (typically read from a root certificates bundle). CAData []byte `json:",omitempty"` // Server requires Bearer authentication. This client will not attempt to use // refresh tokens for an OAuth2 flow. BearerToken []byte `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.