Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunAccount ¶
type AliyunAccount struct {
// contains filtered or unexported fields
}
func AliyunAccountFromEnv ¶
func AliyunAccountFromEnv() *AliyunAccount
func NewAliyunAccount ¶
func NewAliyunAccount(accessId string, accessKey string) *AliyunAccount
func (*AliyunAccount) AccessId ¶
func (account *AliyunAccount) AccessId() string
func (*AliyunAccount) AccessKey ¶
func (account *AliyunAccount) AccessKey() string
func (*AliyunAccount) GetType ¶
func (account *AliyunAccount) GetType() Provider
func (*AliyunAccount) SignRequest ¶
func (account *AliyunAccount) SignRequest(req *http.Request, endpoint string)
type AppAccount ¶
type AppAccount struct {
AliyunAccount
}
func NewAppAccount ¶
func NewAppAccount(accessId string, accessKey string) *AppAccount
func (*AppAccount) SignRequest ¶
func (account *AppAccount) SignRequest(req *http.Request, endpoint string)
type AppStsAccount ¶
type AppStsAccount struct { AliyunAccount // contains filtered or unexported fields }
func NewAppStsAccount ¶
func NewAppStsAccount(accessId, accessKey, stsToken string) *AppStsAccount
func (*AppStsAccount) SignRequest ¶
func (account *AppStsAccount) SignRequest(req *http.Request, endpoint string)
type BearerTokenAccount ¶
type BearerTokenAccount struct {
// contains filtered or unexported fields
}
func NewBearerTokenAccount ¶
func NewBearerTokenAccount(token string) *BearerTokenAccount
func (*BearerTokenAccount) GetType ¶
func (account *BearerTokenAccount) GetType() Provider
func (*BearerTokenAccount) SignRequest ¶
func (account *BearerTokenAccount) SignRequest(req *http.Request, _ string)
type Provider ¶
type Provider uint
const ( Taobao Provider Aliyun STS // BearToken logview token BearToken )
type StsAccount ¶
type StsAccount struct { AliyunAccount // contains filtered or unexported fields }
func NewStsAccount ¶
func NewStsAccount(accessId, accessKey, stsToken string) *StsAccount
func (*StsAccount) GetType ¶
func (account *StsAccount) GetType() Provider
func (*StsAccount) SignRequest ¶
func (account *StsAccount) SignRequest(req *http.Request, endpoint string)
Click to show internal directories.
Click to hide internal directories.