settings

package
v0.0.0-...-3e3c751 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGuiPort  int    = 443
	GuiProtocol     string = "https"
	ConfigMapFile   string = "/var/lib/ibm/config/spectrum-scale-config.json"
	SecretBasePath  string = "/var/lib/ibm/" //nolint:gosec
	CertificatePath string = "/var/lib/ibm/ssl/public"
)

Variables

This section is empty.

Functions

func HandleSecretsAndCerts

func HandleSecretsAndCerts(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 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() ScaleSettingsConfigMap

Jump to

Keyboard shortcuts

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