cli

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package cli implements the `vine store` subcommands for example:

vine store snapshot
vine store restore
vine store sync

Index

Constants

This section is empty.

Variables

View Source
var CommonFlags = []cli.Flag{
	&cli.StringFlag{
		Name:    "nodes",
		Usage:   "Comma separated list of Nodes to pass to the store backend",
		EnvVars: []string{"VINE_STORE_NODES"},
	},
	&cli.StringFlag{
		Name:    "database",
		Usage:   "Database option to pass to the store backend",
		EnvVars: []string{"VINE_STORE_DATABASE"},
	},
	&cli.StringFlag{
		Name:    "table",
		Usage:   "Table option to pass to the store backend",
		EnvVars: []string{"VINE_STORE_TABLE"},
	},
}

CommonFlags are flags common to cli commands snapshot and restore

View Source
var SyncFlags = []cli.Flag{
	&cli.StringFlag{
		Name:    "from-backend",
		Usage:   "Backend to sync from",
		EnvVars: []string{"VINE_STORE_FROM"},
	},
	&cli.StringFlag{
		Name:    "from-nodes",
		Usage:   "Nodes to sync from",
		EnvVars: []string{"VINE_STORE_FROM_NODES"},
	},
	&cli.StringFlag{
		Name:    "from-database",
		Usage:   "Database to sync from",
		EnvVars: []string{"VINE_STORE_FROM_DATABASE"},
	},
	&cli.StringFlag{
		Name:    "from-table",
		Usage:   "Table to sync from",
		EnvVars: []string{"VINE_STORE_FROM_TABLE"},
	},
	&cli.StringFlag{
		Name:    "to-backend",
		Usage:   "Backend to sync to",
		EnvVars: []string{"VINE_STORE_TO"},
	},
	&cli.StringFlag{
		Name:    "to-nodes",
		Usage:   "Nodes to sync to",
		EnvVars: []string{"VINE_STORE_TO_NODES"},
	},
	&cli.StringFlag{
		Name:    "to-database",
		Usage:   "Database to sync to",
		EnvVars: []string{"VINE_STORE_TO_DATABASE"},
	},
	&cli.StringFlag{
		Name:    "to-table",
		Usage:   "Table to sync to",
		EnvVars: []string{"VINE_STORE_TO_TABLE"},
	},
}

SyncFlags are the flags for vine vine sync

Functions

func Databases

func Databases(ctx *cli.Context) error

Databases is the entrypoint for vine store databases

func Delete

func Delete(ctx *cli.Context) error

Delete deletes keys

func List

func List(ctx *cli.Context) error

List retrieves keys

func Read

func Read(ctx *cli.Context) error

Read gets something from the store

func Restore

func Restore(ctx *cli.Context) error

Restore is the entrypoint for vine store restore

func Snapshot

func Snapshot(ctx *cli.Context) error

Snapshot in the entrypoint for vine store snapshot

func Sync

func Sync(ctx *cli.Context) error

Sync is the entrypoint for vine vine sync

func Tables

func Tables(ctx *cli.Context) error

Tables is the entrypoint for vine store tables

func Write

func Write(ctx *cli.Context) error

Write puts something in the store.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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