Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoProvisionersMatched = xerrors.New("no provisioners matched")
Functions ¶
func GetModuleFiles ¶
GetModuleFiles returns a map of module files to be used with ExtraFiles
func TemplateContent ¶
func TemplateTarData ¶ added in v2.28.0
Types ¶
type Metrics ¶
type Metrics struct {
LatencyInitialResponseSeconds prometheus.HistogramVec
LatencyChangeResponseSeconds prometheus.HistogramVec
}
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer, labelNames ...string) *Metrics
type Partition ¶ added in v2.28.0
type Partition struct {
TemplateVersion codersdk.TemplateVersion
ConcurrentEvaluations int
}
type ProvisionerJobUnexpectedStatusError ¶ added in v2.28.0
type ProvisionerJobUnexpectedStatusError struct {
TemplateVersionID uuid.UUID
Status codersdk.ProvisionerJobStatus
JobError string
}
func (ProvisionerJobUnexpectedStatusError) Error ¶ added in v2.28.0
func (e ProvisionerJobUnexpectedStatusError) Error() string
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
type SDKForDynamicParametersSetup ¶ added in v2.28.0
type SDKForDynamicParametersSetup interface {
TemplateByName(ctx context.Context, orgID uuid.UUID, templateName string) (codersdk.Template, error)
CreateTemplate(ctx context.Context, orgID uuid.UUID, createReq codersdk.CreateTemplateRequest) (codersdk.Template, error)
CreateTemplateVersion(ctx context.Context, orgID uuid.UUID, createReq codersdk.CreateTemplateVersionRequest) (codersdk.TemplateVersion, error)
Upload(ctx context.Context, contentType string, reader io.Reader) (codersdk.UploadResponse, error)
TemplateVersion(ctx context.Context, versionID uuid.UUID) (codersdk.TemplateVersion, error)
}
Click to show internal directories.
Click to hide internal directories.