api

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeGenerateRequest added in v0.1.5

type ComposeGenerateRequest struct {
	Name          string           `json:"name" binding:"required"`
	ContainerPort int              `json:"container_port"`
	MapPorts      bool             `json:"map_ports"`
	HostPort      string           `json:"host_port"`
	Mounts        []MountSelection `json:"mounts"`
}

type ComposeUpdateRequest added in v0.1.5

type ComposeUpdateRequest struct {
	Content  string           `json:"content" binding:"required"`
	Ports    []PortConfig     `json:"ports"`
	Mounts   []MountSelection `json:"mounts"`
	Database *DatabaseConfig  `json:"database,omitempty"`
}

type DatabaseConfig added in v0.1.5

type DatabaseConfig struct {
	Type              string `json:"type"`
	Mode              string `json:"mode"`
	Name              string `json:"name"`
	User              string `json:"user"`
	Password          string `json:"password"`
	RootPassword      string `json:"root_password"`
	ExistingContainer string `json:"existing_container"`
	ExternalHost      string `json:"external_host"`
	ExternalPort      string `json:"external_port"`
}

type DatabaseConfigRequest added in v0.1.5

type DatabaseConfigRequest struct {
	Alias             string `json:"alias"`
	Type              string `json:"type"`
	Mode              string `json:"mode"`
	Service           string `json:"service,omitempty"`
	ExistingContainer string `json:"existing_container,omitempty"`
	ExternalHost      string `json:"external_host,omitempty"`
	ExternalPort      int    `json:"external_port,omitempty"`
	DatabaseName      string `json:"database_name,omitempty"`
	Username          string `json:"username,omitempty"`
	Password          string `json:"password,omitempty"`
	EnvPrefix         string `json:"env_prefix,omitempty"`
}

func (*DatabaseConfigRequest) Validate added in v0.1.5

func (d *DatabaseConfigRequest) Validate() error

type EnvVar added in v0.1.3

type EnvVar struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type MountSelection added in v0.1.5

type MountSelection struct {
	ID      string `json:"id"`
	Enabled bool   `json:"enabled"`
	Type    string `json:"type"`
}

type PortConfig added in v0.1.5

type PortConfig struct {
	ContainerPort int    `json:"container_port"`
	HostPort      string `json:"host_port"`
}

type PowerDNSHandlers added in v0.1.5

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

func NewPowerDNSHandlers added in v0.1.5

func NewPowerDNSHandlers(manager *dns.PowerDNSManager) *PowerDNSHandlers

func (*PowerDNSHandlers) CreateZone added in v0.1.5

func (h *PowerDNSHandlers) CreateZone(c *gin.Context)

func (*PowerDNSHandlers) DeleteZone added in v0.1.5

func (h *PowerDNSHandlers) DeleteZone(c *gin.Context)

func (*PowerDNSHandlers) DisableService added in v0.1.5

func (h *PowerDNSHandlers) DisableService(c *gin.Context)

func (*PowerDNSHandlers) EnableService added in v0.1.5

func (h *PowerDNSHandlers) EnableService(c *gin.Context)

func (*PowerDNSHandlers) GetStatus added in v0.1.5

func (h *PowerDNSHandlers) GetStatus(c *gin.Context)

func (*PowerDNSHandlers) GetZone added in v0.1.5

func (h *PowerDNSHandlers) GetZone(c *gin.Context)

func (*PowerDNSHandlers) ListZones added in v0.1.5

func (h *PowerDNSHandlers) ListZones(c *gin.Context)

func (*PowerDNSHandlers) RegisterRoutes added in v0.1.5

func (h *PowerDNSHandlers) RegisterRoutes(rg *gin.RouterGroup)

func (*PowerDNSHandlers) RestartService added in v0.1.5

func (h *PowerDNSHandlers) RestartService(c *gin.Context)

func (*PowerDNSHandlers) UpdateRecords added in v0.1.5

func (h *PowerDNSHandlers) UpdateRecords(c *gin.Context)

type ProxySyncResult added in v0.1.5

type ProxySyncResult struct {
	Name    string `json:"name"`
	Domain  string `json:"domain"`
	Success bool   `json:"success"`
	Message string `json:"message,omitempty"`
	Created bool   `json:"created"`
}

type Server

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

func New

func New(cfg *config.Config, configPath string) *Server

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

type Template

type Template struct {
	ID            string          `json:"id"`
	Name          string          `json:"name" yaml:"name"`
	Description   string          `json:"description" yaml:"description"`
	Icon          string          `json:"icon" yaml:"icon"`
	Category      string          `json:"category" yaml:"category"`
	Priority      int             `json:"priority" yaml:"priority"`
	ContainerPort int             `json:"container_port" yaml:"container_port"`
	Mounts        []TemplateMount `json:"mounts" yaml:"mounts"`
	Files         []TemplateFile  `json:"files" yaml:"files"`
	Content       string          `json:"content"`
}

type TemplateFile added in v0.1.3

type TemplateFile struct {
	Path    string `json:"path" yaml:"path"`
	Content string `json:"content" yaml:"content"`
}

type TemplateMetadata

type TemplateMetadata struct {
	Name          string          `yaml:"name"`
	Description   string          `yaml:"description"`
	Icon          string          `yaml:"icon"`
	Category      string          `yaml:"category"`
	Type          string          `yaml:"type"`
	Priority      int             `yaml:"priority"`
	ContainerPort int             `yaml:"container_port"`
	Mounts        []TemplateMount `yaml:"mounts"`
	Files         []TemplateFile  `yaml:"files"`
}

type TemplateMount added in v0.1.5

type TemplateMount struct {
	ID             string   `json:"id" yaml:"id"`
	Name           string   `json:"name" yaml:"name"`
	ContainerPath  string   `json:"container_path" yaml:"container_path"`
	Description    string   `json:"description" yaml:"description"`
	Type           string   `json:"type" yaml:"type"`
	Required       bool     `json:"required" yaml:"required"`
	User           string   `json:"user,omitempty" yaml:"user,omitempty"`
	Subdirectories []string `json:"subdirectories,omitempty" yaml:"subdirectories,omitempty"`
}

Jump to

Keyboard shortcuts

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