Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct { Transport http.RoundTripper SecretId string SecretKey string Token string ExpiredTime int64 Role string // contains filtered or unexported fields }
func NewCredential ¶
func NewCredential(role string) (*Credential, error)
func NewCredentialTransport ¶
func NewCredentialTransport(role string) *Credential
func (*Credential) GetRole ¶
func (c *Credential) GetRole() string
func (*Credential) GetSecretId ¶
func (c *Credential) GetSecretId() string
func (*Credential) GetSecretKey ¶
func (c *Credential) GetSecretKey() string
func (*Credential) GetToken ¶
func (c *Credential) GetToken() string
func (*Credential) Refresh ¶
func (c *Credential) Refresh() error
Click to show internal directories.
Click to hide internal directories.