Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateCert(req *CreateCertRequest) (*CreateCertResponse, error)
- func (c *Client) CreateCertWithContext(ctx context.Context, req *CreateCertRequest) (*CreateCertResponse, error)
- func (c *Client) GetSite(siteId string) (*GetSiteResponse, error)
- func (c *Client) GetSiteWithContext(ctx context.Context, siteId string) (*GetSiteResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) UpdateCert(certId string, req *UpdateCertRequest) (*UpdateCertResponse, error)
- func (c *Client) UpdateCertWithContext(ctx context.Context, certId string, req *UpdateCertRequest) (*UpdateCertResponse, error)
- func (c *Client) UpdateSite(siteId string, req *UpdateSiteRequest) (*UpdateSiteResponse, error)
- func (c *Client) UpdateSiteWithContext(ctx context.Context, siteId string, req *UpdateSiteRequest) (*UpdateSiteResponse, error)
- type CreateCertRequest
- type CreateCertResponse
- type GetSiteResponse
- type UpdateCertRequest
- type UpdateCertResponse
- type UpdateSiteRequest
- type UpdateSiteResponse
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) CreateCert ¶
func (c *Client) CreateCert(req *CreateCertRequest) (*CreateCertResponse, error)
func (*Client) CreateCertWithContext ¶
func (c *Client) CreateCertWithContext(ctx context.Context, req *CreateCertRequest) (*CreateCertResponse, error)
func (*Client) GetSiteWithContext ¶
func (*Client) UpdateCert ¶
func (c *Client) UpdateCert(certId string, req *UpdateCertRequest) (*UpdateCertResponse, error)
func (*Client) UpdateCertWithContext ¶
func (c *Client) UpdateCertWithContext(ctx context.Context, certId string, req *UpdateCertRequest) (*UpdateCertResponse, error)
func (*Client) UpdateSite ¶
func (c *Client) UpdateSite(siteId string, req *UpdateSiteRequest) (*UpdateSiteResponse, error)
func (*Client) UpdateSiteWithContext ¶
func (c *Client) UpdateSiteWithContext(ctx context.Context, siteId string, req *UpdateSiteRequest) (*UpdateSiteResponse, error)
type CreateCertRequest ¶
type CreateCertResponse ¶
type CreateCertResponse struct {
Data string `json:"data"`
// contains filtered or unexported fields
}
func (*CreateCertResponse) GetMessage ¶
func (r *CreateCertResponse) GetMessage() string
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 UpdateCertRequest ¶
type UpdateCertResponse ¶
type UpdateCertResponse struct {
// contains filtered or unexported fields
}
func (*UpdateCertResponse) GetMessage ¶
func (r *UpdateCertResponse) 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.