pubutil

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 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 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 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
	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