client

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL