Documentation ¶
Index ¶
- Constants
- func CreateDest(dest string) error
- func Finish(result Result)
- func FinishError(message string)
- func GetDefaultAK() (string, string, string)
- func GetLocalAK() (string, string)
- func GetMetaData(resource string) (string, error)
- func GetRegionAndInstanceId() (string, string, error)
- func GetRegionIdAndInstanceId(nodeName string) (string, string, error)
- func GetSTSAK() (string, string, string)
- func IsFileExisting(filename string) bool
- func IsMounted(mountPath string) bool
- func ReadJsonFile(file string) (map[string]string, error)
- func Run(cmd string) (string, error)
- func Umount(mountPath string) bool
- func WriteJosnFile(obj interface{}, file string) error
- type DefaultOptions
- type Result
Constants ¶
View Source
const ( USER_AKID = "/etc/.volumeak/akId" USER_AKSECRET = "/etc/.volumeak/akSecret" METADATA_URL = "http://100.100.100.200/latest/meta-data/" REGIONID_TAG = "region-id" INSTANCEID_TAG = "instance-id" )
Variables ¶
This section is empty.
Functions ¶
func CreateDest ¶
func FinishError ¶
func FinishError(message string)
func GetDefaultAK ¶
read default ak from local file or from STS
func GetRegionAndInstanceId ¶
Get regionid instanceid;
Types ¶
type DefaultOptions ¶
type DefaultOptions struct { Global struct { KubernetesClusterTag string AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` Region string `json:"region"` } }
used for global ak
Click to show internal directories.
Click to hide internal directories.