Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

coderdenttest

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:29Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

Functions

funcAddFullLicenseadded inv0.25.0

func AddFullLicense(t *testing.T, client *codersdk.Client)codersdk.License

AddFullLicense generates a license with all features enabled.

funcAddLicense

func AddLicense(t *testing.T, client *codersdk.Client, optionsLicenseOptions)codersdk.License

AddLicense generates a new license with the options provided and inserts it.

funcGenerateLicense

func GenerateLicense(t *testing.T, optionsLicenseOptions)string

GenerateLicense returns a signed JWT using the test key.

funcNew

New constructs a codersdk client connected to an in-memory Enterprise API instance.

funcNewWorkspaceProxyadded inv0.23.0

func NewWorkspaceProxy(t *testing.T, coderdAPI *coderd.API, owner *codersdk.Client, options *ProxyOptions) *wsproxy.Server

NewWorkspaceProxy will configure a wsproxy.Server with the given options.The new wsproxy will register itself with the given coderd.API instance.The first user owner client is required to create the wsproxy on the coderdapi server.

Types

typeLicenseOptions

type LicenseOptions struct {AccountTypestringAccountIDstringTrialboolAllFeaturesboolGraceAttime.TimeExpiresAttime.TimeFeatureslicense.Features}

typeOptions

type Options struct {*coderdtest.OptionsAuditLoggingboolBrowserOnlyboolEntitlementsUpdateIntervaltime.DurationSCIMAPIKey                  []byteUserWorkspaceQuotaintProxyHealthIntervaltime.DurationLicenseOptions              *LicenseOptionsNoDefaultQuietHoursScheduleboolDontAddLicenseboolDontAddFirstUserbool}

typeProxyOptionsadded inv0.23.0

type ProxyOptions struct {NamestringExperimentscodersdk.ExperimentsTLSCertificates []tls.CertificateAppHostnamestringDisablePathAppsbool// ProxyURL is optionalProxyURL *url.URL}

Source Files

View all Source files

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