config

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = Config{
		S3UserClass:                     "ceph-default",
		ClusterName:                     "okd4-main",
		ValidationWebhookTimeoutSeconds: 10,
		Rgw: &Rgw{
			Endpoint:  "http://127.0.0.1:8000",
			AccessKey: "2262XNX11FZRR44XWIRD",
			SecretKey: "rmtuS1Uj1bIC08QFYGW18GfSHAbkPqdsuYynNudw",
		},
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	S3UserClass                     string `koanf:"s3UserClass"`
	ClusterName                     string `koanf:"clusterName"`
	ValidationWebhookTimeoutSeconds int    `koanf:"validationWebhookTimeoutSeconds"`
	Rgw                             *Rgw   `koanf:"rgw"`
}

func GetConfig

func GetConfig(configPath string) (*Config, error)

type Rgw

type Rgw struct {
	Endpoint  string `koanf:"endpoint"`
	AccessKey string `koanf:"accessKey"`
	SecretKey string `koanf:"secretKey"`
}

Jump to

Keyboard shortcuts

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