datastore

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, projectID string, outputGCSPrefix string, entityFilter *EntityFilter) (*datastore.GoogleLongrunningOperation, error)

Export is Datastore Export APIを実行する

func GetAllKinds

func GetAllKinds(ctx context.Context, projectID string) (kinds []string, rerr error)

GetAllKinds is Kind名一覧を返す ただし、 _ で始まるものは無視する

Types

type EntityFilter

type EntityFilter struct {
	Kinds           []string `json:"kinds,omitempty"`
	NamespaceIds    []string `json:"namespaceIds,omitempty"`
	ForceSendFields []string `json:"-"`
	NullFields      []string `json:"-"`
}

EntityFilter is Entity condition to export

type JobStatus

type JobStatus int

JobStatus is Datastore Export Jobの状態

const (
	Running JobStatus = iota
	Fail
	Done
)

type JobStatusResponse

type JobStatusResponse struct {
	Status     JobStatus
	ErrCode    int64
	ErrMessage string
}

JobStatusResponse is Datastore Export Jobの状態の取得結果を表すstruct

func CheckJobStatus

func CheckJobStatus(ctx context.Context, jobID string) (*JobStatusResponse, error)

CheckJobStatus is Datastore Export Jobの状態を取得する

Jump to

Keyboard shortcuts

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