utils

package
v2.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInteractiveEnable added in v2.1.1

func IsInteractiveEnable() bool

IsInteractiveEnable checks whether qsctl run interactively by checking stdin and stdout is terminal or not

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"`
}

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