ramauthenticator

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent = "ack-ram-tool"

Functions

This section is empty.

Types

type Token

type Token struct {
	ClusterId string `json:"clusterId"` // legacy, for audit

	Method  string            `json:"method"` // legacy, for audit
	Path    string            `json:"path"`   // legacy, for audit
	Query   map[string]string `json:"query"`
	Headers map[string]string `json:"headers"`

	Expiration time.Time `json:"-"`
}

func GenerateToken

func GenerateToken(clusterId string, cred credentials.Credential, options ...extendOption) (*Token, error)

func (*Token) String

func (t *Token) String() string

type TokenGenerator

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

func NewTokenGenerator

func NewTokenGenerator(clusterId string, cred credentials.Credential) *TokenGenerator

func (*TokenGenerator) NewToken

func (g *TokenGenerator) NewToken() (*Token, error)

func (*TokenGenerator) SetExtraQuery

func (g *TokenGenerator) SetExtraQuery(extraQuery map[string]string)

Jump to

Keyboard shortcuts

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