auth

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKeyFile

func GetAPIKeyFile() (string, error)

func GetAccountID added in v0.4.0

func GetAccountID() (string, error)

func GetAuthExpiresAt added in v0.5.0

func GetAuthExpiresAt() (*time.Time, error)

func GetAuthKey

func GetAuthKey() (*auth.AuthKey, error)

GetAuthKey gets the authorization bearer string key

func GetControllerEndpoint added in v0.4.0

func GetControllerEndpoint() (string, error)

func GetNoAuthKey

func GetNoAuthKey() *auth.AuthKey

GetNoAuthKey gets void authKey

func GetUserID added in v0.5.0

func GetUserID() (string, error)

Types

type Credentials added in v0.4.0

type Credentials struct {
	AccountID    string `json:"accountID,omitempty"`
	LocationID   string `json:"locationID,omitempty"`
	FederationID string `json:"federationID,omitempty"`
	Key          string `json:"key,omitempty"`
	ExpiresAt    int64  `json:"expiresAt,omitempty"`
	UserID       string `json:"userID,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳