Versions in this module Expand all Collapse all v2 v2.2.27 Jul 28, 2024 v2.2.26 Jul 13, 2024 Changes in this version + type BackupImpl struct + func NewBackupImpl() *BackupImpl + func (s *BackupImpl) MysqlBackup(database string) error + func (s *BackupImpl) MysqlList() ([]types.BackupFile, error) + func (s *BackupImpl) MysqlRestore(database string, backupFile string) error + func (s *BackupImpl) PostgresqlBackup(database string) error + func (s *BackupImpl) PostgresqlList() ([]types.BackupFile, error) + func (s *BackupImpl) PostgresqlRestore(database string, backupFile string) error + func (s *BackupImpl) WebSiteBackup(website models.Website) error + func (s *BackupImpl) WebsiteList() ([]types.BackupFile, error) + func (s *BackupImpl) WebsiteRestore(website models.Website, backupFile string) error + type CertImpl struct + func NewCertImpl() *CertImpl + func (s *CertImpl) CertDestroy(ID uint) error + func (s *CertImpl) CertShow(ID uint) (models.Cert, error) + func (s *CertImpl) CertStore(request requests.CertStore) error + func (s *CertImpl) CertUpdate(request requests.CertUpdate) error + func (s *CertImpl) DNSDestroy(ID uint) error + func (s *CertImpl) DNSShow(ID uint) (models.CertDNS, error) + func (s *CertImpl) DNSStore(request requests.DNSStore) error + func (s *CertImpl) DNSUpdate(request requests.DNSUpdate) error + func (s *CertImpl) Deploy(ID, WebsiteID uint) error + func (s *CertImpl) ManualDNS(ID uint) ([]acme.DNSRecord, error) + func (s *CertImpl) ObtainAuto(ID uint) (acme.Certificate, error) + func (s *CertImpl) ObtainManual(ID uint) (acme.Certificate, error) + func (s *CertImpl) Renew(ID uint) (acme.Certificate, error) + func (s *CertImpl) UserDestroy(ID uint) error + func (s *CertImpl) UserShow(ID uint) (models.CertUser, error) + func (s *CertImpl) UserStore(request requests.UserStore) error + func (s *CertImpl) UserUpdate(request requests.UserUpdate) error + type Container struct + func NewContainer(sock ...string) Container + func (r *Container) ContainerCreate(name string, config container.Config, host container.HostConfig, ...) (string, error) + func (r *Container) ContainerExist(name string) (bool, error) + func (r *Container) ContainerInspect(id string) (types.ContainerJSON, error) + func (r *Container) ContainerKill(id string) error + func (r *Container) ContainerListAll() ([]types.Container, error) + func (r *Container) ContainerListByNames(names []string) ([]types.Container, error) + func (r *Container) ContainerLogs(id string) (string, error) + func (r *Container) ContainerPause(id string) error + func (r *Container) ContainerPrune() error + func (r *Container) ContainerRemove(id string) error + func (r *Container) ContainerRename(id string, newName string) error + func (r *Container) ContainerRestart(id string) error + func (r *Container) ContainerStart(id string) error + func (r *Container) ContainerStats(id string) (container.StatsResponseReader, error) + func (r *Container) ContainerStop(id string) error + func (r *Container) ContainerUnpause(id string) error + func (r *Container) ContainerUpdate(id string, config container.UpdateConfig) error + func (r *Container) ImageExist(id string) (bool, error) + func (r *Container) ImageInspect(id string) (types.ImageInspect, error) + func (r *Container) ImageList() ([]image.Summary, error) + func (r *Container) ImagePrune() error + func (r *Container) ImagePull(config requests.ImagePull) error + func (r *Container) ImageRemove(id string) error + func (r *Container) KVToMap(kvs []paneltypes.KV) map[string]string + func (r *Container) KVToSlice(kvs []paneltypes.KV) []string + func (r *Container) NetworkConnect(networkID string, containerID string) error + func (r *Container) NetworkCreate(config requests.NetworkCreate) (string, error) + func (r *Container) NetworkDisconnect(networkID string, containerID string) error + func (r *Container) NetworkExist(name string) (bool, error) + func (r *Container) NetworkInspect(id string) (network.Inspect, error) + func (r *Container) NetworkList() ([]network.Inspect, error) + func (r *Container) NetworkPrune() error + func (r *Container) NetworkRemove(id string) error + func (r *Container) VolumeCreate(config requests.VolumeCreate) (volume.Volume, error) + func (r *Container) VolumeExist(id string) (bool, error) + func (r *Container) VolumeInspect(id string) (volume.Volume, error) + func (r *Container) VolumeList() ([]*volume.Volume, error) + func (r *Container) VolumePrune() error + func (r *Container) VolumeRemove(id string) error + type CronImpl struct + func NewCronImpl() *CronImpl + func (r *CronImpl) AddToSystem(cron models.Cron) error + func (r *CronImpl) DeleteFromSystem(cron models.Cron) error + type PHPImpl struct + func NewPHPImpl(version uint) *PHPImpl + func (r *PHPImpl) ClearErrorLog() error + func (r *PHPImpl) ClearSlowLog() error + func (r *PHPImpl) GetConfig() (string, error) + func (r *PHPImpl) GetErrorLog() (string, error) + func (r *PHPImpl) GetExtensions() ([]types.PHPExtension, error) + func (r *PHPImpl) GetFPMConfig() (string, error) + func (r *PHPImpl) GetSlowLog() (string, error) + func (r *PHPImpl) InstallExtension(slug string) error + func (r *PHPImpl) Load() ([]types.NV, error) + func (r *PHPImpl) Reload() error + func (r *PHPImpl) SaveConfig(config string) error + func (r *PHPImpl) SaveFPMConfig(config string) error + func (r *PHPImpl) UninstallExtension(slug string) error + type PluginImpl struct + func NewPluginImpl() *PluginImpl + func (r *PluginImpl) All() []types.Plugin + func (r *PluginImpl) AllInstalled() ([]models.Plugin, error) + func (r *PluginImpl) GetBySlug(slug string) types.Plugin + func (r *PluginImpl) GetInstalledBySlug(slug string) models.Plugin + func (r *PluginImpl) Install(slug string) error + func (r *PluginImpl) Uninstall(slug string) error + func (r *PluginImpl) Update(slug string) error + type SettingImpl struct + func NewSettingImpl() *SettingImpl + func (r *SettingImpl) Delete(key string) error + func (r *SettingImpl) Get(key string, defaultValue ...string) string + func (r *SettingImpl) Set(key, value string) error + type TaskImpl struct + func NewTaskImpl() *TaskImpl + func (r *TaskImpl) DispatchWaiting() error + func (r *TaskImpl) Process(taskID uint) error + type UserImpl struct + func NewUserImpl() *UserImpl + func (r *UserImpl) Create(username, password string) (models.User, error) + func (r *UserImpl) Update(user models.User) (models.User, error) + type WebsiteImpl struct + func NewWebsiteImpl() *WebsiteImpl + func (r *WebsiteImpl) Add(website requests.Add) (models.Website, error) + func (r *WebsiteImpl) Delete(request requests.Delete) error + func (r *WebsiteImpl) GetConfig(id uint) (types.WebsiteSetting, error) + func (r *WebsiteImpl) GetConfigByName(name string) (types.WebsiteSetting, error) + func (r *WebsiteImpl) GetIDByName(name string) (uint, error) + func (r *WebsiteImpl) List(page, limit int) (int64, []models.Website, error) + func (r *WebsiteImpl) SaveConfig(config requests.SaveConfig) error