client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file is auto-generated, don't edit it. Thanks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	KeyId            *string
	PrivateKeySecret *string
	PrivateKeyCert   *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) GetPrivateKeyCert added in v0.4.0

func (client *Client) GetPrivateKeyCert() (_result *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 Config

type Config struct {
	// 访问凭证类型
	Type *string `json:"Type,omitempty" xml:"Type,omitempty" require:"true"`
	// 访问凭证ID
	AccessKeyId *string `json:"Type,omitempty" xml:"Type,omitempty"`
	// pkcs1 或 pkcs8 PEM 格式私钥
	PrivateKey *string `json:"Type,omitempty" xml:"Type,omitempty"`
	// ClientKey文件路径
	ClientKeyFile *string `json:"Type,omitempty" xml:"Type,omitempty"`
	// ClientKey文件内容
	ClientKeyContent *string `json:"Type,omitempty" xml:"Type,omitempty"`
	// ClientKey密码
	Password *string `json:"Type,omitempty" xml:"Type,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

type RsaKeyPairCredentials added in v0.4.0

type RsaKeyPairCredentials struct {
	// 访问凭证私钥
	PrivateKeySecret *string `json:"privateKeySecret,omitempty" xml:"privateKeySecret,omitempty"`
	// 访问凭证ID
	KeyId *string `json:"keyId,omitempty" xml:"keyId,omitempty"`
}

func (RsaKeyPairCredentials) GoString added in v0.4.0

func (s RsaKeyPairCredentials) GoString() string

func (*RsaKeyPairCredentials) SetKeyId added in v0.4.0

func (*RsaKeyPairCredentials) SetPrivateKeySecret added in v0.4.0

func (s *RsaKeyPairCredentials) SetPrivateKeySecret(v string) *RsaKeyPairCredentials

func (RsaKeyPairCredentials) String added in v0.4.0

func (s RsaKeyPairCredentials) String() string

Jump to

Keyboard shortcuts

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