ccclient

package
v0.0.0-...-93796e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	JOB_QUEUED   = "queued"
	JOB_RUNNING  = "running"
	JOB_FAILED   = "failed"
	JOB_FINISHED = "finished"
)
View Source
const FormField = "file"
View Source
const MAX_UPLOAD_RETRIES = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller interface {
	Poll(fallbackURL *url.URL, res *http.Response, cancelChan <-chan struct{}) error
}

func NewPoller

func NewPoller(logger lager.Logger, httpClient *http.Client, pollInterval time.Duration) Poller

type Uploader

type Uploader interface {
	Upload(uploadURL *url.URL, filename string, r *http.Request, cancelChan <-chan struct{}) (*http.Response, error)
}

func NewUploader

func NewUploader(logger lager.Logger, httpClient *http.Client) Uploader

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL