Movatterモバイル変換


[0]ホーム

URL:


x

package
v2.29.1Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License:AGPL-3.0Imports:16Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (// ReadmeFile is the location we look for to extract documentation from template versions.ReadmeFile = "README.md")

Variables

This section is empty.

Functions

This section is empty.

Types

typeLayout

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

funcEphemeralSessionDir

func EphemeralSessionDir(parentDir, sessIDstring)Layout

EphemeralSessionDir returns the directory name with mandatory prefix. Thesedirectories are created for each provisioning session and are meant to beephemeral.

funcSessionDir

func SessionDir(parentDir, sessIDstring, config *proto.Config)Layout

func (Layout)CleanStaleSessions

func (tdLayout) CleanStaleSessions(ctxcontext.Context, loggerslog.Logger, fsafero.Fs, nowtime.Time)error

CleanStaleSessions assumes this Layout is the latest active template version.Assuming that, any other template version directories found alongside it areconsidered inactive and can be removed. Inactive template versions should useephemeral TerraformDirectories.

func (Layout)Cleanup

func (tdLayout) Cleanup(ctxcontext.Context, loggerslog.Logger, fsafero.Fs)

func (Layout)ExtractArchive

func (tdLayout) ExtractArchive(ctxcontext.Context, loggerslog.Logger, fsafero.Fs, cfg *proto.Config)error

func (Layout)ModulesDirectory

func (tdLayout) ModulesDirectory()string

func (Layout)ModulesFilePath

func (tdLayout) ModulesFilePath()string

func (Layout)PlanFilePath

func (tdLayout) PlanFilePath()string

func (Layout)ReadmeFilePath

func (tdLayout) ReadmeFilePath()string

func (Layout)SelectWorkspace

func (tdLayout) SelectWorkspace(fsafero.Fs)error

SelectWorkspace writes the terraform workspace environment file, which acts as`terraform workspace select <name>`. It is quicker than using the cli command.More importantly this code can be written without changing the executorbehavior, which is nice encapsulation for this experiment.

func (Layout)StateFilePath

func (tdLayout) StateFilePath()string

func (Layout)StateSessionDirectory

func (tdLayout) StateSessionDirectory()string

StateSessionDirectory follows the same directory structure as Terraformworkspaces. All build specific state is stored within this directory.

These files should be cleaned up on exit. In the case of a failure, they willnot collide with other builds since each build uses a unique session ID.

func (Layout)TerraformLockFile

func (tdLayout) TerraformLockFile()string

func (Layout)TerraformMetadataDir

func (tdLayout) TerraformMetadataDir()string

func (Layout)WorkDirectory

func (tdLayout) WorkDirectory()string

func (Layout)WorkspaceEnvironmentFilePath

func (tdLayout) WorkspaceEnvironmentFilePath()string

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