datastore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package datastore contains the GCP Datastore Backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(projectID string, opts ...option.ClientOption) (vanity.Backend, error)

NewClient creates a new Client for a given dataset. If the project ID is empty, it is derived from the DATASTORE_PROJECT_ID environment variable. If the DATASTORE_EMULATOR_HOST environment variable is set, client will use its value to connect to a locally-running datastore emulator. DetectProjectID can be passed as the projectID argument to instruct NewClient to detect the project ID from the credentials.

Types

type Entry

type Entry struct {
	ImportPath           string   `protobuf:"bytes,1,opt,name=importPath,proto3" json:"importPath,omitempty"`
	Vcs                  string   `protobuf:"bytes,2,opt,name=vcs,proto3" json:"vcs,omitempty"`
	VcsRoot              string   `protobuf:"bytes,3,opt,name=vcsRoot,proto3" json:"vcsRoot,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Entry) Descriptor

func (*Entry) Descriptor() ([]byte, []int)

func (*Entry) GetImportPath

func (m *Entry) GetImportPath() string

func (*Entry) GetVcs

func (m *Entry) GetVcs() string

func (*Entry) GetVcsRoot

func (m *Entry) GetVcsRoot() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) String

func (m *Entry) String() string

func (*Entry) XXX_DiscardUnknown

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal

func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entry) XXX_Merge

func (m *Entry) XXX_Merge(src proto.Message)

func (*Entry) XXX_Size

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal

func (m *Entry) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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