cmdutil

package
v0.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureAccessKey

func ConfigureAccessKey()

func FileExists

func FileExists(path string) bool

func GetCFHomeDir

func GetCFHomeDir() (string, error)

func GetConfig added in v0.3.0

func GetConfig(provider string) cloud.Config

GetConfig reads the given provider profile and returns the cloud.Config

func GetConfigFilePath added in v0.3.0

func GetConfigFilePath(provider string) string

func MaskAK added in v0.3.2

func MaskAK(ak string) string

func PrintECSCacheFile added in v0.1.0

func PrintECSCacheFile(filePath string, header []string, region string, specifiedInstanceID string, provider string, resourceType string)

func PrintOSSCacheFile added in v0.1.0

func PrintOSSCacheFile(filePath string, header []string, region string, provider string, resourceType string)

func PrintRDSCacheFile added in v0.1.0

func PrintRDSCacheFile(filePath string, header []string, region string, specifiedDBInstanceID string, engine string, provider string, resourceType string)

func PrintSSHCacheFile added in v0.3.3

func PrintSSHCacheFile(filePath string, header []string, provide string, resourceType string)

func PrintTable added in v0.1.0

func PrintTable(data [][]string, header []string, resourceType string)

func ReadCacheFile

func ReadCacheFile(filePath string, provider string, resourceType string) [][]string

func ReturnCacheDict

func ReturnCacheDict() string

func ReturnCacheFile added in v0.3.0

func ReturnCacheFile(provider string, resourceType string) string

func ReturnCloudProviderList added in v0.3.0

func ReturnCloudProviderList() ([]string, []string)

func SaveAccessKey

func SaveAccessKey(config cloud.Config, provider string)

SaveAccessKey saves the access key and secret key to the config file. [Can be used to Save and switch the profile]

func Upgrade

func Upgrade()

func WriteCacheFile

func WriteCacheFile(td cloud.TableData, filePath string, region string, id string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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