credentials

package
v0.0.0-...-880cb89 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSAccessKeyID     = "AWS_ACCESS_KEY_ID"
	AWSSecretAccessKey = "AWS_SECRET_ACCESS_KEY"
	AWSSessionToken    = "AWS_SESSION_TOKEN"
)

envvar consts

View Source
const (
	AzureClientID     = "AZURE_CLIENT_ID"
	AzureClientSecret = "AZURE_CLIENT_SECRET"
)

envvar consts

View Source
const (
	CorsoPassphrase = "CORSO_PASSPHRASE"
)

envvar consts

Variables

This section is empty.

Functions

func GetAWSEnvs

func GetAWSEnvs() map[string]string

Types

type AWS

type AWS struct {
	AccessKey    string // required
	SecretKey    string // required
	SessionToken string // required
}

AWS aggregates aws credentials from flag and env_var values.

func GetAWS

func GetAWS(override map[string]string) AWS

GetAWS is a helper for aggregating aws secrets and credentials.

func (AWS) Validate

func (c AWS) Validate() error

type Corso

type Corso struct {
	CorsoPassphrase string // required
}

Corso aggregates corso credentials from flag and env_var values.

func (Corso) Validate

func (c Corso) Validate() error

type M365

type M365 struct {
	AzureClientID     string
	AzureClientSecret string
}

M365 aggregates m365 credentials from flag and env_var values.

func GetM365

func GetM365() M365

M365 is a helper for aggregating m365 secrets and credentials.

func (M365) Validate

func (c M365) Validate() error

Jump to

Keyboard shortcuts

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