btpanel

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(serverUrl, apiKey string) (*Client, error)

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) 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) 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) SetTLSConfig

func (c *Client) SetTLSConfig(config *tls.Config) *Client

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

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 ConfigSavePanelSSLRequest

type ConfigSavePanelSSLRequest struct {
	PrivateKey  string `json:"privateKey"`
	Certificate string `json:"certPem"`
}

type ConfigSavePanelSSLResponse

type ConfigSavePanelSSLResponse struct {
	// contains filtered or unexported fields
}

func (*ConfigSavePanelSSLResponse) GetMessage

func (r *ConfigSavePanelSSLResponse) GetMessage() *string

func (*ConfigSavePanelSSLResponse) GetStatus

func (r *ConfigSavePanelSSLResponse) GetStatus() *bool

type SSLCertSaveCertRequest

type SSLCertSaveCertRequest struct {
	PrivateKey  string `json:"key"`
	Certificate string `json:"csr"`
}

type SSLCertSaveCertResponse

type SSLCertSaveCertResponse struct {
	SSLHash string `json:"ssl_hash"`
	// contains filtered or unexported fields
}

func (*SSLCertSaveCertResponse) GetMessage

func (r *SSLCertSaveCertResponse) GetMessage() *string

func (*SSLCertSaveCertResponse) GetStatus

func (r *SSLCertSaveCertResponse) GetStatus() *bool

type SSLSetBatchCertToSiteRequest

type SSLSetBatchCertToSiteRequest struct {
	BatchInfo []*SSLSetBatchCertToSiteRequestBatchInfo `json:"BatchInfo"`
}

type SSLSetBatchCertToSiteRequestBatchInfo

type SSLSetBatchCertToSiteRequestBatchInfo struct {
	SSLHash  string `json:"ssl_hash"`
	SiteName string `json:"siteName"`
	CertName string `json:"certName"`
}

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

func (*SSLSetBatchCertToSiteResponse) GetStatus

func (r *SSLSetBatchCertToSiteResponse) GetStatus() *bool

type SiteSetSSLRequest

type SiteSetSSLRequest struct {
	Type        string `json:"type"`
	SiteName    string `json:"siteName"`
	PrivateKey  string `json:"key"`
	Certificate string `json:"csr"`
}

type SiteSetSSLResponse

type SiteSetSSLResponse struct {
	// contains filtered or unexported fields
}

func (*SiteSetSSLResponse) GetMessage

func (r *SiteSetSSLResponse) GetMessage() *string

func (*SiteSetSSLResponse) GetStatus

func (r *SiteSetSSLResponse) GetStatus() *bool

type SystemServiceAdminRequest

type SystemServiceAdminRequest struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type SystemServiceAdminResponse

type SystemServiceAdminResponse struct {
	// contains filtered or unexported fields
}

func (*SystemServiceAdminResponse) GetMessage

func (r *SystemServiceAdminResponse) GetMessage() *string

func (*SystemServiceAdminResponse) GetStatus

func (r *SystemServiceAdminResponse) GetStatus() *bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL