Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) FindByID(ctx context.Context, serverID int64) (*types.Server, error)
- func (c *Controller) Get(ctx context.Context) (*types.Server, error)
- func (c *Controller) Init(ctx context.Context) (*types.Server, error)
- func (c *Controller) ListCertificates(ctx context.Context) ([]*types.Certificate, error)
- func (c *Controller) UpdateBuilder(ctx context.Context, in *ServerBuilderUpdateModel) (*types.Server, error)
- func (c *Controller) UpdateGeneral(ctx context.Context, in *ServerGeneralUpdateModel) (*types.Server, error)
- func (c *Controller) UpdateLimits(ctx context.Context, in *ServerLimitsUpdateModel) (*types.Server, error)
- func (c *Controller) UpdateNetwork(ctx context.Context, in *ServerNetworkUpdateModel) (*types.Server, error)
- type ServerBuilderUpdateModel
- type ServerGeneralUpdateModel
- type ServerLimitsUpdateModel
- type ServerNetworkUpdateModel
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
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) 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 ServerLimitsUpdateModel ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.