coderd
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
const (PubsubEventLicenses = "licenses")
const TimeFormatHHMM = "15:04"
Variables¶
var SCIMAuditAdditionalFields = map[string]string{"automatic_actor": "coder","automatic_subsystem": "scim",}
Functions¶
This section is empty.
Types¶
typeAPI¶
type API struct {AGPL *coderd.API*Options// ProxyHealth checks the reachability of all workspace proxies.ProxyHealth *proxyhealth.ProxyHealth// contains filtered or unexported fields}
funcNew¶
New constructs an Enterprise coderd API instance.This handler is designed to wrap the AGPL Coder code andlayer Enterprise functionality on top as much as possible.
func (*API)RequireFeatureMW¶added inv2.14.0
typeOptions¶
type Options struct {*coderd.OptionsRBACboolAuditLoggingbool// Whether to block non-browser connections.BrowserOnlyboolSCIMAPIKey []byteExternalTokenEncryption []dbcrypt.Cipher// Used for high availability.ReplicaSyncUpdateIntervaltime.DurationReplicaErrorGracePeriodtime.DurationDERPServerRelayAddressstringDERPServerRegionIDint// Used for user quiet hours schedules.DefaultQuietHoursSchedulestring// cron schedule, if empty user quiet hours schedules are disabledEntitlementsUpdateIntervaltime.DurationProxyHealthIntervaltime.DurationLicenseKeys map[string]ed25519.PublicKey// optional pre-shared key for authentication of external provisioner daemonsProvisionerDaemonPSKstringCheckInactiveUsersCancelFunc func()}
typeSCIMUser¶
type SCIMUser struct {Schemas []string `json:"schemas"`IDstring `json:"id"`UserNamestring `json:"userName"`Name struct {GivenNamestring `json:"givenName"`FamilyNamestring `json:"familyName"`} `json:"name"`Emails []struct {Primarybool `json:"primary"`Valuestring `json:"value" format:"email"`Typestring `json:"type"`Displaystring `json:"display"`} `json:"emails"`// Active is a ptr to prevent the empty value from being interpreted as false.Active *bool `json:"active"`Groups []interface{} `json:"groups"`Meta struct {ResourceTypestring `json:"resourceType"`} `json:"meta"`}
We currently use our own struct instead of using the SCIM package. This wasdone mostly because the SCIM package was almost impossible to use. We onlyneed these fields, so it was much simpler to use our own struct. This wastested only with Okta.
Source Files¶
Directories¶
Path | Synopsis |
---|---|
Package httpmw contains middleware for HTTP handlers. | Package httpmw contains middleware for HTTP handlers. |
Package license provides the license parsing and validation logic for Coderd. | Package license provides the license parsing and validation logic for Coderd. |