instance

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: 18 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,
	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) Update

func (c *Controller) Update(ctx context.Context, server *types.Server, in *InstanceUpdateInput) (*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) UpdateRegistry

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

func (*Controller) UpdateSuperAdmin

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

func (*Controller) UpdateWithServer

func (c *Controller) UpdateWithServer(ctx context.Context, server *types.Server) (*types.Instance, 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 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"`
}

Jump to

Keyboard shortcuts

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