Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthConfig ¶
func (BasicAuthConfig) ToCredentials ¶
func (bc BasicAuthConfig) ToCredentials() *authorization.Credentials
type CSRFConfig ¶
type CSRFConfig struct {
TokenURL string `json:"tokenUrl"`
}
type CertificateConfig ¶
type CertificateConfig struct { Certificate []byte `json:"certificate"` PrivateKey []byte `json:"privateKey"` }
func (CertificateConfig) ToCredentials ¶
func (cc CertificateConfig) ToCredentials() *authorization.Credentials
type Configuration ¶
type Configuration struct { RequestParameters *authorization.RequestParameters `json:"requestParameters,omitempty"` CSRFConfig *CSRFConfig `json:"csrfConfig,omitempty"` Credentials Credentials `json:"credentials,omitempty"` }
type Credentials ¶
type Credentials interface {
ToCredentials() *authorization.Credentials
}
type NoAuthConfig ¶
type NoAuthConfig struct{}
func (NoAuthConfig) ToCredentials ¶
func (oc NoAuthConfig) ToCredentials() *authorization.Credentials
type OauthConfig ¶
type OauthConfig struct { ClientId string `json:"clientId"` ClientSecret string `json:"clientSecret"` TokenURL string `json:"tokenUrl"` RequestParameters authorization.RequestParameters `json:"requestParameters,omitempty"` }
func (OauthConfig) ToCredentials ¶
func (oc OauthConfig) ToCredentials() *authorization.Credentials
type ProxyDestinationConfig ¶
type ProxyDestinationConfig struct { TargetURL string `json:"targetUrl"` Configuration Configuration `json:"configuration"` }
ProxyDestinationConfig is Proxy configuration for specific target
type TargetConfigProvider ¶
type TargetConfigProvider interface {
GetDestinationConfig(secretName, apiName string) (ProxyDestinationConfig, apperrors.AppError)
}
TargetConfigProvider allows to fetch ProxyDestinationConfig for specific service
Click to show internal directories.
Click to hide internal directories.