config

package
v0.0.0-...-c20e4a3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageS3         = "s3"
	StorageFileSystem = "filesystem"

	// NumberOfPkgNameLevels PkgName Levels (e.g. /npm/@username/package-name)
	NumberOfPkgNameLevels = 2
)

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(keyAndFallback ...string) string

Types

type ProjectConfigType

type ProjectConfigType struct {
	ListenAddress string
	DatabaseUrl   string
	AuthEndpoint  string
	RegistryHosts struct {
		Pypi      string
		Npm       string
		Container string
	}
	Storage struct {
		ActiveBackend  string
		FileSystemRoot string
		S3             struct {
			Region    string
			Bucket    string
			ApiKey    string
			ApiSecret string
			ApiHost   string
		}
	}
}

func Get

func Get() *ProjectConfigType

func (*ProjectConfigType) Init

func (c *ProjectConfigType) Init()

Jump to

Keyboard shortcuts

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