Documentation ¶
Index ¶
Constants ¶
View Source
const MimeTypeYaml = "application/x-yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAValueProvider ¶
type CAValueProvider func() string
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
func NewEndpoints ¶
func NewEndpoints(c *KubeConfig) *Endpoints
func (*Endpoints) GetKubeConfig ¶
func (e *Endpoints) GetKubeConfig(w http.ResponseWriter, req *http.Request)
type KubeConfig ¶
type KubeConfig struct {
// contains filtered or unexported fields
}
func NewKubeConfig ¶
func NewKubeConfig(clusterName, url string, caProvider CAValueProvider, namespace string) *KubeConfig
NewKubeConfig return new instance of KubeConfig CAValueProvider is used to return current cluster CA data, it can change after cluster certificates renewal.
Click to show internal directories.
Click to hide internal directories.