utils

package
v0.0.0-...-1fa00ff Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package utils provides common utils for commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

Check errors

func GetS3Client

func GetS3Client(config *confer.Config) (*s3.S3, error)

GetS3Client is to get S3 client to ECS server

func LoadConfig

func LoadConfig() *confer.Config

LoadConfig loads default config.yaml file

Types

type InputReader

type InputReader struct {
	*bufio.Reader
}

InputReader is a wrapper of bufio.Reader

func NewInputReader

func NewInputReader() *InputReader

NewInputReader gets a new InputReader

func (*InputReader) GetInputStr

func (r *InputReader) GetInputStr(msg string) string

GetInputStr returns input string

Jump to

Keyboard shortcuts

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