Movatterモバイル変換


[0]ホーム

URL:


coderd

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:89Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (PubsubEventLicenses = "licenses")
View Source
const TimeFormatHHMM = "15:04"

Variables

View Source
var Keys = map[string]ed25519.PublicKey{"2022-08-12":ed25519.PublicKey(key20220812)}
View Source
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

func New(ctxcontext.Context, options *Options) (_ *API, errerror)

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)Authorize

func (api *API) Authorize(r *http.Request, actionpolicy.Action, objectrbac.Objecter)bool

func (*API)Close

func (api *API) Close()error

func (*API)RequireFeatureMWadded inv2.14.0

func (api *API) RequireFeatureMW(featcodersdk.FeatureName) func(http.Handler)http.Handler

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

View all Source files

Directories

PathSynopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp