auth

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Creds
}

Config stores the auth info

type Creds

type Creds struct {
	ClientID           string
	ClientSecret       string
	TenantID           string
	SubscriptionID     string
	StorageAccountName string
	StorageAccountKey  string
}

Creds stores the auth info

func LoadFromEnvironment

func LoadFromEnvironment() (Creds, error)

LoadFromEnvironment loads auth info from the environment

func LoadFromFile

func LoadFromFile(credsFile string) (Creds, error)

LoadFromFile loads auth info from the input file path This was mostly copied from the test-infra repo

Jump to

Keyboard shortcuts

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