Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewWriter ¶
func NewWriter(factory func() (io.WriteCloser, error)) interfaces.AuthTokenWriter
Types ¶
type RefreshDurationFuncType ¶
type RefreshDurationFuncType func(token interfaces.AuthToken) time.Duration
type Refresher ¶
type Refresher struct {
// contains filtered or unexported fields
}
func NewAuthTokenRefresher ¶
func NewAuthTokenRefresher(tokenProvider interfaces.AuthTokenProvider, writer interfaces.AuthTokenWriter, refreshCalculate RefreshDurationFuncType, createTicker CreateTickerFuncType) *Refresher
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteToken ¶
func (w *Writer) WriteToken(token interfaces.AuthToken) error
Click to show internal directories.
Click to hide internal directories.