ratpanel

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertUpdateRequest added in v0.4.14

type CertUpdateRequest struct {
	CertId      int64    `json:"id"`
	Type        string   `json:"type"`
	Domains     []string `json:"domains"`
	Certificate string   `json:"cert"`
	PrivateKey  string   `json:"key"`
}

type CertUpdateResponse added in v0.4.14

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

func (*CertUpdateResponse) GetMessage added in v0.4.14

func (r *CertUpdateResponse) GetMessage() string

type Client

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

func NewClient

func NewClient(serverUrl string, accessTokenId int64, accessToken string) (*Client, error)

func (*Client) CertUpdate added in v0.4.14

func (c *Client) CertUpdate(req *CertUpdateRequest) (*CertUpdateResponse, error)

func (*Client) CertUpdateWithContext added in v0.4.14

func (c *Client) CertUpdateWithContext(ctx context.Context, req *CertUpdateRequest) (*CertUpdateResponse, error)

func (*Client) SetSettingCert

func (c *Client) SetSettingCert(req *SetSettingCertRequest) (*SetSettingCertResponse, error)

func (*Client) SetSettingCertWithContext

func (c *Client) SetSettingCertWithContext(ctx context.Context, req *SetSettingCertRequest) (*SetSettingCertResponse, 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) SetWebsiteCert

func (c *Client) SetWebsiteCert(req *SetWebsiteCertRequest) (*SetWebsiteCertResponse, error)

func (*Client) SetWebsiteCertWithContext

func (c *Client) SetWebsiteCertWithContext(ctx context.Context, req *SetWebsiteCertRequest) (*SetWebsiteCertResponse, error)

type SetSettingCertRequest

type SetSettingCertRequest struct {
	Certificate string `json:"cert"`
	PrivateKey  string `json:"key"`
}

type SetSettingCertResponse

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

func (*SetSettingCertResponse) GetMessage

func (r *SetSettingCertResponse) GetMessage() string

type SetWebsiteCertRequest

type SetWebsiteCertRequest struct {
	SiteName    string `json:"name"`
	Certificate string `json:"cert"`
	PrivateKey  string `json:"key"`
}

type SetWebsiteCertResponse

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

func (*SetWebsiteCertResponse) GetMessage

func (r *SetWebsiteCertResponse) GetMessage() string

Jump to

Keyboard shortcuts

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