credentials

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredentialsFilename = "credentials.yml"

	AccessKeyEnvVar = "LABSTORE_ACCESS_KEY"
	SecretKeyEnvVar = "LABSTORE_SECRET_KEY"
)

Variables

This section is empty.

Functions

func CredentialsPath

func CredentialsPath() (string, error)

func Init

func Init()

Types

type Credentials

type Credentials struct {
	DefaultProfile *string             `yaml:"default_profile"`
	Profiles       map[string]*Profile `yaml:"profiles"`
}

func LoadCredentials

func LoadCredentials() (*Credentials, error)

func (*Credentials) Save

func (c *Credentials) Save() error

type Profile

type Profile struct {
	AccessKey string `yaml:"access_key"`
	SecretKey string `yaml:"secret_key"`
}

func LoadDefaultProfile

func LoadDefaultProfile() (*Profile, error)

func LoadProfile

func LoadProfile(name string) (*Profile, error)

Jump to

Keyboard shortcuts

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