代码拉取完成,页面将自动刷新
package cmd
type kubeConfig struct {
APIVersion string `yaml:"apiVersion,omitempty"`
Clusters []configCluster `yaml:"clusters,omitempty"`
Contexts []configContext `yaml:"contexts,omitempty"`
Users []configUser `yaml:"users,omitempty"`
CurrentContext string `yaml:"current-context,omitempty"`
Kind string `yaml:"kind,omitempty"`
Preferences string `yaml:"preferences,omitempty"`
}
type configCluster struct {
Cluster dataCluster `yaml:"cluster,omitempty"`
Name string `yaml:"name,omitempty"`
}
type dataCluster struct {
CertificateAuthorityData string `yaml:"certificate-authority-data,omitempty"`
Server string `yaml:"server,omitempty"`
}
type configContext struct {
Context contextData `yaml:"context,omitempty"`
Name string `yaml:"name,omitempty"`
}
type contextData struct {
Cluster string `yaml:"cluster,omitempty"`
User string `yaml:"user,omitempty"`
}
type configUser struct {
Name string `yaml:"name,omitempty"`
User userData `yaml:"user,omitempty"`
}
type userData struct {
Token string `yaml:"token,omitempty"`
Username string `yaml:"username,omitempty"`
Password string `yaml:"password,omitempty"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。