site
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¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcExtractOrReadBinFS¶added inv0.7.4
ExtractOrReadBinFS checks the provided fs for compressed coder binaries andextracts them into dest/bin if found. As a fallback, the provided FS ischecked for a /bin directory, if it is non-empty it is returned. Finallydest/bin is returned as a fallback allowing binaries to be manually placed indest (usually ${CODER_CACHE_DIRECTORY}/site/bin).
Returns a http.FileSystem that serves unpacked binaries, and a map of binaryname to SHA1 hash. The returned hash map may be incomplete or contain hashesfor missing files.
funcRenderStaticErrorPage¶added inv0.9.3
func RenderStaticErrorPage(rwhttp.ResponseWriter, r *http.Request, dataErrorPageData)
RenderStaticErrorPage renders the static error page. This is used by apprequests to avoid dependence on the dashboard but maintain the ability torender a friendly error page on subdomains.
funcShouldCacheFile¶added inv0.6.1
Types¶
typeErrorPageData¶added inv0.9.3
type ErrorPageData struct {Statusint// HideStatus will remove the status code from the page.HideStatusboolTitlestringDescriptionstringRetryEnabledboolDashboardURLstring}
ErrorPageData contains the variables that are found insite/static/error.html.
typeHandler¶added inv0.6.1
type Handler struct {AppearanceFetcher func(ctxcontext.Context) (codersdk.AppearanceConfig,error)// RegionsFetcher will attempt to fetch the more detailed WorkspaceProxy data, but will fall back to the// regions if the user does not have the correct permissions.RegionsFetcher func(ctxcontext.Context) (any,error)Entitlementsatomic.Pointer[codersdk.Entitlements]Experimentsatomic.Pointer[codersdk.Experiments]// contains filtered or unexported fields}