Documentation ¶
Overview ¶
The interfaces in this package contain the methods of each taskcluster service, allowing the use of fakes that provide the same methods.
Index ¶
- type Auth
- type ClientFactory
- func (cf *ClientFactory) Auth(creds *tcclient.Credentials, rootURL string) Auth
- func (cf *ClientFactory) PurgeCache(creds *tcclient.Credentials, rootURL string) PurgeCache
- func (cf *ClientFactory) Queue(creds *tcclient.Credentials, rootURL string) Queue
- func (cf *ClientFactory) Secrets(creds *tcclient.Credentials, rootURL string) Secrets
- func (cf *ClientFactory) WorkerManager(creds *tcclient.Credentials, rootURL string) WorkerManager
- type Object
- type PurgeCache
- type Queue
- type Secrets
- type ServiceFactory
- type WorkerManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { ExpandScopes(payload *tcauth.SetOfScopes) (*tcauth.SetOfScopes, error) SentryDSN(project string) (*tcauth.SentryDSNResponse, error) WebsocktunnelToken(wstAudience, wstClient string) (*tcauth.WebsocktunnelTokenResponse, error) }
type ClientFactory ¶
type ClientFactory struct { }
func (*ClientFactory) Auth ¶
func (cf *ClientFactory) Auth(creds *tcclient.Credentials, rootURL string) Auth
func (*ClientFactory) PurgeCache ¶
func (cf *ClientFactory) PurgeCache(creds *tcclient.Credentials, rootURL string) PurgeCache
func (*ClientFactory) Queue ¶
func (cf *ClientFactory) Queue(creds *tcclient.Credentials, rootURL string) Queue
func (*ClientFactory) Secrets ¶
func (cf *ClientFactory) Secrets(creds *tcclient.Credentials, rootURL string) Secrets
func (*ClientFactory) WorkerManager ¶
func (cf *ClientFactory) WorkerManager(creds *tcclient.Credentials, rootURL string) WorkerManager
type Object ¶
type Object interface { CreateUpload(name string, payload *tcobject.CreateUploadRequest) (*tcobject.CreateUploadResponse, error) FinishUpload(name string, payload *tcobject.FinishUploadRequest) error StartDownload(name string, payload *tcobject.DownloadObjectRequest) (*tcobject.DownloadObjectResponse, error) }
type PurgeCache ¶
type PurgeCache interface {
PurgeRequests(workerPoolId, since string) (*tcpurgecache.OpenPurgeRequestList, error)
}
type Queue ¶
type Queue interface { CancelTask(taskId string) (*tcqueue.TaskStatusResponse, error) ClaimWork(taskQueueId string, payload *tcqueue.ClaimWorkRequest) (*tcqueue.ClaimWorkResponse, error) CreateArtifact(taskId, runId, name string, payload *tcqueue.PostArtifactRequest) (*tcqueue.PostArtifactResponse, error) CreateTask(taskId string, payload *tcqueue.TaskDefinitionRequest) (*tcqueue.TaskStatusResponse, error) GetLatestArtifact_SignedURL(taskId, name string, duration time.Duration) (*url.URL, error) ListArtifacts(taskId, runId, continuationToken, limit string) (*tcqueue.ListArtifactsResponse, error) Artifact(taskId, runId, name string) (*tcqueue.GetArtifactContentResponse, error) LatestArtifact(taskId, name string) (*tcqueue.GetArtifactContentResponse, error) ReclaimTask(taskId, runId string) (*tcqueue.TaskReclaimResponse, error) ReportCompleted(taskId, runId string) (*tcqueue.TaskStatusResponse, error) ReportException(taskId, runId string, payload *tcqueue.TaskExceptionRequest) (*tcqueue.TaskStatusResponse, error) ReportFailed(taskId, runId string) (*tcqueue.TaskStatusResponse, error) Status(taskId string) (*tcqueue.TaskStatusResponse, error) Task(taskId string) (*tcqueue.TaskDefinitionResponse, error) DownloadArtifactToFile(taskId string, runId int64, name string, filename string) (string, int64, error) DownloadArtifactToBuf(taskId string, runId int64, name string) ([]byte, string, int64, error) }
type ServiceFactory ¶
type ServiceFactory interface { Auth(creds *tcclient.Credentials, rootURL string) Auth Queue(creds *tcclient.Credentials, rootURL string) Queue PurgeCache(creds *tcclient.Credentials, rootURL string) PurgeCache Secrets(creds *tcclient.Credentials, rootURL string) Secrets WorkerManager(creds *tcclient.Credentials, rootURL string) WorkerManager }
type WorkerManager ¶
type WorkerManager interface { RegisterWorker(payload *tcworkermanager.RegisterWorkerRequest) (*tcworkermanager.RegisterWorkerResponse, error) WorkerPool(workerPoolId string) (*tcworkermanager.WorkerPoolFullDefinition, error) CreateWorkerPool(workerPoolId string, payload *tcworkermanager.WorkerPoolDefinition) (*tcworkermanager.WorkerPoolFullDefinition, error) }
Click to show internal directories.
Click to hide internal directories.