Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup interface { WebsiteList() ([]types.BackupFile, error) WebSiteBackup(website models.Website) error WebsiteRestore(website models.Website, backupFile string) error MysqlList() ([]types.BackupFile, error) MysqlBackup(database string) error MysqlRestore(database string, backupFile string) error PostgresqlList() ([]types.BackupFile, error) PostgresqlBackup(database string) error PostgresqlRestore(database string, backupFile string) error }
type Cert ¶
type Cert interface { UserStore(request requests.UserStore) error UserUpdate(request requests.UserUpdate) error UserShow(ID uint) (models.CertUser, error) UserDestroy(ID uint) error DNSStore(request requests.DNSStore) error DNSUpdate(request requests.DNSUpdate) error DNSShow(ID uint) (models.CertDNS, error) DNSDestroy(ID uint) error CertStore(request requests.CertStore) error CertUpdate(request requests.CertUpdate) error CertShow(ID uint) (models.Cert, error) CertDestroy(ID uint) error ObtainAuto(ID uint) (acme.Certificate, error) ObtainManual(ID uint) (acme.Certificate, error) ManualDNS(ID uint) ([]acme.DNSRecord, error) Renew(ID uint) (acme.Certificate, error) Deploy(ID, WebsiteID uint) error }
type Container ¶
type Container interface { ContainerListAll() ([]types.Container, error) ContainerListByNames(names []string) ([]types.Container, error) ContainerCreate(name string, config container.Config, host container.HostConfig, networkConfig network.NetworkingConfig) (string, error) ContainerRemove(id string) error ContainerStart(id string) error ContainerStop(id string) error ContainerRestart(id string) error ContainerPause(id string) error ContainerUnpause(id string) error ContainerInspect(id string) (types.ContainerJSON, error) ContainerKill(id string) error ContainerRename(id string, newName string) error ContainerStats(id string) (container.StatsResponseReader, error) ContainerExist(name string) (bool, error) ContainerUpdate(id string, config container.UpdateConfig) error ContainerLogs(id string) (string, error) ContainerPrune() error NetworkList() ([]network.Inspect, error) NetworkCreate(config requests.NetworkCreate) (string, error) NetworkRemove(id string) error NetworkExist(name string) (bool, error) NetworkInspect(id string) (network.Inspect, error) NetworkConnect(networkID string, containerID string) error NetworkDisconnect(networkID string, containerID string) error NetworkPrune() error ImageList() ([]image.Summary, error) ImageExist(id string) (bool, error) ImagePull(config requests.ImagePull) error ImageRemove(id string) error ImagePrune() error ImageInspect(id string) (types.ImageInspect, error) VolumeList() ([]*volume.Volume, error) VolumeCreate(config requests.VolumeCreate) (volume.Volume, error) VolumeExist(name string) (bool, error) VolumeInspect(id string) (volume.Volume, error) VolumeRemove(id string) error VolumePrune() error KVToMap(kvs []paneltypes.KV) map[string]string KVToSlice(kvs []paneltypes.KV) []string }
type PHP ¶
type PHP interface { Status() (bool, error) Reload() error Start() error Stop() error Restart() error GetConfig() (string, error) SaveConfig(config string) error GetFPMConfig() (string, error) SaveFPMConfig(config string) error Load() ([]types.NV, error) GetErrorLog() (string, error) GetSlowLog() (string, error) ClearErrorLog() error ClearSlowLog() error GetExtensions() ([]types.PHPExtension, error) InstallExtension(slug string) error UninstallExtension(slug string) error }
type Website ¶
type Website interface { List(page int, limit int) (int64, []models.Website, error) Add(website requests.Add) (models.Website, error) SaveConfig(config requests.SaveConfig) error Delete(id requests.Delete) error GetConfig(id uint) (types.WebsiteSetting, error) GetConfigByName(name string) (types.WebsiteSetting, error) GetIDByName(name string) (uint, error) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.