authplugin

package
v0.0.0-...-ff46d25 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessKeyConfiguration     = "hw_access_key"
	SecretKeyConfiguration     = "hw_secret_key"
	ProjectIdConfiguration     = "hw_project_id"
	SecurityTokenConfiguration = "hw_security_token"

	ProjectIdHeaderKey     = "X-Project-Id"
	SecurityTokenHeaderKey = "X-Security-Token"
)

Variables

This section is empty.

Functions

func CreateHWAuthWrapperByAuthParams

func CreateHWAuthWrapperByAuthParams(params HWAuthParameters, rt http.RoundTripper) http.RoundTripper

CreateHWAuthWrapperByAuthParams to create Wrapper

Types

type HWAuthParameters

type HWAuthParameters struct {
	//AccessKey Huawei Cloud access key, could be temporary
	AccessKey string
	//SecretKey Huawei Cloud secret key, could be temporary
	SecretKey string
	//ProjectId Huawei Cloud ProjectId
	ProjectId string
	//SecurityToken Huawei Cloud Key, could be temporary
	SecurityToken string
}

func (HWAuthParameters) HasRequiredAttributes

func (p HWAuthParameters) HasRequiredAttributes() bool

func (HWAuthParameters) Valid

func (p HWAuthParameters) Valid() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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