Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KV ¶
KV is a generic key-value map.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines the http service.
func NewService ¶
func NewService(options ServiceOptions) (Service, error)
NewService initializes a new Service.
func (Service) Get ¶
func (s Service) Get(w http.ResponseWriter, r *http.Request)
Get renders the theme, the theme is a merge of the default theme, the base theme, and the branding theme.
func (Service) LogoReset ¶
func (s Service) LogoReset(w http.ResponseWriter, r *http.Request)
LogoReset implements the endpoint to reset the instance logo. The config will be changed back to use the embedded logo asset.
func (Service) LogoUpload ¶
func (s Service) LogoUpload(w http.ResponseWriter, r *http.Request)
LogoUpload implements the endpoint to upload a custom logo for the OpenCloud instance.
type ServiceOptions ¶
type ServiceOptions struct {
// contains filtered or unexported fields
}
ServiceOptions defines the options to configure the Service.
func (ServiceOptions) WithGatewaySelector ¶
func (o ServiceOptions) WithGatewaySelector(gws pool.Selectable[gateway.GatewayAPIClient]) ServiceOptions
WithGatewaySelector sets the gateway selector.
func (ServiceOptions) WithThemeFS ¶
func (o ServiceOptions) WithThemeFS(fSys *fsx.FallbackFS) ServiceOptions
WithThemeFS sets the theme filesystem.
Click to show internal directories.
Click to hide internal directories.