Ai
1 Star 0 Fork 0

powerpaas/kontainer-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
types.go 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
Daishan Peng 提交于 2017-11-15 02:44 +08:00 . add rke
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"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/powerpaas/kontainer-engine.git
git@gitee.com:powerpaas/kontainer-engine.git
powerpaas
kontainer-engine
kontainer-engine
v0.0.4-dev

搜索帮助