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) UpdateDNSConfig(ctx context.Context, in *InstanceUpdateDNSConfigInput) (*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) UpdateFQDN(ctx context.Context, server *types.Server, in *InstanceUpdateFQDNInput) (*types.Instance, error)
- func (c *Controller) UpdateRegistry(ctx context.Context, in *InstanceRegistryUpdateInput) (*types.Instance, error)
- func (c *Controller) UpdateScripts(ctx context.Context, in *InstanceUpdateScriptsInput) (*types.Instance, error)
- func (c *Controller) UpdateSuperAdmin(ctx context.Context, superAdmin *int64) error
- type InstanceRegistryUpdateInput
- type InstanceUpdateDNSConfigInput
- type InstanceUpdateFQDNInput
- type InstanceUpdateInput
- type InstanceUpdateScriptsInput
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) 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 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"`
}
Click to show internal directories.
Click to hide internal directories.