command

package
v0.0.0-...-8c9db20 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEditCommand

func NewEditCommand() cli.Command

NewEditCommand sets data from input.

func NewExportCommand

func NewExportCommand() cli.Command

NewExportCommand returns data from export.

func NewImportCommand

func NewImportCommand() cli.Command

NewImportCommand sets data from input.

func NewPrintConfigCommand

func NewPrintConfigCommand() cli.Command

NewPrintConfigCommand print configuration.

func NewTreeCommand

func NewTreeCommand() cli.Command

NewTreeCommand print directory as a tree.

func NewValidateCommand

func NewValidateCommand() cli.Command

NewValidateCommand sets data from input.

Types

type Etcdtool

type Etcdtool struct {
	Peers            string        `json:"peers,omitempty" yaml:"peers,omitempty" toml:"peers,omitempty"`
	Cert             string        `json:"cert,omitempty" yaml:"cert,omitempty" toml:"cert,omitempty"`
	Key              string        `json:"key,omitempty" yaml:"key,omitempty" toml:"key,omitempty"`
	CA               string        `json:"ca,omitempty" yaml:"ca,omitempty" toml:"peers,omitempty"`
	User             string        `json:"user,omitempty" yaml:"user,omitempty" toml:"user,omitempty"`
	Timeout          time.Duration `json:"timeout,omitempty" yaml:"timeout,omitempty" toml:"timeout,omitempty"`
	CommandTimeout   time.Duration `json:"commandTimeout,omitempty" yaml:"commandTimeout,omitempty" toml:"commandTimeout,omitempty"`
	Routes           []Route       `json:"routes" yaml:"routes" toml:"routes"`
	PasswordFilePath string
}

Etcdtool configuration struct.

type Route

type Route struct {
	Regexp string `json:"regexp" yaml:"regexp" toml:"regexp"`
	Schema string `json:"schema" yaml:"schema" toml:"schema"`
}

Route configuration struct.

Jump to

Keyboard shortcuts

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