controllers

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputAccessToken

type OutputAccessToken *string

type SelfControlledToken

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

SelfControlledToken manages the life cycle of a STS token.

func (*SelfControlledToken) GetToken

func (tm *SelfControlledToken) GetToken() (string, error)

GetToken returns the current token, ensuring that it is valid.

func (*SelfControlledToken) Start

func (tm *SelfControlledToken) Start() error

Start starts the self controlled token service and makes the first request to get the token. Returns error if you can't get the initial token.

func (*SelfControlledToken) Stop

func (tm *SelfControlledToken) Stop()

Stop interrupts the self controlled token service.

type TokenController

type TokenController interface {
	Start() error
	GetToken() (string, error)
	Stop()
}

func NewTokenController

func NewTokenController(handler *handlers.STSAuthHandler, output OutputAccessToken) TokenController

NewTokenController creates a new self managed token.

Jump to

Keyboard shortcuts

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