Documentation
¶
Index ¶
- Variables
- type APIClient
- func (c *APIClient) BatchUpsertIntegrations(ctx context.Context, reqParams BatchUpsertIntegrationsParams) ([]Integration, error)
- func (c *APIClient) DeleteInstallation(ctx context.Context, integrationId string, installationId string) error
- func (c *APIClient) DeleteIntegration(ctx context.Context, integrationId string) error
- func (c *APIClient) GetMyInfo(ctx context.Context) (map[string]any, error)
- func (c *APIClient) GetPreSignedUploadURL(ctx context.Context, md5 string) (SignedURL, error)
- type BatchUpsertIntegrationsParams
- type Client
- func (c *Client) Delete(ctx context.Context, url string, headers ...Header) (*http.Response, error)
- func (c *Client) Get(ctx context.Context, url string, result any, headers ...Header) (*http.Response, error)
- func (c *Client) Post(ctx context.Context, url string, reqBody any, result any, headers ...Header) (*http.Response, error)
- func (c *Client) Put(ctx context.Context, url string, reqBody any, result any, headers ...Header) (*http.Response, error)
- type Header
- type InputValidationIssue
- type Integration
- type ProblemError
- type SignedURL
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiVersion = "v1" //nolint:gochecknoglobals
View Source
var ErrNon200Status = errors.New("error response from API")
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
func NewAPIClient ¶
func (*APIClient) BatchUpsertIntegrations ¶
func (c *APIClient) BatchUpsertIntegrations( ctx context.Context, reqParams BatchUpsertIntegrationsParams, ) ([]Integration, error)
func (*APIClient) DeleteInstallation ¶ added in v0.1.11
func (*APIClient) DeleteIntegration ¶ added in v0.1.7
type BatchUpsertIntegrationsParams ¶
type BatchUpsertIntegrationsParams struct {
SourceZipURL string `json:"sourceZipUrl"`
}
type Client ¶ added in v0.1.13
func NewRequestClient ¶
func NewRequestClient() *Client
func (*Client) Delete ¶ added in v0.1.13
func (c *Client) Delete(ctx context.Context, url string, headers ...Header, ) (*http.Response, error)
Delete makes a Delete request to the desired URL for plain text requests.
func (*Client) Get ¶ added in v0.1.13
func (c *Client) Get(ctx context.Context, url string, result any, headers ...Header, ) (*http.Response, error)
Get makes a GET request to the desired URL, and unmarshalls the response body into `result`.
type InputValidationIssue ¶ added in v0.1.13
type InputValidationIssue struct {
In string `json:"in,omitempty"`
Name string `json:"name,omitempty"`
Value any `json:"value,omitempty"`
Detail string `json:"detail,omitempty"`
Href string `json:"href,omitempty"`
Instance string `json:"instance,omitempty"`
Status int32 `json:"status,omitempty"`
Title string `json:"title,omitempty"`
Type string `json:"type,omitempty"`
Subsystem string `json:"subsystem,omitempty"`
Time string `json:"time,omitempty"`
RequestID string `json:"requestId,omitempty"`
Causes []string `json:"causes,omitempty"`
Remedy string `json:"remedy,omitempty"`
SupportEmail string `json:"supportEmail,omitempty"`
SupportPhone string `json:"supportPhone,omitempty"`
SupportURL string `json:"supportUrl,omitempty"`
Retryable *bool `json:"retryable,omitempty"`
RetryAfter string `json:"retryAfter,omitempty"`
Context map[string]any `json:"context,omitempty"`
}
type Integration ¶
type Integration struct {
Name string `json:"name"`
}
type ProblemError ¶ added in v0.1.13
type ProblemError struct {
Detail string `json:"detail,omitempty"`
Href string `json:"href,omitempty"`
Instance string `json:"instance,omitempty"`
Status int32 `json:"status,omitempty"`
Title string `json:"title,omitempty"`
Type string `json:"type,omitempty"`
Subsystem string `json:"subsystem,omitempty"`
Time string `json:"time,omitempty"`
RequestID string `json:"requestId,omitempty"`
Causes []string `json:"causes,omitempty"`
Remedy string `json:"remedy,omitempty"`
SupportEmail string `json:"supportEmail,omitempty"`
SupportPhone string `json:"supportPhone,omitempty"`
SupportURL string `json:"supportUrl,omitempty"`
Retryable *bool `json:"retryable,omitempty"`
RetryAfter string `json:"retryAfter,omitempty"`
Context map[string]any `json:"context,omitempty"`
Issues []InputValidationIssue `json:"issues,omitempty"`
}
func (*ProblemError) Error ¶ added in v0.1.13
func (p *ProblemError) Error() string
Click to show internal directories.
Click to hide internal directories.