server

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(
	tx dbtx.Transactor,
	configSvc *config.Service,
	dnsSvc *dns.Service,
	proxySvc *proxy.Service,
	serverStore store.ServerStore,
	instanceStore store.InstanceStore,
	factory manager.ManagerFactory,
) *Controller

func ProvideController

func ProvideController(
	tx dbtx.Transactor,
	configSvc *config.Service,
	dnsSvc *dns.Service,
	proxySvc *proxy.Service,
	serverStore store.ServerStore,
	instanceStore store.InstanceStore,
	factory manager.ManagerFactory,
) *Controller

func (*Controller) FindByID

func (c *Controller) FindByID(ctx context.Context, serverID int64) (*types.Server, error)

func (*Controller) Get

func (c *Controller) Get(ctx context.Context) (*types.Server, error)

TODO: end goal is to remove this when we start supporting multiple servers

func (*Controller) Init

func (c *Controller) Init(ctx context.Context) (*types.Server, error)

func (*Controller) ListCertificates

func (c *Controller) ListCertificates(ctx context.Context) ([]*types.Certificate, error)

func (*Controller) UpdateBuilder

func (c *Controller) UpdateBuilder(ctx context.Context, in *ServerBuilderUpdateModel) (*types.Server, error)

func (*Controller) UpdateGeneral

func (c *Controller) UpdateGeneral(ctx context.Context, in *ServerGeneralUpdateModel) (*types.Server, error)

func (*Controller) UpdateLimits

func (c *Controller) UpdateLimits(ctx context.Context, in *ServerLimitsUpdateModel) (*types.Server, error)

func (*Controller) UpdateNetwork

func (c *Controller) UpdateNetwork(ctx context.Context, in *ServerNetworkUpdateModel) (*types.Server, error)

type ServerBuilderUpdateModel

type ServerBuilderUpdateModel struct {
	Enabled             bool    `json:"enabled,string"`
	IsBuildServer       bool    `json:"is_build_server,string"`
	PollingInterval     int64   `json:"polling_interval,string"`
	MaxConcurrentBuilds int64   `json:"max_concurrent_builds,string"`
	MaxCPUPerBuild      float64 `json:"max_cpu_per_build,string"`
	MaxMemoryPerBuild   float64 `json:"max_memory_per_build,string"`
}

type ServerGeneralUpdateModel

type ServerGeneralUpdateModel struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type ServerLimitsUpdateModel

type ServerLimitsUpdateModel struct {
	SupportsOnlineExpansion bool  `json:"supports_online_expansion,string"`
	MinVolumeSize           int64 `json:"min_volume_size,string"`
}

type ServerNetworkUpdateModel

type ServerNetworkUpdateModel struct {
	WildCardDomain  string           `json:"wildcard_domain"`
	IPV4            string           `json:"ipv4"`
	DNSProvider     enum.DNSProvider `json:"dns_provider"`
	DNSProviderAuth string           `json:"dns_provider_auth"`
}

Jump to

Keyboard shortcuts

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