Documentation ¶
Index ¶
- Constants
- func GetLocalCreds() (string, string, string, string, string)
- func NewRpcCredentials(in ...RpcCredentialsInput) tokenAuth
- type Option
- type RpcCredentialsInput
- type Session
- func (s *Session) AccessToken() (string, error)
- func (s *Session) ClientId() string
- func (s *Session) ClientSecret() string
- func (s *Session) GrantType() string
- func (s *Session) LoginUrl() string
- func (s *Session) Password() string
- func (s *Session) Scope() string
- func (s *Session) Username() string
Constants ¶
View Source
const ( LoginUrlRipple = "https://login.alphaus.cloud/ripple/access_token" LoginUrlWave = "https://login.alphaus.cloud/access_token" LoginUrlRippleNext = "https://loginnext.alphaus.cloud/ripple/access_token" LoginUrlWaveNext = "https://loginnext.alphaus.cloud/access_token" BlueEndpoint = "blue.alphaus.cloud:8443" BlueEndpointNext = "bluenext.alphaus.cloud:8443" )
Variables ¶
This section is empty.
Functions ¶
func GetLocalCreds ¶ added in v0.6.6
GetLocalCreds returns caller's id, secret, user, password, and login url.
func NewRpcCredentials ¶ added in v0.4.5
func NewRpcCredentials(in ...RpcCredentialsInput) tokenAuth
Types ¶
type Option ¶
type Option interface {
Apply(*Session)
}
func WithClientId ¶
func WithClientSecret ¶
func WithGrantType ¶
func WithHttpClient ¶
func WithLoginUrl ¶
func WithPassword ¶
func WithUsername ¶
type RpcCredentialsInput ¶ added in v0.4.5
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) AccessToken ¶
AccessToken returns the access token after successful authentication to Blue API.
func (*Session) ClientSecret ¶ added in v0.6.6
Click to show internal directories.
Click to hide internal directories.