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 ¶
func NewTokenController ¶
func NewTokenController(handler *handlers.STSAuthHandler, output OutputAccessToken) TokenController
NewTokenController creates a new self managed token.
Click to show internal directories.
Click to hide internal directories.