Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFamiliesDefinition ¶
type CreateFamiliesDefinition map[string]GCDefinition
type CreateFamily ¶
func (CreateFamily) HumanOutput ¶
func (c CreateFamily) HumanOutput() string
func (CreateFamily) Perform ¶
func (c CreateFamily) Perform(admin *bigtable.AdminClient) error
type CreateTable ¶
func (CreateTable) HumanOutput ¶
func (c CreateTable) HumanOutput() string
func (CreateTable) Perform ¶
func (c CreateTable) Perform(admin *bigtable.AdminClient) error
type CreateTablesDefinition ¶
type CreateTablesDefinition map[string]CreateFamiliesDefinition
type DeleteFamily ¶
func (DeleteFamily) HumanOutput ¶
func (d DeleteFamily) HumanOutput() string
func (DeleteFamily) Perform ¶
func (d DeleteFamily) Perform(admin *bigtable.AdminClient) error
type GCDefinition ¶
type GCDefinition struct { MaxVersions int `toml:"max-versions"` MaxAge TomlDuration `toml:"max-age"` }
type MigrationDefinition ¶
type MigrationDefinition struct { Create CreateTablesDefinition `toml:"create"` Drop map[string]struct{} `toml:"drop"` }
func LoadDefinition ¶
func LoadDefinition(input string) (MigrationDefinition, error)
func LoadDefinitionFile ¶
func LoadDefinitionFile(path string) (MigrationDefinition, error)
type Migrator ¶
type Migrator struct {
AdminClient *bigtable.AdminClient
}
type SetGCPolicy ¶
func (SetGCPolicy) HumanOutput ¶
func (s SetGCPolicy) HumanOutput() string
func (SetGCPolicy) Perform ¶
func (s SetGCPolicy) Perform(admin *bigtable.AdminClient) error
type TomlDuration ¶
func (*TomlDuration) UnmarshalText ¶
func (d *TomlDuration) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.