settings

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

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/"
	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"`
	RemoteFSDep   string `json:"remoteFS"` // Deprecated
	RemoteFs      string `json:"remoteFs"`

	PrimaryFSMount      string
	PrimaryFsetLink     string
	SymlinkAbsolutePath string
	SymlinkRelativePath string
}

func (Primary) GetInodeLimit added in v1.0.0

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 added in v1.0.0

func (primary Primary) GetPrimaryFs() string

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

use the previous version of the field.

func (Primary) GetRemoteFs added in v1.0.0

func (primary Primary) GetRemoteFs() string

To support backwards compatibility if the RemoteFs 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