Documentation ¶
Overview ¶
Package transfer wraps the storagetransfer package in a simplified interface. All code MUST be correct by inspection.
Index ¶
- type Job
- func (j *Job) Create(ctx context.Context, create *storagetransfer.TransferJob) (*storagetransfer.TransferJob, error)
- func (j *Job) Get(ctx context.Context, name string) (*storagetransfer.TransferJob, error)
- func (j *Job) Jobs(ctx context.Context, ...) error
- func (j *Job) Operations(ctx context.Context, name string, ...) error
- func (j *Job) Update(ctx context.Context, name string, ...) (*storagetransfer.TransferJob, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job wraps the storagetransfer API into a simple interface.
func (*Job) Create ¶
func (j *Job) Create(ctx context.Context, create *storagetransfer.TransferJob) (*storagetransfer.TransferJob, error)
Create will create a new transfer job.
func (*Job) Jobs ¶
func (j *Job) Jobs(ctx context.Context, visit func(resp *storagetransfer.ListTransferJobsResponse) error) error
Jobs calls `visit` on all ENABLED transfer jobs in the current project.
Click to show internal directories.
Click to hide internal directories.