instance

package
v0.0.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
	instanceStore store.InstanceStore,
	serverStore store.ServerStore,
	principalStore store.PrincipalStore,
	dnsSvc *dns.Service,
	proxySvc *proxy.Service,
	factory manager.ManagerFactory,
) *Controller

func ProvideController

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

func (*Controller) Get

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

func (*Controller) Init

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

func (*Controller) IsUserSignupAllowed

func (c *Controller) IsUserSignupAllowed(ctx context.Context) (bool, error)

func (*Controller) UpdateDNSConfig

func (c *Controller) UpdateDNSConfig(ctx context.Context, in *InstanceUpdateDNSConfigInput) (*types.Instance, error)

func (*Controller) UpdateDemoUser

func (c *Controller) UpdateDemoUser(ctx context.Context, demoUserEnabled bool) error

func (*Controller) UpdateEnableSignup

func (c *Controller) UpdateEnableSignup(ctx context.Context, enableSignup bool) error

func (*Controller) UpdateFQDN

func (c *Controller) UpdateFQDN(ctx context.Context, server *types.Server, in *InstanceUpdateFQDNInput) (*types.Instance, error)

func (*Controller) UpdateRegistry

func (c *Controller) UpdateRegistry(ctx context.Context, in *InstanceRegistryUpdateInput) (*types.Instance, error)

func (*Controller) UpdateScripts

func (c *Controller) UpdateScripts(ctx context.Context, in *InstanceUpdateScriptsInput) (*types.Instance, error)

func (*Controller) UpdateSuperAdmin

func (c *Controller) UpdateSuperAdmin(ctx context.Context, superAdmin *int64) error

type InstanceRegistryUpdateInput

type InstanceRegistryUpdateInput struct {
	Enabled       bool  `json:"registry_enabled,string"`
	Size          int64 `json:"registry_size,string"`
	MirrorEnabled bool  `json:"registry_mirror_enabled,string"`
	MirrorSize    int64 `json:"registry_mirror_size,string"`
}

type InstanceUpdateDNSConfigInput

type InstanceUpdateDNSConfigInput struct {
	DNSValidationEnabled bool   `json:"dns_validation_enabled,string"`
	DNSServers           string `json:"dns_servers"`
}

type InstanceUpdateFQDNInput

type InstanceUpdateFQDNInput struct {
	FQDN            string           `json:"fqdn"`
	DNSProvider     enum.DNSProvider `json:"dns_provider"`
	DNSProviderAuth string           `json:"dns_provider_auth"`
}

type InstanceUpdateInput

type InstanceUpdateInput struct {
	FQDN                 string           `json:"fqdn"`
	DNSProvider          enum.DNSProvider `json:"dns_provider"`
	DNSProviderAuth      string           `json:"dns_provider_auth"`
	DNSValidationEnabled bool             `json:"dns_validation_enabled,string"`
	DNSServers           string           `json:"dns_servers"`
	ExternalScripts      string           `json:"external_scripts"`
	AdditionalScripts    string           `json:"additional_scripts"`
}

type InstanceUpdateScriptsInput

type InstanceUpdateScriptsInput struct {
	ExternalScripts   string `json:"external_scripts"`
	AdditionalScripts string `json:"additional_scripts"`
}

Jump to

Keyboard shortcuts

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