Movatterモバイル変換


[0]ホーム

URL:


dynamicparameters

package
v2.28.4Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License:AGPL-3.0Imports:21Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoProvisionersMatched =xerrors.New("no provisioners matched")

Functions

funcGetModuleFiles

func GetModuleFiles() map[string][]byte

GetModuleFiles returns a map of module files to be used with ExtraFiles

funcTemplateContent

func TemplateContent() (string,error)

funcTemplateTarDataadded inv2.28.0

func TemplateTarData() ([]byte,error)

Types

typeConfig

type Config struct {TemplateVersionuuid.UUID `json:"template_version"`Metrics           *Metrics  `json:"-"`MetricLabelValues []string  `json:"metric_label_values"`}

typeMetrics

type Metrics struct {LatencyInitialResponseSecondsprometheus.HistogramVecLatencyChangeResponseSecondsprometheus.HistogramVec}

funcNewMetrics

func NewMetrics(regprometheus.Registerer, labelNames ...string) *Metrics

typePartitionadded inv2.28.0

type Partition struct {TemplateVersioncodersdk.TemplateVersionConcurrentEvaluationsint}

funcSetupPartitionsadded inv2.28.0

func SetupPartitions(ctxcontext.Context, clientSDKForDynamicParametersSetup,orgIDuuid.UUID, templateNamestring, provisionerTags map[string]string,numEvalsint64,loggerslog.Logger,) ([]Partition,error)

typeProvisionerJobUnexpectedStatusErroradded inv2.28.0

type ProvisionerJobUnexpectedStatusError struct {TemplateVersionIDuuid.UUIDStatuscodersdk.ProvisionerJobStatusJobErrorstring}

func (ProvisionerJobUnexpectedStatusError)Erroradded inv2.28.0

typeRunner

type Runner struct {// contains filtered or unexported fields}

funcNewRunner

func NewRunner(client *codersdk.Client, cfgConfig) *Runner

func (*Runner)Run

func (r *Runner) Run(ctxcontext.Context, _string, logsio.Writer) (retErrerror)

Run executes the dynamic parameters test, which:

1. connects to the dynamic parameters stream2. waits for the initial response3. sends a change request4. waits for the change response5. closes the stream

typeSDKForDynamicParametersSetupadded inv2.28.0

type SDKForDynamicParametersSetup interface {TemplateByName(ctxcontext.Context, orgIDuuid.UUID, templateNamestring) (codersdk.Template,error)CreateTemplate(ctxcontext.Context, orgIDuuid.UUID, createReqcodersdk.CreateTemplateRequest) (codersdk.Template,error)CreateTemplateVersion(ctxcontext.Context, orgIDuuid.UUID, createReqcodersdk.CreateTemplateVersionRequest) (codersdk.TemplateVersion,error)Upload(ctxcontext.Context, contentTypestring, readerio.Reader) (codersdk.UploadResponse,error)TemplateVersion(ctxcontext.Context, versionIDuuid.UUID) (codersdk.TemplateVersion,error)}

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