Documentation
¶
Index ¶
- type BaseResponse
- type Client
- func (c *Client) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error)
- func (c *Client) GetSite(req *GetSiteRequest) (*GetSiteResponse, error)
- func (c *Client) UpdateCertificate(req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)
- func (c *Client) UpdateSite(req *UpdateSiteRequest) (*UpdateSiteResponse, error)
- func (c *Client) WithTLSConfig(config *tls.Config) *Client
- func (c *Client) WithTimeout(timeout time.Duration) *Client
- type CreateCertificateRequest
- type CreateCertificateResponse
- type GetSiteRequest
- type GetSiteResponse
- type UpdateCertificateRequest
- type UpdateCertificateResponse
- type UpdateSiteRequest
- type UpdateSiteResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCertificate ¶
func (c *Client) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error)
func (*Client) GetSite ¶
func (c *Client) GetSite(req *GetSiteRequest) (*GetSiteResponse, error)
func (*Client) UpdateCertificate ¶
func (c *Client) UpdateCertificate(req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)
func (*Client) UpdateSite ¶
func (c *Client) UpdateSite(req *UpdateSiteRequest) (*UpdateSiteResponse, error)
func (*Client) WithTLSConfig ¶ added in v0.3.11
type CreateCertificateResponse ¶
type CreateCertificateResponse struct {
Data string `json:"data"`
// contains filtered or unexported fields
}
func (*CreateCertificateResponse) GetMessage ¶
func (r *CreateCertificateResponse) GetMessage() string
type GetSiteRequest ¶
type GetSiteRequest struct {
Id string `json:"-"`
}
type GetSiteResponse ¶
type GetSiteResponse struct {
Data *struct {
Id int64 `json:"id"`
Name string `json:"name"`
Domain string `json:"domain"`
HttpsListen string `json:"https_listen"`
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetSiteResponse) GetMessage ¶
func (r *GetSiteResponse) GetMessage() string
type UpdateCertificateResponse ¶
type UpdateCertificateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateCertificateResponse) GetMessage ¶
func (r *UpdateCertificateResponse) GetMessage() string
type UpdateSiteRequest ¶
type UpdateSiteResponse ¶
type UpdateSiteResponse struct {
// contains filtered or unexported fields
}
func (*UpdateSiteResponse) GetMessage ¶
func (r *UpdateSiteResponse) GetMessage() string
Click to show internal directories.
Click to hide internal directories.