utils

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	DEFAULT_TIME_FORMAT = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessUserInfo

type AccessUserInfo struct {
	AccessKeyId     string
	AccessKeySecret string
	Token           string
	Region          string
}

func GetAccessUserInfo

func GetAccessUserInfo() (accessUserInfo *AccessUserInfo, err error)

func GetAccessUserInfoFromEnv

func GetAccessUserInfoFromEnv() (info *AccessUserInfo, err error)

get access key and secret from env

func GetAccessUserInfoFromMeta

func GetAccessUserInfoFromMeta() (info *AccessUserInfo, err error)

get sts token from metadata server

Jump to

Keyboard shortcuts

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