job

package
v0.0.0-...-3cb0839 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailedJob

type FailedJob struct {
	JobID     string
	Query     *bigquery.JobConfigurationQuery
	Load      *bigquery.JobConfigurationLoad
	Extract   *bigquery.JobConfigurationExtract
	TableCopy *bigquery.JobConfigurationTableCopy
	Message   string
	StartTime time.Time
	EndTime   time.Time
}

type JobService

type JobService struct {
	// contains filtered or unexported fields
}

func NewJobService

func NewJobService(ctx context.Context) (*JobService, error)

func (*JobService) Cancel

func (s *JobService) Cancel(projectID string, jobID string) error

func (*JobService) ListFailedJob

func (s *JobService) ListFailedJob(projectID string, jobType string, limit int64) ([]*FailedJob, error)

func (*JobService) ListJob

func (s *JobService) ListJob(projectID string, jobType string, state string, limit int64) ([]*bigquery.JobListJobs, error)

ListJob jobType: Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN. State: Can be done, pending, running

Jump to

Keyboard shortcuts

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