Documentation
¶
Index ¶
- type Client
- func (client *Client) AppendUserAgent(userAgent *string)
- func (client *Client) GetAccessKeyId() (_result *string, _err error)
- func (client *Client) GetAccessKeySecret() (_result *string, _err error)
- func (client *Client) GetUserAgent() (_result *string)
- func (client *Client) Init(config *Config) (_err error)
- func (client *Client) Request(method *string, pathname *string, query map[string]interface{}, ...) (_result map[string]interface{}, _err error)
- func (client *Client) SetUserAgent(userAgent *string)
- type Config
- func (s Config) GoString() string
- func (s *Config) SetAccessKeyId(v string) *Config
- func (s *Config) SetAccessKeySecret(v string) *Config
- func (s *Config) SetEndpoint(v string) *Config
- func (s *Config) SetProtocol(v string) *Config
- func (s *Config) SetSecurityToken(v string) *Config
- func (s *Config) SetType(v string) *Config
- func (s *Config) SetUserAgent(v string) *Config
- func (s Config) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Endpoint *string
Protocol *string
UserAgent *string
Credential credential.Credential
}
func (*Client) AppendUserAgent ¶
func (*Client) GetAccessKeyId ¶
func (*Client) GetAccessKeySecret ¶
func (*Client) GetUserAgent ¶
func (*Client) SetUserAgent ¶
type Config ¶
type Config struct {
Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"`
Type *string `json:"type,omitempty" xml:"type,omitempty"`
SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"`
AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"`
UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
}
func (*Config) SetAccessKeyId ¶
func (*Config) SetAccessKeySecret ¶
func (*Config) SetEndpoint ¶
func (*Config) SetProtocol ¶
func (*Config) SetSecurityToken ¶
func (*Config) SetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.