bt

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTables

func DeleteTables(projectID, instanceID string, tableConfigs ...TableConfig) (err error)

DeleteTables deletes the tables given in the TableConfig.

func ErrToCode

func ErrToCode(err error) (error, codes.Code)

ErrToCode returns the error that is passed and a gRPC code extracted from the error. If the error did not originate in gRPC the returned code is codes.Unknown. See https://godoc.org/google.golang.org/grpc/codes for a list of codes.

func InitBigtable

func InitBigtable(projectID, instanceID string, tableConfigs ...TableConfig) error

InitBigtable takes a list of TableConfigs and creates the given tables and column families if they don't exist already.

Types

type TableConfig

type TableConfig map[string][]string

TableConfig maps a table name to a list of column families, describing which tables and column InitBigtable should create.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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