session

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LoginUrlRipple = "https://login.alphaus.cloud/ripple/access_token"
	LoginUrlWave   = "https://login.alphaus.cloud/access_token"

	BlueEndpoint    = "blued-production-u554nqhjka-an.a.run.app:443"
	AwsCostEndpoint = "awscostd-production-u554nqhjka-an.a.run.app:443"
)

Variables

This section is empty.

Functions

func NewRpcCredentials added in v0.4.5

func NewRpcCredentials(in ...RpcCredentialsInput) tokenAuth

Types

type Option

type Option interface {
	Apply(*Session)
}

func WithClientId

func WithClientId(v string) Option

func WithClientSecret

func WithClientSecret(v string) Option

func WithGrantType

func WithGrantType(v string) Option

func WithHttpClient

func WithHttpClient(v *http.Client) Option

func WithLoginUrl

func WithLoginUrl(v string) Option

func WithPassword

func WithPassword(v string) Option

func WithScope

func WithScope(v string) Option

func WithUsername

func WithUsername(v string) Option

type RpcCredentialsInput added in v0.4.5

type RpcCredentialsInput struct {
	LoginUrl     string // default: Ripple
	ClientId     string // default: $ALPHAUS_CLIENT_ID
	ClientSecret string // default: $ALPHAUS_CLIENT_SECRET
}

type Session

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

func New

func New(o ...Option) *Session

func (*Session) AccessToken

func (s *Session) AccessToken() (string, error)

Jump to

Keyboard shortcuts

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