openapi_credential

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	CredentialsProvider provider.AlibabaCloudCredentialsProvider
	ClientKeyCertPem    string
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) GetAccessKeyId

func (client *Client) GetAccessKeyId() (_result *string)

func (*Client) GetAccessKeySecret

func (client *Client) GetAccessKeySecret() (_result *string)

func (*Client) GetClientKeyCertPem added in v0.2.2

func (client *Client) GetClientKeyCertPem() string

func (*Client) GetSignature

func (client *Client) GetSignature(strToSign *string) (_result *string, _err error)

func (*Client) Init

func (client *Client) Init(config *Config) (_err error)

type ClientKey

type ClientKey struct {
	KeyId          *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	PrivateKeyData *string `json:"PrivateKeyData,omitempty" xml:"PrivateKeyData,omitempty"`
}

func (ClientKey) GoString

func (s ClientKey) GoString() string

func (*ClientKey) SetKeyId

func (s *ClientKey) SetKeyId(v string) *ClientKey

func (*ClientKey) SetPrivateKeyData

func (s *ClientKey) SetPrivateKeyData(v string) *ClientKey

func (ClientKey) String

func (s ClientKey) String() string

type Config

type Config struct {
	Type             *string `json:"type,omitempty" xml:"type,omitempty" require:"true"`
	AccessKeyId      *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
	PrivateKey       *string `json:"privateKey,omitempty" xml:"privateKey,omitempty"`
	ClientKeyFile    *string `json:"clientKeyFile,omitempty" xml:"clientKeyFile,omitempty"`
	ClientKeyContent *string `json:"clientKeyContent,omitempty" xml:"clientKeyContent,omitempty"`
	Password         *string `json:"password,omitempty" xml:"password,omitempty"`
}

func (Config) GoString

func (s Config) GoString() string

func (*Config) SetAccessKeyId

func (s *Config) SetAccessKeyId(v string) *Config

func (*Config) SetClientKeyContent

func (s *Config) SetClientKeyContent(v string) *Config

func (*Config) SetClientKeyFile

func (s *Config) SetClientKeyFile(v string) *Config

func (*Config) SetPassword

func (s *Config) SetPassword(v string) *Config

func (*Config) SetPrivateKey

func (s *Config) SetPrivateKey(v string) *Config

func (*Config) SetType

func (s *Config) SetType(v string) *Config

func (Config) String

func (s Config) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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