config

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version      string = "dev"
	KsctlCoreVer string = "dev"
	BuildDate    string
)

change this using ldflags

Functions

func InDevMode added in v2.1.0

func InDevMode() bool

func LoadConfig

func LoadConfig(c *Config) (errC error)

func LoadStorageCreds

func LoadStorageCreds[T statefile.CredentialsMongodb](c *T, s consts.KsctlStore) (errC error)

func SaveConfig

func SaveConfig(c *Config) error

func SaveStorageCreds

func SaveStorageCreds[T statefile.CredentialsMongodb](c *T, s consts.KsctlStore) error

Types

type Config

type Config struct {
	PreferedStateStore consts.KsctlStore `json:"preferedStateStore"`
	Telemetry          *bool             `json:"telemetry,omitempty"`
}

Jump to

Keyboard shortcuts

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