Movatterモバイル変換


[0]ホーム

URL:


dynamicparameters

package
v2.24.2Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License:AGPL-3.0Imports:23Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTemplateVersionNotReady =xerrors.New("template version job not finished")

Functions

funcProvisionerVersionSupportsDynamicParameters

func ProvisionerVersionSupportsDynamicParameters(versionstring)bool

funcResolveParameters

func ResolveParameters(ctxcontext.Context,ownerIDuuid.UUID,rendererRenderer,firstBuildbool,previousValues []database.WorkspaceBuildParameter,buildValues []codersdk.WorkspaceBuildParameter,presetValues []database.TemplateVersionPresetParameter,) (map[string]string,error)

funcWithProvisionerJob

func WithProvisionerJob(jobdatabase.ProvisionerJob) func(r *loader)

funcWithTemplateVersion

func WithTemplateVersion(tvdatabase.TemplateVersion) func(r *loader)

funcWithTerraformValues

func WithTerraformValues(valuesdatabase.TemplateVersionTerraformValue) func(r *loader)

Types

typeRenderer

type Renderer interface {Render(ctxcontext.Context, ownerIDuuid.UUID, values map[string]string) (*preview.Output, hcl.Diagnostics)Close()}

Renderer is able to execute and evaluate terraform with the given inputs.It may use the database to fetch additional state, such as a user's groups,roles, etc. Therefore, it requires an authenticated `ctx`.

'Close()' **must** be called once the renderer is no longer needed.Forgetting to do so will result in a memory leak.

funcPrepare

func Prepare(ctxcontext.Context, dbdatabase.Store, cachefiles.FileAcquirer, versionIDuuid.UUID, options ...func(r *loader)) (Renderer,error)

Prepare is the entrypoint for this package. It loads the necessary objects &files from the database and returns a Renderer that can be used to render thetemplate version's parameters.

typeResolverError

type ResolverError struct {Diagnostics hcl.DiagnosticsParameter   map[string]hcl.Diagnostics}

func (*ResolverError)Error

func (e *ResolverError) Error()string

Error is a pretty bad format for these errors. Try to avoid using this.

func (*ResolverError)Extend

func (e *ResolverError) Extend(parameterNamestring, diag hcl.Diagnostics)

func (*ResolverError)HasError

func (e *ResolverError) HasError()bool

Source Files

View all Source files

Directories

PathSynopsis
Package rendermock is a generated GoMock package.
Package rendermock is a generated GoMock package.

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