Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) Get(ctx context.Context) (*types.Instance, error)
- func (c *Controller) Init(ctx context.Context, server *types.Server) (*types.Instance, error)
- func (c *Controller) IsUserSignupAllowed(ctx context.Context) (bool, error)
- func (c *Controller) Update(ctx context.Context, server *types.Server, in *InstanceUpdateInput) (*types.Instance, error)
- func (c *Controller) UpdateDemoUser(ctx context.Context, demoUserEnabled bool) error
- func (c *Controller) UpdateEnableSignup(ctx context.Context, enableSignup bool) error
- func (c *Controller) UpdateRegistry(ctx context.Context, in *InstanceRegistryUpdateInput) (*types.Instance, error)
- func (c *Controller) UpdateSuperAdmin(ctx context.Context, superAdmin *int64) error
- func (c *Controller) UpdateWithServer(ctx context.Context, server *types.Server) (*types.Instance, error)
- type InstanceRegistryUpdateInput
- type InstanceUpdateInput
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, 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) 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 ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.