download

package
v3.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package download read configurations from consul kv storage and store to local yaml files.

Index

Constants

View Source
const (
	CmdDesc = "Download config from consul and save to local"
	CmdName = "kv:download"
)

Variables

This section is empty.

Functions

func New

func New() (managers.Command, error)

New create and return instance.

Types

type Command

type Command struct {
	Command managers.Command
	Err     error
	Name    string
}

Command for consul kv download.

func (*Command) Handle

func (o *Command) Handle(_ managers.Manager, _ managers.Arguments) (err error)

Handle send download request.

func (*Command) InitField

func (o *Command) InitField() *Command

InitField initialize command fields.

func (*Command) InitOption

func (o *Command) InitOption() *Command

InitOption initialize command option.

Jump to

Keyboard shortcuts

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