global

package
v0.0.0-...-ce01f02 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0, Apache-2.0, BSD-2-Clause, + 1 more Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainIdInHeader      = "X-Domain-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
	DomainId      string
	SecurityToken string
}

func (Credentials) ProcessAuthParams

func (s Credentials) ProcessAuthParams(client *impl.DefaultHttpClient, region string) auth.ICredential

func (Credentials) ProcessAuthRequest

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) WithIamEndpointOverride

func (builder *CredentialsBuilder) WithIamEndpointOverride(endpoint 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