common

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials interface {
	GetAccessKeyID() string
	GetAccessKeySecret() string
	GetSecurityToken() string
}

CredentialInf is interface for get AccessKeyID,AccessKeySecret,SecurityToken

type CredentialsProvider

type CredentialsProvider interface {
	GetCredentials() Credentials
}

CredentialInfBuild is interface for get CredentialInf

type DefaultCredentials

type DefaultCredentials struct {
	AccessKeyID     string
	AccessKeySecret string
	SecurityToken   string
}

func (*DefaultCredentials) GetAccessKeyID

func (defCre *DefaultCredentials) GetAccessKeyID() string

func (*DefaultCredentials) GetAccessKeySecret

func (defCre *DefaultCredentials) GetAccessKeySecret() string

func (*DefaultCredentials) GetSecurityToken

func (defCre *DefaultCredentials) GetSecurityToken() string

type DefaultCredentialsProvider

type DefaultCredentialsProvider struct {
	AccessKeyID     string
	AccessKeySecret string
	SecurityToken   string
}

func (*DefaultCredentialsProvider) GetCredentials

func (defBuild *DefaultCredentialsProvider) GetCredentials() Credentials

Jump to

Keyboard shortcuts

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