Documentation ¶
Overview ¶
Package config implements structures to store Nixery's configuration at runtime as well as the logic for instantiating this configuration from the environment.
Copyright 2022 The TVL Contributors SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( GCS = iota FileSystem )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port string // Port on which to launch HTTP server Pkgs PkgSource // Source for Nix package set Timeout string // Timeout for a single Nix builder (seconds) WebDir string // Directory with static web assets PopUrl string // URL to the Nix package popularity count Backend Backend // Storage backend to use for Nixery }
Config holds the Nixery configuration options.
type NixChannel ¶
type NixChannel struct {
// contains filtered or unexported fields
}
type PkgSource ¶
type PkgSource interface { // Convert the package source into the representation required // for calling Nix. Render(tag string) (string, string) // Create a key by which builds for this source and image // combination can be cached. // // The empty string means that this value is not cacheable due // to the package source being a moving target (such as a // channel). CacheKey(pkgs []string, tag string) string }
PkgSource represents the source from which the Nix package set used by Nixery is imported. Users configure the source by setting one of the supported environment variables.
Click to show internal directories.
Click to hide internal directories.