global

package
v0.0.18-beta Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AK            string
	SK            string
	DomainId      string
	SecurityToken string
}

func (Credentials) ProcessAuthRequest

func (s Credentials) ProcessAuthRequest(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) WithDomainId

func (builder *CredentialsBuilder) WithDomainId(domainId string) *CredentialsBuilder

func (*CredentialsBuilder) WithSecurityToken

func (builder *CredentialsBuilder) WithSecurityToken(token string) *CredentialsBuilder

func (*CredentialsBuilder) WithSk

func (builder *CredentialsBuilder) WithSk(sk string) *CredentialsBuilder

Jump to

Keyboard shortcuts

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