settings

package
v0.0.0-...-7a7f88d Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DirPath               = "scalecsilogs"
	LogFile               = "ibm-spectrum-scale-csi.logs"
	LogLevel              = "LOGLEVEL"
	PersistentLog         = "PERSISTENT_LOG"
	NodePublishMethod     = "NODEPUBLISH_METHOD"
	VolumeStatsCapability = "VOLUME_STATS_CAPABILITY"
	HostPath              = "/host/var/adm/ras/"
	RotateSize            = 1024
)
View Source
const (
	DefaultGuiPort int    = 443
	GuiProtocol    string = "https"
	ConfigMapFile  string = "/var/lib/ibm/config/spectrum-scale-config.json"
	// #nosec G101
	SecretBasePath  string = "/var/lib/ibm/" //nolint:gosec
	CertificatePath string = "/var/lib/ibm/ssl/public"
)

Variables

This section is empty.

Functions

func HandleSecretsAndCerts

func HandleSecretsAndCerts(ctx context.Context, cmap *ScaleSettingsConfigMap) error

Types

type Clusters

type Clusters struct {
	ID            string    `json:"id"`
	Primary       Primary   `json:"primary,omitempty"`
	SecureSslMode bool      `json:"secureSslMode"`
	Cacert        string    `json:"cacert"`
	Secrets       string    `json:"secrets"`
	RestAPI       []RestAPI `json:"restApi"`

	MgmtUsername string
	MgmtPassword string
	CacertValue  []byte
}

type LoggerLevel

type LoggerLevel int
const (
	TRACE LoggerLevel = iota
	DEBUG
	INFO
	WARNING
	ERROR
	FATAL
)

func (LoggerLevel) String

func (level LoggerLevel) String() string

type Primary

type Primary struct {
	PrimaryFSDep  string `json:"primaryFS"` // Deprecated
	PrimaryFs     string `json:"primaryFs"`
	PrimaryFset   string `json:"primaryFset"`
	PrimaryCid    string `json:"primaryCid"`
	InodeLimitDep string `json:"inode-limit"` // Deprecated
	InodeLimits   string `json:"inodeLimit"`
	RemoteCluster string `json:"remoteCluster"`

	PrimaryFSMount      string
	PrimaryFsetLink     string
	SymlinkAbsolutePath string
	SymlinkRelativePath string
}

func (Primary) GetInodeLimit

func (primary Primary) GetInodeLimit() string

To support backwards compatibility if the InodeLimit field is not defined then

use the previous version of the field.

func (Primary) GetPrimaryFs

func (primary Primary) GetPrimaryFs() string

To support backwards compatibility if the PrimaryFs field is not defined then

use the previous version of the field.

type RestAPI

type RestAPI struct {
	GuiHost string `json:"guiHost"`
	GuiPort int    `json:"guiPort"`
}

type ScaleSettingsConfigMap

type ScaleSettingsConfigMap struct {
	Clusters []Clusters
}

func LoadScaleConfigSettings

func LoadScaleConfigSettings(ctx context.Context) ScaleSettingsConfigMap

Jump to

Keyboard shortcuts

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