Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) GetJobAssetFileContent(ctx context.Context, jobID, fileName string) ([]byte, error)
- func (c *Client) IsTunnelRunning(ctx context.Context, id string, wait time.Duration) error
- func (c *Client) PollJob(ctx context.Context, id string, interval time.Duration) (job.Job, error)
- func (c *Client) ReadAllowedCCY(ctx context.Context) (int, error)
- func (c *Client) ReadJob(ctx context.Context, id string) (job.Job, error)
- func (c *Client) StopJob(ctx context.Context, id string) (job.Job, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrServerError is returned when the server was not able to correctly handle our request (status code >= 500). ErrServerError = errors.New("internal server error") // ErrJobNotFound is returned when the requested job was not found. ErrJobNotFound = errors.New("job was not found") // ErrTunnelNotFound is returned when the requested tunnel was not found. ErrTunnelNotFound = errors.New("tunnel not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client http client.
func (*Client) GetJobAssetFileContent ¶ added in v0.22.0
func (c *Client) GetJobAssetFileContent(ctx context.Context, jobID, fileName string) ([]byte, error)
GetJobAssetFileContent returns the job asset file content.
func (*Client) IsTunnelRunning ¶ added in v0.32.0
IsTunnelRunning checks whether tunnelID is running. If not, it will wait for the tunnel to become available or timeout. Whichever comes first.
func (*Client) PollJob ¶ added in v0.21.1
PollJob polls job details at an interval, until the job has ended, whether successfully or due to an error.
func (*Client) ReadAllowedCCY ¶ added in v0.24.0
ReadAllowedCCY returns the allowed (max) concurrency for the current account.
Click to show internal directories.
Click to hide internal directories.