btpanel

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 14 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) ConfigSetPanelSSL

func (c *Client) ConfigSetPanelSSL(req *ConfigSetPanelSSLRequest) (*ConfigSetPanelSSLResponse, error)

func (*Client) ConfigSetPanelSSLWithContext

func (c *Client) ConfigSetPanelSSLWithContext(ctx context.Context, req *ConfigSetPanelSSLRequest) (*ConfigSetPanelSSLResponse, error)

func (*Client) DatalistGetDataList

func (c *Client) DatalistGetDataList(req *DatalistGetDataListRequest) (*DatalistGetDataListResponse, error)

func (*Client) DatalistGetDataListWithContext

func (c *Client) DatalistGetDataListWithContext(ctx context.Context, req *DatalistGetDataListRequest) (*DatalistGetDataListResponse, error)

func (*Client) FilesUpload

func (c *Client) FilesUpload(req *FilesUploadRequest) (*FilesUploadResponse, error)

func (*Client) FilesUploadWithContext

func (c *Client) FilesUploadWithContext(ctx context.Context, req *FilesUploadRequest) (*FilesUploadResponse, error)

func (*Client) PanelGetConfig

func (c *Client) PanelGetConfig(req *PanelGetConfigRequest) (*PanelGetConfigResponse, error)

func (*Client) PanelGetConfigWithContext

func (c *Client) PanelGetConfigWithContext(ctx context.Context, req *PanelGetConfigRequest) (*PanelGetConfigResponse, 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) SiteGetProjectList added in v0.4.6

func (c *Client) SiteGetProjectList(req *SiteGetProjectListRequest) (*SiteGetProjectListResponse, error)

func (*Client) SiteGetProjectListWithContext added in v0.4.6

func (c *Client) SiteGetProjectListWithContext(ctx context.Context, req *SiteGetProjectListRequest) (*SiteGetProjectListResponse, error)

func (*Client) SiteSetSitePFXSSL

func (c *Client) SiteSetSitePFXSSL(req *SiteSetSitePFXSSLRequest) (*SiteSetSitePFXSSLResponse, error)

func (*Client) SiteSetSitePFXSSLWithContext

func (c *Client) SiteSetSitePFXSSLWithContext(ctx context.Context, req *SiteSetSitePFXSSLRequest) (*SiteSetSitePFXSSLResponse, error)

func (*Client) SiteSetSiteSSL

func (c *Client) SiteSetSiteSSL(req *SiteSetSiteSSLRequest) (*SiteSetSiteSSLResponse, error)

func (*Client) SiteSetSiteSSLWithContext

func (c *Client) SiteSetSiteSSLWithContext(ctx context.Context, req *SiteSetSiteSSLRequest) (*SiteSetSiteSSLResponse, error)

type ConfigSetPanelSSLRequest

type ConfigSetPanelSSLRequest struct {
	SSLStatus *int32  `json:"ssl_status,omitempty"`
	SSLKey    *string `json:"ssl_key,omitempty"`
	SSLPem    *string `json:"ssl_pem,omitempty"`
}

type ConfigSetPanelSSLResponse

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

func (*ConfigSetPanelSSLResponse) GetMessage

func (r *ConfigSetPanelSSLResponse) GetMessage() *string

func (*ConfigSetPanelSSLResponse) GetStatus

func (r *ConfigSetPanelSSLResponse) GetStatus() json.RawMessage

type DatalistGetDataListRequest

type DatalistGetDataListRequest struct {
	Table        *string `json:"table,omitempty"`
	SearchType   *string `json:"search_type,omitempty"`
	SearchString *string `json:"search,omitempty"`
	Page         *int32  `json:"p,omitempty"`
	Limit        *int32  `json:"limit,omitempty"`
	Order        *string `json:"order,omitempty"`
	Type         *int32  `json:"type,omitempty"`
}

type DatalistGetDataListResponse

type DatalistGetDataListResponse struct {
	Data []*SiteData `json:"data,omitempty"`
	Page *PageData   `json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*DatalistGetDataListResponse) GetMessage

func (r *DatalistGetDataListResponse) GetMessage() *string

func (*DatalistGetDataListResponse) GetStatus

func (r *DatalistGetDataListResponse) GetStatus() json.RawMessage

type FilesUploadRequest

type FilesUploadRequest struct {
	Path  *string `json:"path,omitempty"`
	Name  *string `json:"filename,omitempty"`
	Start *int32  `json:"start,omitempty"`
	Size  *int32  `json:"size,omitempty"`
	Blob  []byte  `json:"-" form:"blob"`
	Force *bool   `json:"force,omitempty"`
}

type FilesUploadResponse

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

func (*FilesUploadResponse) GetMessage

func (r *FilesUploadResponse) GetMessage() *string

func (*FilesUploadResponse) GetStatus

func (r *FilesUploadResponse) GetStatus() json.RawMessage

type PageData

type PageData struct {
	Page    int32 `json:"page"`
	Limit   int32 `json:"limit"`
	Total   int32 `json:"total"`
	Start   int32 `json:"start"`
	End     int32 `json:"end"`
	MaxPage int32 `json:"maxPage"`
}

type PanelGetConfigRequest

type PanelGetConfigRequest struct{}

type PanelGetConfigResponse

type PanelGetConfigResponse struct {
	Paths *struct {
		Panel string `json:"panel,omitempty"`
		Soft  string `json:"soft,omitempty"`
	} `json:"paths,omitempty"`
	Site *struct {
		WebServer  string `json:"webserver,omitempty"`
		SitesPath  string `json:"sites_path,omitempty"`
		BackupPath string `json:"backup_path,omitempty"`
	} `json:"site,omitempty"`
	// contains filtered or unexported fields
}

func (*PanelGetConfigResponse) GetMessage

func (r *PanelGetConfigResponse) GetMessage() *string

func (*PanelGetConfigResponse) GetStatus

func (r *PanelGetConfigResponse) GetStatus() json.RawMessage

type SiteData

type SiteData struct {
	Id          int32  `json:"id"`
	ProjectType string `json:"project_type"`
	Name        string `json:"name"`
	Note        string `json:"ps"`
	Status      string `json:"status"`
	SSLInfo     []*struct {
		Name   string `json:"name"`
		Status bool   `json:"status"`
	} `json:"ssl_info"`
	AddTime string `json:"addtime"`
}

type SiteGetProjectListRequest added in v0.4.6

type SiteGetProjectListRequest struct {
	SearchType   *string `json:"search_type,omitempty"`
	SearchString *string `json:"search,omitempty"`
	Page         *int32  `json:"p,omitempty"`
	Limit        *int32  `json:"limit,omitempty"`
	Order        *string `json:"order,omitempty"`
}

type SiteGetProjectListResponse added in v0.4.6

type SiteGetProjectListResponse struct {
	Data []*SiteData `json:"data,omitempty"`
	Page *PageData   `json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*SiteGetProjectListResponse) GetMessage added in v0.4.6

func (r *SiteGetProjectListResponse) GetMessage() *string

func (*SiteGetProjectListResponse) GetStatus added in v0.4.6

func (r *SiteGetProjectListResponse) GetStatus() json.RawMessage

type SiteSetSitePFXSSLRequest

type SiteSetSitePFXSSLRequest struct {
	SiteId   *int32  `json:"siteid,omitempty"`
	PFX      *string `json:"pfx,omitempty"`
	Password *string `json:"password,omitempty"`
}

type SiteSetSitePFXSSLResponse

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

func (*SiteSetSitePFXSSLResponse) GetMessage

func (r *SiteSetSitePFXSSLResponse) GetMessage() *string

func (*SiteSetSitePFXSSLResponse) GetStatus

func (r *SiteSetSitePFXSSLResponse) GetStatus() json.RawMessage

type SiteSetSiteSSLRequest

type SiteSetSiteSSLRequest struct {
	SiteId *int32  `json:"siteid,omitempty"`
	Status *bool   `json:"status,omitempty"`
	Key    *string `json:"key,omitempty"`
	Cert   *string `json:"cert,omitempty"`
}

type SiteSetSiteSSLResponse

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

func (*SiteSetSiteSSLResponse) GetMessage

func (r *SiteSetSiteSSLResponse) GetMessage() *string

func (*SiteSetSiteSSLResponse) GetStatus

func (r *SiteSetSiteSSLResponse) GetStatus() json.RawMessage

Jump to

Keyboard shortcuts

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