Documentation
¶
Index ¶
- func GenerateConfigAttr(cfg []ConfigFiles) (*string, error)
- func GenerateFlake(fl Flake, wr io.Writer, conf *hcl2nix.Config) error
- func GenerateGoModule(fl *hcl2nix.GoModule, wr io.Writer) error
- func GenerateNpmApp(fl *hcl2nix.JsNpmApp, wr io.Writer) error
- func GenerateOCIAttr(artifacts []OCIArtifact) (*string, error)
- func GeneratePoetryApp(fl *hcl2nix.PoetryApp, wr io.Writer) error
- func GenerateRemoteFlake(fl RemoteFile, wr io.Writer) error
- func GenerateRustApp(fl *hcl2nix.RustApp, wr io.Writer) error
- type ConfigFiles
- type Flake
- type OCIArtifact
- type RemoteFile
- type RustApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConfigAttr ¶
func GenerateConfigAttr(cfg []ConfigFiles) (*string, error)
GenerateConfigAttr generates the Nix attribute set for config files
func GenerateFlake ¶
GenerateFlake generates default flake
func GenerateGoModule ¶
GenerateGoModule generates default flake
func GenerateNpmApp ¶
GenerateNpmApp generates default flake
func GenerateOCIAttr ¶
func GenerateOCIAttr(artifacts []OCIArtifact) (*string, error)
GenerateOCIAttr generates the Nix attribute set for oci artifacts
func GeneratePoetryApp ¶
GeneratePoetryApp generates default flake
func GenerateRemoteFlake ¶ added in v0.2.1
func GenerateRemoteFlake(fl RemoteFile, wr io.Writer) error
GenerateRemoteFlake generates a flake to fetch remote files
Types ¶
type ConfigFiles ¶
type ConfigFiles struct {
// Name of the config
Name string
// DestinationDir is the directory to copy config files to in the container
// This directory will be created in the root of the image.
// default: /
DestinationDir string
// Name of files to copy from root of project
Files []string
}
ConfigFiles holds config files to export
type Flake ¶
type Flake struct {
Description string
Language string
NixPackageRevisions []string
DevPackages map[string]string
RuntimePackages map[string]string
RustArguments RustApp
OCIAttribute *string
ConfigAttribute *string
IsBase bool
}
Flake holds flake parameters
type OCIArtifact ¶
type OCIArtifact struct {
Artifact string
Name string
Layers []string
Cmd []string
Entrypoint []string
EnvVars []string
ImportConfigs []string
ExposedPorts []string
Base bool
NixPackageRevisions []string
}
OCIArtifact holds parameters for OCI artifacts
type RemoteFile ¶ added in v0.2.1
type RemoteFile struct {
Name string
Version string
PlatformURLs map[string]string
PlatformHashes map[string]string
Binaries []string
}
RemoteFile holds remote flake parameters
type RustApp ¶
type RustApp struct {
WorkspaceSrc string
CrateName string
RustVersion string
RustToolChain string
RustChannel string
RustProfile string
ExtraRustComponents []string
Release bool
RootFeatures []string
FetchCrateAlternativeRegistry string
HostPlatformCPU string
HostPlatformFeatures []string
CargoUnstableFlags []string
RustcLinkFlags []string
RustcBuildFlags []string
}
RustApp is the representation of a Rust application
Click to show internal directories.
Click to hide internal directories.