auth

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 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

func GetAccountID() (string, error)

func GetAuthExpiresAt

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

func GetAuthKey

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

GetAuthKey gets the authorization bearer string key

func GetControllerEndpoint

func GetControllerEndpoint() (string, error)

func GetNoAuthKey

func GetNoAuthKey() *auth.AuthKey

GetNoAuthKey gets void authKey

func GetUserID

func GetUserID() (string, error)

Types

type Credentials

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