config

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CephConfig

type CephConfig struct {
	// Monitor addresses of Ceph cluster.
	Monitors string
	// ID of Ceph admin user.
	AdminID string
	// Key of Ceph admin user.
	AdminKey string
}

CephConfig is a bunch of global configurations of Ceph cluster.

func (*CephConfig) AddFlags

func (c *CephConfig) AddFlags()

AddFlags add the ceph configurations to global flag.

type Config

type Config struct {
	CephConfig
	TencentCloudConfig
	// Path to Kubelet's root dir.
	KubeletRootDir string
	// Domain of the image registry.
	RegistryDomain string
	// Supported file system for block storage, such as CephRBD, CBS.
	Filesystems string
	// NeedDefaultSC indicates whether the cluster need to create default storage classes.
	NeedDefaultSc bool
}

Config is a bunch of global configurable parameters.

func (*Config) AddFlags

func (config *Config) AddFlags()

AddFlags add the configurations to global flag.

type TencentCloudConfig

type TencentCloudConfig struct {
	// Secret ID of Tencent Cloud
	SecretID string
	// Secret Key of Tencent Cloud
	SecretKey string
}

TencentCloudConfig is a bunch of global configurations of TencentCloud cluster.

func (*TencentCloudConfig) AddFlags

func (c *TencentCloudConfig) AddFlags()

AddFlags add the TencentCloud configurations to global flag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL