inertia: github.com/ubclaunchpad/inertia/daemon/inertiad/cfg Index | Files

package cfg

import "github.com/ubclaunchpad/inertia/daemon/inertiad/cfg"

Package cfg provides the daemon's core configuration

Index

Package Files

config.go doc.go

type Config Uses

type Config struct {
    // Directories
    ProjectDirectory string // "/app/host/inertia/project/"
    PersistDirectory string // "/app/host/inertia/persist"
    DataDirectory    string // "/app/host/inertia/data/"
    SecretsDirectory string // "/app/host/.inertia/"

    // Build tools
    DockerComposeVersion string // "docker/compose:${version}"

    WebhookSecret string
}

Config provides basic daemon configuration

func New Uses

func New() *Config

New creates a new daemon configuration from environment values

Package cfg imports 4 packages (graph) and is imported by 3 packages. Updated 2020-10-29. Refresh now. Tools for package owners.