Documentation
¶
Index ¶
- type Client
- func (c *Client) GetHttpsConf(websiteId int64) (*GetHttpsConfResponse, error)
- func (c *Client) GetHttpsConfWithContext(ctx context.Context, websiteId int64) (*GetHttpsConfResponse, error)
- func (c *Client) GetWebsiteSSL(sslId int64) (*GetWebsiteSSLResponse, error)
- func (c *Client) GetWebsiteSSLWithContext(ctx context.Context, sslId int64) (*GetWebsiteSSLResponse, error)
- func (c *Client) SearchWebsiteSSL(req *SearchWebsiteSSLRequest) (*SearchWebsiteSSLResponse, error)
- func (c *Client) SearchWebsiteSSLWithContext(ctx context.Context, req *SearchWebsiteSSLRequest) (*SearchWebsiteSSLResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) UpdateHttpsConf(websiteId int64, req *UpdateHttpsConfRequest) (*UpdateHttpsConfResponse, error)
- func (c *Client) UpdateHttpsConfWithContext(ctx context.Context, websiteId int64, req *UpdateHttpsConfRequest) (*UpdateHttpsConfResponse, error)
- func (c *Client) UpdateSettingsSSL(req *UpdateSettingsSSLRequest) (*UpdateSettingsSSLResponse, error)
- func (c *Client) UpdateSettingsSSLWithContext(ctx context.Context, req *UpdateSettingsSSLRequest) (*UpdateSettingsSSLResponse, error)
- func (c *Client) UploadWebsiteSSL(req *UploadWebsiteSSLRequest) (*UploadWebsiteSSLResponse, error)
- func (c *Client) UploadWebsiteSSLWithContext(ctx context.Context, req *UploadWebsiteSSLRequest) (*UploadWebsiteSSLResponse, error)
- type GetHttpsConfResponse
- type GetWebsiteSSLResponse
- type SearchWebsiteSSLRequest
- type SearchWebsiteSSLResponse
- type UpdateHttpsConfRequest
- type UpdateHttpsConfResponse
- type UpdateSettingsSSLRequest
- type UpdateSettingsSSLResponse
- type UploadWebsiteSSLRequest
- type UploadWebsiteSSLResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetHttpsConf ¶
func (c *Client) GetHttpsConf(websiteId int64) (*GetHttpsConfResponse, error)
func (*Client) GetHttpsConfWithContext ¶
func (*Client) GetWebsiteSSL ¶
func (c *Client) GetWebsiteSSL(sslId int64) (*GetWebsiteSSLResponse, error)
func (*Client) GetWebsiteSSLWithContext ¶
func (*Client) SearchWebsiteSSL ¶
func (c *Client) SearchWebsiteSSL(req *SearchWebsiteSSLRequest) (*SearchWebsiteSSLResponse, error)
func (*Client) SearchWebsiteSSLWithContext ¶
func (c *Client) SearchWebsiteSSLWithContext(ctx context.Context, req *SearchWebsiteSSLRequest) (*SearchWebsiteSSLResponse, error)
func (*Client) UpdateHttpsConf ¶
func (c *Client) UpdateHttpsConf(websiteId int64, req *UpdateHttpsConfRequest) (*UpdateHttpsConfResponse, error)
func (*Client) UpdateHttpsConfWithContext ¶
func (c *Client) UpdateHttpsConfWithContext(ctx context.Context, websiteId int64, req *UpdateHttpsConfRequest) (*UpdateHttpsConfResponse, error)
func (*Client) UpdateSettingsSSL ¶
func (c *Client) UpdateSettingsSSL(req *UpdateSettingsSSLRequest) (*UpdateSettingsSSLResponse, error)
func (*Client) UpdateSettingsSSLWithContext ¶
func (c *Client) UpdateSettingsSSLWithContext(ctx context.Context, req *UpdateSettingsSSLRequest) (*UpdateSettingsSSLResponse, error)
func (*Client) UploadWebsiteSSL ¶
func (c *Client) UploadWebsiteSSL(req *UploadWebsiteSSLRequest) (*UploadWebsiteSSLResponse, error)
func (*Client) UploadWebsiteSSLWithContext ¶
func (c *Client) UploadWebsiteSSLWithContext(ctx context.Context, req *UploadWebsiteSSLRequest) (*UploadWebsiteSSLResponse, error)
type GetHttpsConfResponse ¶
type GetHttpsConfResponse struct {
Data *struct {
Enable bool `json:"enable"`
HttpConfig string `json:"httpConfig"`
SSLProtocol []string `json:"SSLProtocol"`
Algorithm string `json:"algorithm"`
Hsts bool `json:"hsts"`
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetHttpsConfResponse) GetMessage ¶
func (r *GetHttpsConfResponse) GetMessage() string
type GetWebsiteSSLResponse ¶
type GetWebsiteSSLResponse struct {
Data *struct {
ID int64 `json:"id"`
Provider string `json:"provider"`
Description string `json:"description"`
PrimaryDomain string `json:"primaryDomain"`
Domains string `json:"domains"`
Type string `json:"type"`
Organization string `json:"organization"`
Status string `json:"status"`
StartDate string `json:"startDate"`
ExpireDate string `json:"expireDate"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetWebsiteSSLResponse) GetMessage ¶
func (r *GetWebsiteSSLResponse) GetMessage() string
type SearchWebsiteSSLRequest ¶
type SearchWebsiteSSLResponse ¶
type SearchWebsiteSSLResponse struct {
Data *struct {
Items []*struct {
ID int64 `json:"id"`
PEM string `json:"pem"`
PrivateKey string `json:"privateKey"`
Domains string `json:"domains"`
Description string `json:"description"`
Status string `json:"status"`
UpdatedAt string `json:"updatedAt"`
CreatedAt string `json:"createdAt"`
} `json:"items"`
Total int32 `json:"total"`
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*SearchWebsiteSSLResponse) GetMessage ¶
func (r *SearchWebsiteSSLResponse) GetMessage() string
type UpdateHttpsConfRequest ¶
type UpdateHttpsConfRequest struct {
WebsiteID int64 `json:"websiteId"`
Enable bool `json:"enable"`
Type string `json:"type"`
WebsiteSSLID int64 `json:"websiteSSLId"`
PrivateKey string `json:"privateKey"`
Certificate string `json:"certificate"`
PrivateKeyPath string `json:"privateKeyPath"`
CertificatePath string `json:"certificatePath"`
ImportType string `json:"importType"`
HttpConfig string `json:"httpConfig"`
SSLProtocol []string `json:"SSLProtocol"`
Algorithm string `json:"algorithm"`
Hsts bool `json:"hsts"`
}
type UpdateHttpsConfResponse ¶
type UpdateHttpsConfResponse struct {
// contains filtered or unexported fields
}
func (*UpdateHttpsConfResponse) GetMessage ¶
func (r *UpdateHttpsConfResponse) GetMessage() string
type UpdateSettingsSSLResponse ¶
type UpdateSettingsSSLResponse struct {
// contains filtered or unexported fields
}
func (*UpdateSettingsSSLResponse) GetMessage ¶
func (r *UpdateSettingsSSLResponse) GetMessage() string
type UploadWebsiteSSLRequest ¶
type UploadWebsiteSSLRequest struct {
SSLID int64 `json:"sslID"`
Type string `json:"type"`
Certificate string `json:"certificate"`
CertificatePath string `json:"certificatePath"`
PrivateKey string `json:"privateKey"`
PrivateKeyPath string `json:"privateKeyPath"`
Description string `json:"description"`
}
type UploadWebsiteSSLResponse ¶
type UploadWebsiteSSLResponse struct {
// contains filtered or unexported fields
}
func (*UploadWebsiteSSLResponse) GetMessage ¶
func (r *UploadWebsiteSSLResponse) GetMessage() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.