Documentation ¶
Index ¶
- func AgentAccessInfoToKubeConfig(destFile, server, token string) error
- func Get(path string, info *Info) ([]byte, error)
- func GetCACerts(u url.URL) ([]byte, error)
- func GetHTTPClient(cacerts []byte) *http.Client
- func NormalizeAndValidateTokenForUser(server, token, user string) (string, error)
- func ParseUsernamePassword(token string) (string, string, bool)
- type Info
- type OverrideURLCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPClient ¶
func NormalizeAndValidateTokenForUser ¶ added in v1.0.0
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.