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) GetPreSignedUploadURL(ctx context.Context, md5 string) (SignedURL, error)
- type BatchUpsertIntegrationsParams
- type Header
- type Integration
- type RequestClient
- func (c *RequestClient) Delete(ctx context.Context, url string, headers ...Header) (*http.Response, error)
- func (c *RequestClient) Get(ctx context.Context, url string, result any, headers ...Header) (*http.Response, error)
- func (c *RequestClient) Post(ctx context.Context, url string, reqBody any, result any, headers ...Header) (*http.Response, error)
- func (c *RequestClient) Put(ctx context.Context, url string, reqBody any, result any, headers ...Header) (*http.Response, error)
- type SignedURL
Constants ¶
This section is empty.
Variables ¶
View Source
var API_VERSION = "v1" //nolint:gochecknoglobals
View Source
var ErrNon200Status = errors.New("error response from API")
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { Root string ProjectId string APIKey *string RequestClient *RequestClient }
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 Integration ¶
type Integration struct {
Name string `json:"name"`
}
type RequestClient ¶
func NewRequestClient ¶
func NewRequestClient() *RequestClient
func (*RequestClient) Delete ¶ added in v0.1.7
func (c *RequestClient) 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 (*RequestClient) Get ¶ added in v0.1.3
func (c *RequestClient) 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`.
Click to show internal directories.
Click to hide internal directories.