auth

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(clientId, clientSecret, source, tokenIssuerUrl, audience string) *Auth

func (*Auth) GetEnvironment added in v0.3.0

func (a *Auth) GetEnvironment() (string, error)

func (*Auth) GetToken

func (a *Auth) GetToken() (string, error)

type Credentials

type Credentials struct {
	Audience  string `json:"audience"`
	Source    string `json:"source"`
	ClientId  string `json:"clientId"`
	ExpiresAt string `json:"expiresAt"`
	Token     string `json:"token"`
}

func LoadCredentials

func LoadCredentials(fileLocation string) (Credentials, error)

func NewCredentials

func NewCredentials(audience, source, clientId, expiresAt, token string) *Credentials

func (*Credentials) GetEnvironment added in v0.3.0

func (c *Credentials) GetEnvironment() (string, error)

func (*Credentials) WriteCredentials

func (c *Credentials) WriteCredentials(fileLocation string) error

Jump to

Keyboard shortcuts

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