Movatterモバイル変換


[0]ホーム

URL:


features

package
v1.1.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License:Apache-2.0Imports:16Imported by:0

Details

Repository

github.com/coder/envbuilder

Links

Documentation

Index

Constants

View Source
const (TarLayerMediaType = "application/vnd.devcontainers.layer.v1+tar")

Variables

This section is empty.

Functions

This section is empty.

Types

typeOption

type Option struct {Typestring   `json:"type"`// "boolean" or "string"Proposals   []string `json:"proposals"`Enum        []string `json:"enum"`Defaultany      `json:"default"`// boolean or stringDescriptionstring   `json:"description"`}

typeSpec

type Spec struct {IDstring            `json:"id"`Versionstring            `json:"version"`Namestring            `json:"name"`Descriptionstring            `json:"description"`DocumentationURLstring            `json:"documentationURL"`LicenseURLstring            `json:"licenseURL"`Keywords         []string          `json:"keywords"`Options          map[string]Option `json:"options"`ContainerEnv     map[string]string `json:"containerEnv"`}

funcExtract

func Extract(fs billy.Filesystem, devcontainerDir, directory, referencestring) (*Spec,error)

Extract unpacks the feature from the image and returns theparsed specification.

func (*Spec)Compile

func (s *Spec) Compile(featureRef, featureName, featureDir, containerUser, remoteUserstring, useBuildContextsbool, options map[string]any) (string,string,error)

Extract unpacks the feature from the image and returns a set of linesthat should be appended to a Dockerfile to install the feature.

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