Documentation
¶
Overview ¶
A simple SDK client for aaPanel. API documentation: https://www.aapanel.com/docs/api/api-list.html
Index ¶
- type Client
- func (c *Client) ConfigSavePanelSSL(req *ConfigSavePanelSSLRequest) (*ConfigSavePanelSSLResponse, error)
- func (c *Client) ConfigSavePanelSSLWithContext(ctx context.Context, req *ConfigSavePanelSSLRequest) (*ConfigSavePanelSSLResponse, error)
- func (c *Client) ModProxyComSetSSL(req *ModProxyComSetSSLRequest) (*ModProxyComSetSSLResponse, error)
- func (c *Client) ModProxyComSetSSLWithContext(ctx context.Context, req *ModProxyComSetSSLRequest) (*ModProxyComSetSSLResponse, error)
- func (c *Client) SSLCertSaveCert(req *SSLCertSaveCertRequest) (*SSLCertSaveCertResponse, error)
- func (c *Client) SSLCertSaveCertWithContext(ctx context.Context, req *SSLCertSaveCertRequest) (*SSLCertSaveCertResponse, error)
- func (c *Client) SSLDomainCertDeploySitesV2(req *SSLDomainCertDeploySitesV2Request) (*SSLDomainCertDeploySitesV2Response, error)
- func (c *Client) SSLDomainCertDeploySitesV2WithContext(ctx context.Context, req *SSLDomainCertDeploySitesV2Request) (*SSLDomainCertDeploySitesV2Response, error)
- func (c *Client) SSLDomainUploadCertV2(req *SSLDomainUploadCertV2Request) (*SSLDomainUploadCertV2Response, error)
- func (c *Client) SSLDomainUploadCertV2WithContext(ctx context.Context, req *SSLDomainUploadCertV2Request) (*SSLDomainUploadCertV2Response, error)
- func (c *Client) SSLSetBatchCertToSite(req *SSLSetBatchCertToSiteRequest) (*SSLSetBatchCertToSiteResponse, error)
- func (c *Client) SSLSetBatchCertToSiteWithContext(ctx context.Context, req *SSLSetBatchCertToSiteRequest) (*SSLSetBatchCertToSiteResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) SiteSetSSL(req *SiteSetSSLRequest) (*SiteSetSSLResponse, error)
- func (c *Client) SiteSetSSLWithContext(ctx context.Context, req *SiteSetSSLRequest) (*SiteSetSSLResponse, error)
- func (c *Client) SystemServiceAdmin(req *SystemServiceAdminRequest) (*SystemServiceAdminResponse, error)
- func (c *Client) SystemServiceAdminWithContext(ctx context.Context, req *SystemServiceAdminRequest) (*SystemServiceAdminResponse, error)
- type ConfigSavePanelSSLRequest
- type ConfigSavePanelSSLResponse
- type ModProxyComSetSSLRequest
- type ModProxyComSetSSLResponse
- type Options
- type OptionsFunc
- type SSLCertSaveCertRequest
- type SSLCertSaveCertResponse
- type SSLDomainCertDeploySitesV2Request
- type SSLDomainCertDeploySitesV2Response
- type SSLDomainUploadCertV2Request
- type SSLDomainUploadCertV2Response
- type SSLSetBatchCertToSiteRequest
- type SSLSetBatchCertToSiteRequestBatchInfo
- type SSLSetBatchCertToSiteResponse
- type SiteSetSSLRequest
- type SiteSetSSLResponse
- type SystemServiceAdminRequest
- type SystemServiceAdminResponse
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) ConfigSavePanelSSL ¶
func (c *Client) ConfigSavePanelSSL(req *ConfigSavePanelSSLRequest) (*ConfigSavePanelSSLResponse, error)
func (*Client) ConfigSavePanelSSLWithContext ¶
func (c *Client) ConfigSavePanelSSLWithContext(ctx context.Context, req *ConfigSavePanelSSLRequest) (*ConfigSavePanelSSLResponse, error)
func (*Client) ModProxyComSetSSL ¶ added in v0.4.18
func (c *Client) ModProxyComSetSSL(req *ModProxyComSetSSLRequest) (*ModProxyComSetSSLResponse, error)
func (*Client) ModProxyComSetSSLWithContext ¶ added in v0.4.18
func (c *Client) ModProxyComSetSSLWithContext(ctx context.Context, req *ModProxyComSetSSLRequest) (*ModProxyComSetSSLResponse, error)
func (*Client) SSLCertSaveCert ¶
func (c *Client) SSLCertSaveCert(req *SSLCertSaveCertRequest) (*SSLCertSaveCertResponse, error)
func (*Client) SSLCertSaveCertWithContext ¶
func (c *Client) SSLCertSaveCertWithContext(ctx context.Context, req *SSLCertSaveCertRequest) (*SSLCertSaveCertResponse, error)
func (*Client) SSLDomainCertDeploySitesV2 ¶ added in v0.4.26
func (c *Client) SSLDomainCertDeploySitesV2(req *SSLDomainCertDeploySitesV2Request) (*SSLDomainCertDeploySitesV2Response, error)
func (*Client) SSLDomainCertDeploySitesV2WithContext ¶ added in v0.4.26
func (c *Client) SSLDomainCertDeploySitesV2WithContext(ctx context.Context, req *SSLDomainCertDeploySitesV2Request) (*SSLDomainCertDeploySitesV2Response, error)
func (*Client) SSLDomainUploadCertV2 ¶ added in v0.4.26
func (c *Client) SSLDomainUploadCertV2(req *SSLDomainUploadCertV2Request) (*SSLDomainUploadCertV2Response, error)
func (*Client) SSLDomainUploadCertV2WithContext ¶ added in v0.4.26
func (c *Client) SSLDomainUploadCertV2WithContext(ctx context.Context, req *SSLDomainUploadCertV2Request) (*SSLDomainUploadCertV2Response, error)
func (*Client) SSLSetBatchCertToSite ¶
func (c *Client) SSLSetBatchCertToSite(req *SSLSetBatchCertToSiteRequest) (*SSLSetBatchCertToSiteResponse, error)
func (*Client) SSLSetBatchCertToSiteWithContext ¶
func (c *Client) SSLSetBatchCertToSiteWithContext(ctx context.Context, req *SSLSetBatchCertToSiteRequest) (*SSLSetBatchCertToSiteResponse, error)
func (*Client) SiteSetSSL ¶
func (c *Client) SiteSetSSL(req *SiteSetSSLRequest) (*SiteSetSSLResponse, error)
func (*Client) SiteSetSSLWithContext ¶
func (c *Client) SiteSetSSLWithContext(ctx context.Context, req *SiteSetSSLRequest) (*SiteSetSSLResponse, error)
func (*Client) SystemServiceAdmin ¶
func (c *Client) SystemServiceAdmin(req *SystemServiceAdminRequest) (*SystemServiceAdminResponse, error)
func (*Client) SystemServiceAdminWithContext ¶
func (c *Client) SystemServiceAdminWithContext(ctx context.Context, req *SystemServiceAdminRequest) (*SystemServiceAdminResponse, error)
type ConfigSavePanelSSLResponse ¶
type ConfigSavePanelSSLResponse struct {
// contains filtered or unexported fields
}
func (*ConfigSavePanelSSLResponse) GetMessage ¶
func (r *ConfigSavePanelSSLResponse) GetMessage() *string
type ModProxyComSetSSLRequest ¶ added in v0.4.18
type ModProxyComSetSSLResponse ¶ added in v0.4.18
type ModProxyComSetSSLResponse struct {
// contains filtered or unexported fields
}
func (*ModProxyComSetSSLResponse) GetMessage ¶ added in v0.4.18
func (r *ModProxyComSetSSLResponse) GetMessage() *string
type OptionsFunc ¶ added in v0.4.25
type OptionsFunc func(*Options)
func WithApiKey ¶ added in v0.4.25
func WithApiKey(apiKey string) OptionsFunc
type SSLCertSaveCertRequest ¶
type SSLCertSaveCertResponse ¶
type SSLCertSaveCertResponse struct {
SSLHash string `json:"ssl_hash"`
// contains filtered or unexported fields
}
func (*SSLCertSaveCertResponse) GetMessage ¶
func (r *SSLCertSaveCertResponse) GetMessage() *string
type SSLDomainCertDeploySitesV2Request ¶ added in v0.4.26
type SSLDomainCertDeploySitesV2Response ¶ added in v0.4.26
type SSLDomainCertDeploySitesV2Response struct {
// contains filtered or unexported fields
}
func (*SSLDomainCertDeploySitesV2Response) GetMessage ¶ added in v0.4.26
func (r *SSLDomainCertDeploySitesV2Response) GetMessage() *string
type SSLDomainUploadCertV2Request ¶ added in v0.4.26
type SSLDomainUploadCertV2Response ¶ added in v0.4.26
type SSLDomainUploadCertV2Response struct {
Message *struct {
SSLHash string `json:"hash,omitempty"`
} `json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*SSLDomainUploadCertV2Response) GetMessage ¶ added in v0.4.26
func (r *SSLDomainUploadCertV2Response) GetMessage() *string
type SSLSetBatchCertToSiteRequest ¶
type SSLSetBatchCertToSiteRequest struct {
BatchInfo []*SSLSetBatchCertToSiteRequestBatchInfo `json:"BatchInfo"`
}
type SSLSetBatchCertToSiteResponse ¶
type SSLSetBatchCertToSiteResponse struct {
TotalCount int32 `json:"total"`
SuccessCount int32 `json:"success"`
FailedCount int32 `json:"faild"`
// contains filtered or unexported fields
}
func (*SSLSetBatchCertToSiteResponse) GetMessage ¶
func (r *SSLSetBatchCertToSiteResponse) GetMessage() *string
type SiteSetSSLRequest ¶
type SiteSetSSLResponse ¶
type SiteSetSSLResponse struct {
// contains filtered or unexported fields
}
func (*SiteSetSSLResponse) GetMessage ¶
func (r *SiteSetSSLResponse) GetMessage() *string
type SystemServiceAdminResponse ¶
type SystemServiceAdminResponse struct {
// contains filtered or unexported fields
}
func (*SystemServiceAdminResponse) GetMessage ¶
func (r *SystemServiceAdminResponse) GetMessage() *string
Click to show internal directories.
Click to hide internal directories.