Documentation ¶
Index ¶
- type Api
- func (a *Api) BucketExists(bucketId string) bool
- func (a *Api) CreateBucket(name string, stage string, displayName string) (model.Bucket, error)
- func (a *Api) CreateBucketAsyncRequest(name string, stage string, displayName string) *client.Request
- func (a *Api) CreateFileResource(name string) (model.FileResource, error)
- func (a *Api) CreateTableAsync(bucketId string, tableName string, fileId string) (model.Job, error)
- func (a *Api) CreateTableAsyncRequest(bucketId string, tableName string, fileId string) *client.Request
- func (a *Api) GetBucketRequest(bucketId string) *client.Request
- func (a *Api) GetJob(jobId int) (*model.Job, error)
- func (a *Api) GetJobRequest(jobId int) *client.Request
- func (a *Api) GetTableRequest(tableId string) *client.Request
- func (a *Api) GetToken(token string) (model.Token, error)
- func (a *Api) GetTokenRequest(token string) *client.Request
- func (a *Api) Host() string
- func (a *Api) HostUrl() string
- func (a *Api) HttpClient() *http.Client
- func (a *Api) ImportTableAsync(tableId string, fileId string, incremental bool) (model.Job, error)
- func (a *Api) ImportTableAsyncRequest(tableId string, fileId string, incremental bool) *client.Request
- func (a *Api) NewPool() *client.Pool
- func (a *Api) NewRequest(method string, url string) *client.Request
- func (a *Api) PostCreateFileResource(name string) *client.Request
- func (a *Api) ProjectId() int
- func (a *Api) ProjectName() string
- func (a *Api) RestyClient() *resty.Client
- func (a *Api) Send(request *client.Request)
- func (a *Api) SetRetry(count int, waitTime time.Duration, maxWaitTime time.Duration)
- func (a *Api) TableExists(tableId string) bool
- func (a *Api) Token() model.Token
- func (a Api) WithToken(token model.Token) *Api
- type Error
- type ErrorWithResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewWithToken ¶
func (*Api) BucketExists ¶
func (*Api) CreateBucket ¶
func (*Api) CreateBucketAsyncRequest ¶
func (*Api) CreateFileResource ¶
func (a *Api) CreateFileResource(name string) (model.FileResource, error)
func (*Api) CreateTableAsync ¶
func (*Api) CreateTableAsyncRequest ¶
func (*Api) GetJobRequest ¶
GetJobRequest https://keboola.docs.apiary.io/#reference/jobs/manage-jobs/job-detail
func (*Api) HttpClient ¶
func (*Api) ImportTableAsync ¶
func (*Api) ImportTableAsyncRequest ¶
func (*Api) PostCreateFileResource ¶
func (*Api) ProjectName ¶
func (*Api) RestyClient ¶
func (a *Api) RestyClient() *resty.Client
func (*Api) TableExists ¶
type Error ¶
type Error struct { Message string `json:"error"` ErrCode string `json:"code"` ExceptionId string `json:"exceptionId"` // contains filtered or unexported fields }
Error represents Storage API error structure.
func (*Error) HttpStatus ¶
func (*Error) IsBadRequest ¶
func (*Error) IsForbidden ¶
func (*Error) IsNotFound ¶
func (*Error) IsUnauthorized ¶
func (*Error) SetResponse ¶
func (e *Error) SetResponse(response *resty.Response)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.