Documentation ¶
Index ¶
- type AuthorizeAs
- type Client
- func (c *Client) HTTPClient() *http.Client
- func (c *Client) IsAuthorizeAsService() bool
- func (c *Client) Mutators(ctx context.Context) ([]request.RequestMutator, error)
- func (c *Client) RequestData(ctx context.Context, method string, url string, ...) error
- func (c *Client) RequestStream(ctx context.Context, method string, url string, ...) (io.ReadCloser, error)
- type Config
- type RestrictedTokenParameterMutator
- type ServiceSecretHeaderMutator
- type SessionTokenHeaderMutator
- type TraceMutator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeAs ¶ added in v1.27.0
type AuthorizeAs int
const ( AuthorizeAsService AuthorizeAs = iota AuthorizeAsUser )
type Client ¶
func (*Client) HTTPClient ¶
func (*Client) IsAuthorizeAsService ¶ added in v1.27.0
func (*Client) RequestData ¶ added in v1.27.0
func (c *Client) RequestData(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}, responseBody interface{}, inspectors ...request.ResponseInspector) error
func (*Client) RequestStream ¶ added in v1.27.0
func (c *Client) RequestStream(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}, inspectors ...request.ResponseInspector) (io.ReadCloser, error)
type RestrictedTokenParameterMutator ¶
type RestrictedTokenParameterMutator struct {
*request.ParameterMutator
}
func NewRestrictedTokenParameterMutator ¶
func NewRestrictedTokenParameterMutator(restrictedToken string) *RestrictedTokenParameterMutator
func (*RestrictedTokenParameterMutator) MutateRequest ¶ added in v1.27.0
func (r *RestrictedTokenParameterMutator) MutateRequest(req *http.Request) error
type ServiceSecretHeaderMutator ¶
type ServiceSecretHeaderMutator struct {
*request.HeaderMutator
}
func NewServiceSecretHeaderMutator ¶
func NewServiceSecretHeaderMutator(serviceSecret string) *ServiceSecretHeaderMutator
func (*ServiceSecretHeaderMutator) MutateRequest ¶ added in v1.27.0
func (s *ServiceSecretHeaderMutator) MutateRequest(req *http.Request) error
type SessionTokenHeaderMutator ¶
type SessionTokenHeaderMutator struct {
*request.HeaderMutator
}
func NewSessionTokenHeaderMutator ¶
func NewSessionTokenHeaderMutator(sessionToken string) *SessionTokenHeaderMutator
func (*SessionTokenHeaderMutator) MutateRequest ¶ added in v1.27.0
func (s *SessionTokenHeaderMutator) MutateRequest(req *http.Request) error
type TraceMutator ¶
func NewTraceMutator ¶
func NewTraceMutator(ctx context.Context) *TraceMutator
func (*TraceMutator) MutateRequest ¶ added in v1.27.0
func (t *TraceMutator) MutateRequest(req *http.Request) error
Click to show internal directories.
Click to hide internal directories.