config

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSluConfigFilePath

func GetSluConfigFilePath() (string, error)

func GetSluSecretFilePath

func GetSluSecretFilePath() (string, error)

func GetSluStateFilePath

func GetSluStateFilePath() (string, error)

func WriteConfig

func WriteConfig(c SluConfig)

func WriteSecrets

func WriteSecrets(s SluSecrets)

func WriteState

func WriteState(c SluState)

Types

type SluConfig

type SluConfig struct {
	SluVault SluConfigSluVault
}

func ReadConfig

func ReadConfig() SluConfig

type SluConfigSluVault

type SluConfigSluVault struct {
	Url  string
	User string
}

type SluSecrets

type SluSecrets struct {
	DigitalOcean []SluSecretsDigitalOcean
	SluVault     SluSecretsSluVault
}

func ReadSecrets

func ReadSecrets() SluSecrets

type SluSecretsDigitalOcean

type SluSecretsDigitalOcean struct {
	Alias string
	Token string
}

type SluSecretsSluVault

type SluSecretsSluVault struct {
	Token string
}

type SluState

type SluState struct {
	DigitalOcean SluStateDigitalOcean
}

func ReadState

func ReadState() SluState

type SluStateDigitalOcean

type SluStateDigitalOcean struct {
	CurrentContext string
}

Jump to

Keyboard shortcuts

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