Versions in this module Expand all Collapse all v1 v1.1.0 May 9, 2023 Changes in this version + func Bool(b bool) *bool + func CheckResponse(resp *http.Response) error + func CreateFormField(w *multipart.Writer, fieldName, contentType string, fieldValue []byte) error + func CreateFormFile(w *multipart.Writer, filename, contentType string, file []byte) error + func Float32(f float32) *float32 + func Float64(f float64) *float64 + func Int32(i int32) *int32 + func Int64(i int64) *int64 + func IsAPIError(err error, code string) bool + func ParameterToJSON(obj interface{}) (string, error) + func ParameterToString(obj interface{}, collectionFormat string) string + func SelectHeaderContentType(contentTypes []string) string + func String(s string) *string + func Time(t time.Time) *time.Time + func UnMarshalResponse(httpResp *http.Response, resp interface{}) error + type APIError struct + Body string + Code string + Detail interface{} + Header http.Header + Message string + StatusCode int + func (e *APIError) Error() string + type APIResult struct + Request *http.Request + Response *http.Response + type CertificateExporter interface + Export func(ctx context.Context, serialNumber string) (string, bool) + ExportAll func(ctx context.Context) map[string]string + type CertificateGetter interface + Get func(ctx context.Context, serialNumber string) (*x509.Certificate, bool) + GetAll func(ctx context.Context) map[string]*x509.Certificate + GetNewestSerial func(ctx context.Context) string + type CertificateMap struct + func NewCertificateMap(certificateMap map[string]*x509.Certificate) *CertificateMap + func NewCertificateMapWithList(l []*x509.Certificate) *CertificateMap + func (m *CertificateMap) Get(_ context.Context, serialNumber string) (*x509.Certificate, bool) + func (m *CertificateMap) GetAll(_ context.Context) map[string]*x509.Certificate + func (m *CertificateMap) GetNewestSerial(_ context.Context) string + func (m *CertificateMap) Reset(newCertificates map[string]*x509.Certificate) + type CertificateVisitor interface + type Client struct + func NewClient(ctx context.Context, opts ...ClientOption) (*Client, error) + func NewClientWithDialSettings(ctx context.Context, settings *DialSettings) (*Client, error) + func NewClientWithValidator(client *Client, validator auth.Validator) *Client + func (client *Client) DecryptResponse(ctx context.Context, resp interface{}) error + func (client *Client) Delete(ctx context.Context, requestURL string, requestBody interface{}) (*APIResult, error) + func (client *Client) EncryptRequest(ctx context.Context, req interface{}) (string, error) + func (client *Client) Get(ctx context.Context, requestURL string) (*APIResult, error) + func (client *Client) Patch(ctx context.Context, requestURL string, requestBody interface{}) (*APIResult, error) + func (client *Client) Post(ctx context.Context, requestURL string, requestBody interface{}) (*APIResult, error) + func (client *Client) Put(ctx context.Context, requestURL string, requestBody interface{}) (*APIResult, error) + func (client *Client) Request(ctx context.Context, method, requestPath string, headerParams http.Header, ...) (result *APIResult, err error) + func (client *Client) Sign(ctx context.Context, message string) (result *auth.SignatureResult, err error) + func (client *Client) Upload(ctx context.Context, requestURL, meta, reqBody, formContentType string) (*APIResult, error) + type ClientOption interface + Apply func(settings *DialSettings) error + type DialSettings struct + Cipher cipher.Cipher + HTTPClient *http.Client + Signer auth.Signer + Validator auth.Validator + func (ds *DialSettings) Validate() error + type ErrorOption struct + Error error + func (w ErrorOption) Apply(*DialSettings) error