server

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrIDSet is used when ID is set.
	ErrIDSet = errors.New("pachyderm.pps.persist.server: ID set")
	// ErrIDNotSet is used when ID is not set.
	ErrIDNotSet = errors.New("pachyderm.pps.persist.server: ID not set")
	// ErrTimestampSet is used when Timestamp is set.
	ErrTimestampSet = errors.New("pachyderm.pps.persist.server: Timestamp set")
)

Functions

func CheckDBs

func CheckDBs(address string, databaseName string) error

CheckDBs checks that we have all the tables/indices we need

func InitDBs

func InitDBs(address string, databaseName string) error

InitDBs prepares a RethinkDB instance to be used by the rethink server. Rethink servers will error if they are pointed at databases that haven't had InitDBs run on them.

func Migrate added in v1.3.0

func Migrate(address, databaseName, migrationKey string) error

Migrate updates the database schema only in the forward direction

Types

type APIServer

type APIServer interface {
	persist.APIServer
	Close() error
}

APIServer represents Pachyderm's interface to a persistence server such as rethinkdb.

func NewRethinkAPIServer

func NewRethinkAPIServer(address string, databaseName string) (APIServer, error)

NewRethinkAPIServer creates an APIServer which connects to rethinkdb on the given address and database.

type Index

type Index string

An Index is a rethinkdb index.

type MissingMigrationErr added in v1.3.7

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

MissingMigrationErr denotes that no migration is supported for the provided versions

type PrimaryKey

type PrimaryKey string

A PrimaryKey is a rethinkdb primary key identifier.

type Table

type Table string

A Table is a rethinkdb table name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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