Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthError ¶
Types ¶
type CSPAPIToken ¶
type CSPClientCredentials ¶
type CSPService ¶
type CSPService struct {
// contains filtered or unexported fields
}
func (*CSPService) Close ¶
func (s *CSPService) Close()
func (*CSPService) IsDirect ¶
func (s *CSPService) IsDirect() bool
func (*CSPService) RefreshAccessToken ¶
func (s *CSPService) RefreshAccessToken()
type NoOpService ¶
type NoOpService struct {
}
func (NoOpService) Close ¶
func (t NoOpService) Close()
func (NoOpService) IsDirect ¶
func (t NoOpService) IsDirect() bool
type Service ¶
Service Interface for getting authentication tokens (Wavefront, CSP)
func NewCSPServerToServerService ¶
func NewCSPServerToServerService( CSPBaseURL string, ClientID string, ClientSecret string, OrgID *string, ) Service
NewCSPServerToServerService returns a Service instance that gets access tokens via CSP client credentials
func NewCSPTokenService ¶
func NewNoopTokenService ¶
func NewNoopTokenService() Service
NewNoopTokenService returns a Service instance where it always returns an empty string for the token (for proxy usage).
func NewWavefrontTokenService ¶
NewWavefrontTokenService returns a Service instance where it always returns a Wavefront API Token
type WavefrontTokenService ¶
type WavefrontTokenService struct {
Token string
}
func (WavefrontTokenService) Authorize ¶
func (t WavefrontTokenService) Authorize(req *http.Request) error
func (WavefrontTokenService) Close ¶
func (t WavefrontTokenService) Close()
func (WavefrontTokenService) IsDirect ¶
func (t WavefrontTokenService) IsDirect() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.