utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Provider      = "provider"
	Id            = "id"
	CloudServices = "cloud_services"
	AccessKey     = "access_key"
	SecretKey     = "secret_key"
	SessionToken  = "session_token"
)
View Source
const (
	Aliyun   = "aliyun"
	Tencent  = "tencent"
	Huawei   = "huawei"
	TianYi   = "tianyi"
	Baidu    = "baidu"
	LianTong = "liantong"
	QiNiu    = "qiniu"
	YiDong   = "yidong"
)

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

func DivideList

func DivideList(list []string, n int) [][]string

func ReadConfig

func ReadConfig(configFile string) (schema.Options, error)

func RemoveRepeatedElement added in v1.0.0

func RemoveRepeatedElement(arr []string) (newArr []string)

Types

type ErrNoSuchKey

type ErrNoSuchKey struct {
	Name string
}

func (*ErrNoSuchKey) Error

func (e *ErrNoSuchKey) Error() string

Jump to

Keyboard shortcuts

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