Documentation ¶
Index ¶
- func AgentAccessInfoToKubeConfig(destFile, server, token string) error
- func AgentAccessInfoToTempKubeConfig(tempDir, server, token string) (string, error)
- func Get(path string, info *Info) ([]byte, error)
- func GetCACerts(u url.URL) ([]byte, error)
- func GetHTTPClient(cacerts []byte) *http.Client
- func ParseUsernamePassword(token string) (string, string, bool)
- type Info
- type OverrideURLCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPClient ¶
Types ¶
type Info ¶
type Info struct { URL string `json:"url,omitempty"` CACerts []byte `json:"cacerts,omitempty"` Token string `json:"token,omitempty"` // contains filtered or unexported fields }
func ParseAndValidateToken ¶
func (*Info) KubeConfig ¶
func (i *Info) KubeConfig() *clientcmdapi.Config
func (*Info) WriteKubeConfig ¶
Click to show internal directories.
Click to hide internal directories.