config

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package config defines the global configurations for oceanctl

Index

Constants

View Source
const (
	// CliVersion oceanctl version
	CliVersion = "v4.4.0"

	// DefaultMaxClientThreads default max client threads
	DefaultMaxClientThreads = "30"

	// DefaultUidLength default uid length
	DefaultUidLength = 10

	// DefaultNamespace default namespace
	DefaultNamespace = "huawei-csi"

	// DefaultProvisioner default driver name
	DefaultProvisioner = "csi.huawei.com"

	// DefaultInputFormat default input format
	DefaultInputFormat = "yaml"

	// DefaultLogName default log file name
	DefaultLogName = "oceanctl-log"

	// DefaultLogSize default log file size
	DefaultLogSize = "20M"

	// DefaultLogModule default log file module
	DefaultLogModule = "file"

	// DefaultLogLevel default log file level
	DefaultLogLevel = "info"

	// DefaultLogMaxBackups default log file max backups
	DefaultLogMaxBackups = 9

	// DefaultLogDir default log dir
	DefaultLogDir = "/var/log/huawei"

	// DefaultMaxNodeThreads default max Node Threads num
	DefaultMaxNodeThreads = 50
)

Variables

View Source
var (
	// Namespace the value of namespace flag, set by options.WithNameSpace().
	Namespace string

	// OutputFormat the value of output format flag, set by options.WithOutPutFormat().
	OutputFormat string

	// FileName the value of filename flag, set by options.WithFilename().
	FileName string

	// FileType the value of input format flag, set by options.WithInputFileType().
	FileType string

	// DeleteAll the value of all flag, set by options.DeleteAll().
	DeleteAll bool

	// ChangePassword the value of password flag, set by options.WithPassword().
	ChangePassword bool

	// Provisioner the value of password flag, set by options.WithProvisioner().
	Provisioner string

	// NotValidateName the value of validate flag, set by options.WithNotValidateName
	NotValidateName bool

	// Backend the value of backend flag, set by options.WithBackend().
	Backend string

	// Client when the discoverOperating() function executes successfully, this field will be set.
	Client client.KubernetesClient

	// IsAllNodes the value of allNodes flag, set by options.WithAllNodes().
	IsAllNodes bool

	// NodeName the value of nodeName flag, set by options.WithNodeName()
	NodeName string

	// LogDir the value of log-dir flag, set by options.WithLogDir()
	LogDir string

	// MaxNodeThreads the value of threads-max flag, set by options.WithMaxThreads()
	MaxNodeThreads int
)
View Source
var (
	// SupportedFormats supported output format
	SupportedFormats = []string{"json", "wide", "yaml"}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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