ds2bq

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 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 Config

type Config struct {
	ProjectID         string   `json:"projectId" yaml:"projectId"`
	AllKinds          bool     `json:"allKinds" yaml:"allKinds"`
	Kinds             []string `json:"kinds"`
	NamespaceIDs      []string `json:"namespaceIds" yaml:"namespaceIds"`
	IgnoreKinds       []string `json:"ignoreKinds" yaml:"ignoreKinds"`
	IgnoreBQLoadKinds []string `json:"ignoreBQLoadKinds" yaml:"ignoreBQLoadKinds"`
	OutputGCSFilePath string   `json:"outputGCSFilePath" yaml:"outputGCSFilePath"`
	BQLoadProjectID   string   `json:"bqLoadProjectId" yaml:"bqLoadProjectId"`
	BQLoadDatasetID   string   `json:"bqLoadDatasetId" yaml:"bqLoadDatasetId"`
}

type SchedulerJob

type SchedulerJob struct {
	Name                    string  `json:"name"`
	ProjectID               string  `json:"projectId" yaml:"projectId"`
	Location                string  `json:"location"`
	Description             string  `json:"description"`
	URI                     string  `json:"uri"`
	Schedule                string  `json:"schedule"`
	Timezone                string  `json:"timezone"`
	Body                    *Config `json:"messageBody"`
	OIDCServiceAccountEmail string  `json:"oidcServiceAccountEmail" yaml:"oidcServiceAccountEmail"`
}

func ParseYaml

func ParseYaml(ctx context.Context, data []byte) ([]*SchedulerJob, error)

func (*SchedulerJob) CreateUpsertJobRequest

func (job *SchedulerJob) CreateUpsertJobRequest() (*scheduler.UpsertJobRequest, error)

Jump to

Keyboard shortcuts

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