Documentation ¶
Index ¶
- Constants
- type Credentials
- type CredentialsBuilder
- func (builder *CredentialsBuilder) Build() Credentials
- func (builder *CredentialsBuilder) WithAk(ak string) *CredentialsBuilder
- func (builder *CredentialsBuilder) WithIamEndpointOverride(endpoint string) *CredentialsBuilder
- func (builder *CredentialsBuilder) WithProjectId(projectId string) *CredentialsBuilder
- func (builder *CredentialsBuilder) WithSecurityToken(token string) *CredentialsBuilder
- func (builder *CredentialsBuilder) WithSk(sk string) *CredentialsBuilder
Constants ¶
View Source
const ( ProjectIdInHeader = "X-Project-Id" SecurityTokenInHeader = "X-Security-Token" ContentTypeInHeader = "Content-Type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { IamEndpoint string AK string SK string ProjectId string SecurityToken string }
func (Credentials) ProcessAuthParams ¶
func (s Credentials) ProcessAuthParams(client *impl.DefaultHttpClient, region string) auth.ICredential
func (Credentials) ProcessAuthRequest ¶
func (s Credentials) ProcessAuthRequest(client *impl.DefaultHttpClient, req *request.DefaultHttpRequest) (*request.DefaultHttpRequest, error)
type CredentialsBuilder ¶
type CredentialsBuilder struct {
Credentials Credentials
}
func NewCredentialsBuilder ¶
func NewCredentialsBuilder() *CredentialsBuilder
func (*CredentialsBuilder) Build ¶
func (builder *CredentialsBuilder) Build() Credentials
func (*CredentialsBuilder) WithAk ¶
func (builder *CredentialsBuilder) WithAk(ak string) *CredentialsBuilder
func (*CredentialsBuilder) WithIamEndpointOverride ¶
func (builder *CredentialsBuilder) WithIamEndpointOverride(endpoint string) *CredentialsBuilder
func (*CredentialsBuilder) WithProjectId ¶
func (builder *CredentialsBuilder) WithProjectId(projectId string) *CredentialsBuilder
func (*CredentialsBuilder) WithSecurityToken ¶
func (builder *CredentialsBuilder) WithSecurityToken(token string) *CredentialsBuilder
func (*CredentialsBuilder) WithSk ¶
func (builder *CredentialsBuilder) WithSk(sk string) *CredentialsBuilder
Click to show internal directories.
Click to hide internal directories.