Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigPath = ".kc" DefaultPkgPath = "/tmp" )
View Source
const DockerDaemonTmpl = `` /* 130-byte string literal not displayed */
View Source
const EtcdServiceTmpl = `` /* 1079-byte string literal not displayed */
View Source
const KcAgentConfigTmpl = `` /* 1152-byte string literal not displayed */
View Source
const KcAgentService = `` /* 308-byte string literal not displayed */
View Source
const KcCaddyTmpl = `` /* 514-byte string literal not displayed */
View Source
const KcConsoleServiceTmpl = `` /* 524-byte string literal not displayed */
View Source
const KcProxyService = `` /* 299-byte string literal not displayed */
View Source
const KcServerConfigTmpl = `` /* 2358-byte string literal not displayed */
View Source
const KcServerService = `` /* 324-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶
type AuthInfo struct {
Token string `json:"token,omitempty" yaml:"token,omitempty"`
}
type Config ¶
type Config struct { Servers map[string]*Server `json:"servers" yaml:"servers"` AuthInfos map[string]*AuthInfo `json:"users" yaml:"users"` CurrentContext string `json:"current-context" yaml:"current-context"` Contexts map[string]*Context `json:"contexts" yaml:"contexts"` }
func TryLoadFromFile ¶
type Server ¶
type Server struct { Server string `json:"server" yaml:"server"` TLSServerName string `json:"tls-server-name,omitempty" yaml:"tls-server-name,omitempty"` InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify,omitempty" yaml:"insecure-skip-tls-verify,omitempty"` CertificateAuthority string `json:"certificate-authority,omitempty" yaml:"certificate-authority,omitempty"` CertificateAuthorityData []byte `json:"certificate-authority-data,omitempty" yaml:"certificate-authority-data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.