Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactoryConfiguration ¶
type FactoryConfiguration struct {
OAuthClientTimeout int
}
FactoryConfiguration holds factory configuration options
type OAuthClient ¶
type Strategy ¶
type Strategy interface { // Adds Authorization header to the request AddAuthorization(r *http.Request, setter TransportSetter) apperrors.AppError // Invalidates internal state Invalidate() }
type StrategyFactory ¶
type StrategyFactory interface { // Creates strategy for credentials provided Create(credentials *metadatamodel.Credentials) Strategy }
func NewStrategyFactory ¶
func NewStrategyFactory(config FactoryConfiguration) StrategyFactory
NewStrategyFactory creates factory for instantiating Strategy implementations
type TransportSetter ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.