Documentation
¶
Index ¶
- Constants
- type C7NContext
- type C7NUser
- type C7nConfig
- func (c *C7nConfig) GetChartRepository() string
- func (c *C7nConfig) GetDatasourceTpl() string
- func (c *C7nConfig) GetHelmValuesTpl(key string) ([]byte, error)
- func (c *C7nConfig) GetImageRepository() string
- func (c *C7nConfig) GetPrefix() string
- func (c *C7nConfig) GetResource(key string) *Resource
- func (c *C7nConfig) GetStorageClass() string
- func (c *C7nConfig) GetStorageClassName() string
- func (c *C7nConfig) GetThinMode() bool
- func (c *C7nConfig) IgnorePv() bool
- type Chart
- type ChartComponent
- type ChartRepository
- type ChoerodonVersion
- type Cluster
- type Config
- type HostPath
- type Image
- type ImageRegistry
- type Metadata
- type NamedCluster
- type NamedUser
- type Nfs
- type Option
- type Persistence
- type PkgSpec
- type Resource
- type Spec
- type Terms
- type User
- type Version
- type Versions
Constants ¶
View Source
const ( PersistenceStorageClassType = "storageClass" PersistenceNfsType = "nfs" PersistenceHostPathType = "hostPath" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C7NContext ¶
type C7NContext struct { Name string `yaml:"name"` Server string `yaml:"server"` User C7NUser `yaml:"user"` }
C7n 的连接上下文
type C7nConfig ¶
func (*C7nConfig) GetChartRepository ¶
func (*C7nConfig) GetDatasourceTpl ¶
func (*C7nConfig) GetHelmValuesTpl ¶
func (*C7nConfig) GetImageRepository ¶
func (*C7nConfig) GetResource ¶
func (*C7nConfig) GetStorageClass ¶
func (*C7nConfig) GetStorageClassName ¶
func (*C7nConfig) GetThinMode ¶
type Chart ¶
type Chart struct { DefaultSource ChartRepository `yaml:"default-source"` DefaultTarget ChartRepository `yaml:"default-target"` Component []ChartComponent `yaml:"component"` }
type ChartComponent ¶
type ChartComponent struct { Name string `yaml:"name"` Version string `yaml:"version"` Source ChartRepository `yaml:"source"` Target ChartRepository `yaml:"target"` Category string `yaml:"category"` }
type ChartRepository ¶
type ChoerodonVersion ¶
type Config ¶
type Config struct { Version string `yaml:"version"` // 安装 c7n 时,用户需要输入的邮箱信息 Terms Terms `yaml:"terms"` OpsMail string `yaml:"opsMail"` // 暂时不知道有什么用处 Clusters []*NamedCluster `yaml:"clusters"` CurrentCluster string `yaml:"current-cluster"` Users []*NamedUser `yaml:"users"` // 连接 c7n 的上下文信息 Contexts []C7NContext `yaml:"contexts"` CurrentContext string `yaml:"currentContext"` }
c7nctl 默认的配置项,包括安装的基本信息和连接c7n的信息
type Image ¶
type Image struct { Registry []ImageRegistry `yaml:"registry"` Images []string `yaml:"images"` }
type ImageRegistry ¶
type NamedCluster ¶
type Persistence ¶
type Persistence struct { Nfs `yaml:"nfs"` HostPath `yaml:"hostPath"` StorageClassName string `yaml:"storageClassName"` Type string AccessModes []v1.PersistentVolumeAccessMode `yaml:"accessModes"` }
func (*Persistence) GetPersistentVolumeSource ¶
func (p *Persistence) GetPersistentVolumeSource(subPath string) v1.PersistentVolumeSource
func (*Persistence) GetStorageType ¶
func (p *Persistence) GetStorageType() string
Click to show internal directories.
Click to hide internal directories.