coderdenttest
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¶
- Variables
- func AddFullLicense(t *testing.T, client *codersdk.Client) codersdk.License
- func AddLicense(t *testing.T, client *codersdk.Client, options LicenseOptions) codersdk.License
- func GenerateLicense(t *testing.T, options LicenseOptions) string
- func New(t *testing.T, options *Options) (*codersdk.Client, codersdk.CreateFirstUserResponse)
- func NewWithAPI(t *testing.T, options *Options) (*codersdk.Client, io.Closer, *coderd.API, codersdk.CreateFirstUserResponse)
- func NewWorkspaceProxy(t *testing.T, coderdAPI *coderd.API, owner *codersdk.Client, ...) *wsproxy.Server
- type LicenseOptions
- type Options
- type ProxyOptions
Constants¶
This section is empty.
Variables¶
var (Keys = map[string]ed25519.PublicKey{})
Functions¶
funcAddFullLicense¶added inv0.25.0
AddFullLicense generates a license with all features enabled.
funcAddLicense¶
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.
funcNewWithAPI¶
funcNewWorkspaceProxy¶added 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¶
typeProxyOptions¶added inv0.23.0
type ProxyOptions struct {NamestringExperimentscodersdk.ExperimentsTLSCertificates []tls.CertificateAppHostnamestringDisablePathAppsbool// ProxyURL is optionalProxyURL *url.URL}