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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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