Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleGetConfig ¶
func HandleGetConfig(config *types.Config, sysCtrl *system.Controller) http.HandlerFunc
HandleGetConfig returns an http.HandlerFunc that processes an http.Request and returns a struct containing all system configs exposed to the users.
func HandleHealth ¶
func HandleHealth(w http.ResponseWriter, _ *http.Request)
HandleHealth writes a 200 OK status to the http.Response if the server is healthy.
func HandleVersion ¶
func HandleVersion(w http.ResponseWriter, _ *http.Request)
HandleVersion writes the server version number to the http.Response body in plain text.
Types ¶
type ConfigOutput ¶
type ConfigOutput struct {
UserSignupAllowed bool `json:"user_signup_allowed"`
PublicResourceCreationEnabled bool `json:"public_resource_creation_enabled"`
SSHEnabled bool `json:"ssh_enabled"`
GitspaceEnabled bool `json:"gitspace_enabled"`
ArtifactRegistryEnabled bool `json:"artifact_registry_enabled"`
UI UI `json:"ui"`
}
Click to show internal directories.
Click to hide internal directories.