pubutil

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFolder

func CreateFolder(folder string)

func CurrentTime added in v0.5.0

func CurrentTime() string

func FileExists

func FileExists(path string) bool

func FormatFileSize added in v0.4.2

func FormatFileSize(fileSize int64) (size string)

func GetCFHomeDir

func GetCFHomeDir() (string, error)

func GetConfigFilePath

func GetConfigFilePath() string

func GetUserDir added in v0.4.3

func GetUserDir() string

func IN added in v0.4.5

func IN(target string, str_array []string) bool

func MaskAK added in v0.4.4

func MaskAK(ak string) string

func ReadFile added in v0.4.3

func ReadFile(filePath string) (bool, string)

func StringClean added in v0.4.3

func StringClean(str string) string

Types

type ECSCache

type ECSCache struct {
	AccessKeyId          string
	InstanceId           string
	InstanceName         string
	OSName               string
	OSType               string
	PrivateIpAddress     string
	PublicIpAddress      string
	RegionId             string
	SN                   string
	Status               string
	CloudAssistantStatus string
}

type ImageShareCache added in v0.5.0

type ImageShareCache struct {
	AccessKeyId    string
	ImageId        string
	InstanceId     string
	Provider       string
	Region         string
	ShareAccountId string
	Status         string
	Time           string
}

type OSSCache

type OSSCache struct {
	AccessKeyId  string
	BucketACL    string
	BucketURL    string
	Name         string
	ObjectNumber string
	ObjectSize   string
	Region       string
	SN           string
}

type Provider added in v0.5.0

type Provider struct {
	CN string
	EN string
}

type RDSAccountsCache added in v0.5.0

type RDSAccountsCache struct {
	AccessKeyId  string
	DBInstanceId string
	Provider     string
	Region       string
	UserName     string
	Password     string
	Engine       string
	CreateTime   string
}

type RDSCache

type RDSCache struct {
	AccessKeyId      string
	DBInstanceId     string
	DBInstanceStatus string
	Engine           string
	EngineVersion    string
	RegionId         string
	SN               string
}

type RDSPublicCache added in v0.5.0

type RDSPublicCache struct {
	AccessKeyId       string
	DBInstanceId      string
	Provider          string
	Region            string
	IPAddress         string
	ConnectionAddress string
	Port              string
	Engine            string
	CreateTime        string
}

type RDSWhiteListCache added in v0.5.0

type RDSWhiteListCache struct {
	AccessKeyId  string
	DBInstanceId string
	Provider     string
	Region       string
	IPArrayName  string
	IPType       string
	WhiteList    string
	IPList       string
	Engine       string
	CreateTime   string
}

type TakeoverConsoleCache

type TakeoverConsoleCache struct {
	AccessKeyId            string
	ConsoleAccessKeyId     string
	ConsoleAccessKeySecret string
	CreateTime             string
	LoginUrl               string
	Password               string
	PrimaryAccountId       string
	Provider               string
	UserId                 string
	UserName               string
}

type TimestampCache

type TimestampCache struct {
	Timestamp     int64
	TimestampType string
}

Jump to

Keyboard shortcuts

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