utils

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConfigInteractive

func SetupConfigInteractive() (fileName string, err error)

SetupConfigInteractive setup input config interactively

Types

type InputConfig

type InputConfig struct {
	AccessKeyID     string `yaml:"access_key_id"`
	SecretAccessKey string `yaml:"secret_access_key"`

	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Protocol string `yaml:"protocol"`
	LogLevel string `yaml:"log_level"`
}

InputConfig is the struct for setup config input

func NewInputConfig

func NewInputConfig() InputConfig

NewInputConfig setup InputConfig and return the struct

Jump to

Keyboard shortcuts

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