Documentation
¶
Index ¶
- type BasicAuthProperties
- type SecuredHttpClient
- func (s *SecuredHttpClient) Delete(ctx context.Context, url string, body interface{}, result interface{}, ...) (*client.HttpResponse, error)
- func (s *SecuredHttpClient) Get(ctx context.Context, url string, result interface{}, ...) (*client.HttpResponse, error)
- func (s *SecuredHttpClient) Patch(ctx context.Context, url string, body interface{}, result interface{}, ...) (*client.HttpResponse, error)
- func (s *SecuredHttpClient) Post(ctx context.Context, url string, body interface{}, result interface{}, ...) (*client.HttpResponse, error)
- func (s *SecuredHttpClient) Put(ctx context.Context, url string, body interface{}, result interface{}, ...) (*client.HttpResponse, error)
- func (s *SecuredHttpClient) Request(ctx context.Context, method string, url string, body interface{}, ...) (*client.HttpResponse, error)
- type SecurityProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthProperties ¶
type BasicAuthProperties struct { Username string Password string UrlMatch string // contains filtered or unexported fields }
func (BasicAuthProperties) UrlRegexp ¶
func (b BasicAuthProperties) UrlRegexp() *regexp.Regexp
type SecuredHttpClient ¶
type SecuredHttpClient struct {
// contains filtered or unexported fields
}
func NewSecuredHttpClient ¶
func NewSecuredHttpClient( client client.ContextualHttpClient, properties *SecurityProperties, ) *SecuredHttpClient
func (*SecuredHttpClient) Delete ¶
func (s *SecuredHttpClient) Delete(ctx context.Context, url string, body interface{}, result interface{}, options ...client.RequestOption) (*client.HttpResponse, error)
func (*SecuredHttpClient) Get ¶
func (s *SecuredHttpClient) Get(ctx context.Context, url string, result interface{}, options ...client.RequestOption) (*client.HttpResponse, error)
func (*SecuredHttpClient) Patch ¶
func (s *SecuredHttpClient) Patch(ctx context.Context, url string, body interface{}, result interface{}, options ...client.RequestOption) (*client.HttpResponse, error)
func (*SecuredHttpClient) Post ¶
func (s *SecuredHttpClient) Post(ctx context.Context, url string, body interface{}, result interface{}, options ...client.RequestOption) (*client.HttpResponse, error)
func (*SecuredHttpClient) Put ¶
func (s *SecuredHttpClient) Put(ctx context.Context, url string, body interface{}, result interface{}, options ...client.RequestOption) (*client.HttpResponse, error)
func (*SecuredHttpClient) Request ¶
func (s *SecuredHttpClient) Request(ctx context.Context, method string, url string, body interface{}, result interface{}, options ...client.RequestOption) (*client.HttpResponse, error)
type SecurityProperties ¶
type SecurityProperties struct {
BasicAuth []*BasicAuthProperties
}
func NewSecurityProperties ¶
func NewSecurityProperties(loader config.Loader) (*SecurityProperties, error)
func (*SecurityProperties) PostBinding ¶
func (h *SecurityProperties) PostBinding() error
func (SecurityProperties) Prefix ¶
func (h SecurityProperties) Prefix() string
Click to show internal directories.
Click to hide internal directories.