config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildK8sDeploy

func BuildK8sDeploy(c *Config) error

func BuildLocal

func BuildLocal(buildVersion string, cfg *Config) error

Types

type Config

type Config struct {
	Local
	K8sDeploy
}

func Build

func Build(buildVersion string) (*Config, error)

type K8sDeploy

type K8sDeploy struct {
	APIAddress    string `env:"API_ADDRESS" envDefault:"https://api.k8sdeploy.dev/v1"`
	SocketAddress string `env:"SOCKET_ADDRESS" envDefault:"https://sockets.chewedfeed.com"`
	Key           string `env:"K8SDEPLOY_API_KEY" envDefault:""`
	Secret        string `env:"K8SDEPLOY_API_SECRET" envDefault:""`
	CompanyID     string `env:"K8SDEPLOY_COMPANY_ID" envDefault:""`
}

type Local

type Local struct {
	KeepLocal    bool `env:"LOCAL_ONLY" envDefault:"false" json:"keep_local,omitempty"`
	Development  bool `env:"DEVELOPMENT" envDefault:"false" json:"development,omitempty"`
	HTTPPort     int  `env:"HTTP_PORT" envDefault:"3000" json:"port,omitempty"`
	SelfUpdate   bool `env:"SELF_UPDATE" envDefault:"true" json:"self_update,omitempty"`
	BuildVersion string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL