pubutil

package
v0.0.0-...-caacdb4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFolder

func CreateFolder(folder string)

func FileExists

func FileExists(path string) bool

func FormatFileSize

func FormatFileSize(fileSize int64) (size string)

func GetCFHomeDir

func GetCFHomeDir() (string, error)

func GetConfigFilePath

func GetConfigFilePath() string

func GetUserDir

func GetUserDir() string

func IN

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

func MaskAK

func MaskAK(ak string) string

func ReadFile

func ReadFile(filePath string) (bool, string)

func StringClean

func StringClean(str string) string

Types

type ECSCache

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

type OSSCache

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

type RDSCache

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

type TakeoverConsoleCache

type TakeoverConsoleCache struct {
	Provider         string
	AccessKeyId      string
	PrimaryAccountID string
	UserName         string
	Password         string
	LoginUrl         string
	CreateTime       string
}

type TimestampCache

type TimestampCache struct {
	TimestampType string
	Timestamp     int64
}

Jump to

Keyboard shortcuts

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