{"modulePath":"github.com/coder/envbuilder","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package features\n\n## Constants\n\n```go\nconst (\n\tTarLayerMediaType = \"application/vnd.devcontainers.layer.v1+tar\"\n)\n```\n\n## Types\n\n```go\ntype Option struct {\n\tType        string   `json:\"type\"` // \"boolean\" or \"string\"\n\tProposals   []string `json:\"proposals\"`\n\tEnum        []string `json:\"enum\"`\n\tDefault     any      `json:\"default\"` // boolean or string\n\tDescription string   `json:\"description\"`\n}\n```\n\n```go\ntype Spec struct {\n\tID               string            `json:\"id\"`\n\tVersion          string            `json:\"version\"`\n\tName             string            `json:\"name\"`\n\tDescription      string            `json:\"description\"`\n\tDocumentationURL string            `json:\"documentationURL\"`\n\tLicenseURL       string            `json:\"licenseURL\"`\n\tKeywords         []string          `json:\"keywords\"`\n\tOptions          map[string]Option `json:\"options\"`\n\tContainerEnv     map[string]string `json:\"containerEnv\"`\n}\n```\n\n```go\nfunc Extract(fs billy.Filesystem, devcontainerDir, directory, reference string) (*Spec, error)\n```\nExtract unpacks the feature from the image and returns the parsed specification.\n\n```go\nfunc (s *Spec) Compile(featureRef, featureName, featureDir, containerUser, remoteUser string, useBuildContexts bool, options map[string]any) (string, string, error)\n```\nExtract unpacks the feature from the image and returns a set of lines that should be appended to a Dockerfile to install the feature.\n\n","path":"github.com/coder/envbuilder/devcontainer/features","name":"features","synopsis":"","isRedistributable":true}
