auth

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	AccountID uint32
	ProjectID uint32
}

Token contains settings for request processing

func NewToken

func NewToken(authToken string) (*Token, error)

NewToken returns new Token for the given authToken.

func NewTokenPossibleMultitenant added in v1.87.8

func NewTokenPossibleMultitenant(authToken string) (*Token, error)

NewTokenPossibleMultitenant returns new Token for the given authToken.

If authToken == "multitenant", then nil Token is returned.

func (*Token) Init added in v1.82.0

func (t *Token) Init(authToken string) error

Init initializes t from authToken.

func (*Token) Set added in v1.82.0

func (t *Token) Set(accountID, projectID uint32)

Set sets accountID and projectID for the t.

func (*Token) String added in v1.80.0

func (t *Token) String() string

String returns string representation of t.

Jump to

Keyboard shortcuts

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