Documentation ¶
Index ¶
- Variables
- 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
- func NewWithAPI(t *testing.T, options *Options) (*codersdk.Client, io.Closer, *coderd.API)
- type LicenseOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Keys = map[string]ed25519.PublicKey{}
)
Functions ¶
func AddLicense ¶
AddLicense generates a new license with the options provided and inserts it.
func GenerateLicense ¶
func GenerateLicense(t *testing.T, options LicenseOptions) string
GenerateLicense returns a signed JWT using the test key.
Types ¶
type LicenseOptions ¶
Click to show internal directories.
Click to hide internal directories.