config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (config.Config[Config], error)

Types

type Config

type Config struct {
	Address      string
	Port         int
	DBConfig     DBConfig
	PipelineConf PipelineConf
	Runners      map[string]Runner
}

type DBConfig

type DBConfig struct {
	Address  string
	Port     int
	Username string
	Password string
	Name     string
}

type MountConf

type MountConf struct {
	Type   MountType
	Source string
}

type MountType

type MountType string
const (
	Bind   MountType = "bind"
	Volume           = "volume"
)

type PipelineConf

type PipelineConf struct {
	AccessURL     string  // URL that the pipeline runner can access the server at
	DockerNetwork *string // Name of the docker network that should be assigned to the pipeline script runner
	WorkingDir    string
	MountConf     MountConf // This script describes how to mount WorkingDir into the pipeline executor container
}

type Runner

type Runner struct {
	Secret string
}

Jump to

Keyboard shortcuts

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