system

package
v0.0.0-...-4c964c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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"`
}

type UI

type UI struct {
	ShowPlugin bool `json:"show_plugin"`
}

Jump to

Keyboard shortcuts

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