configs

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = New()

Functions

This section is empty.

Types

type AzureBlobFlags added in v0.3.2

type AzureBlobFlags struct {
	// AccountName is the name of the Azure Blob storage account.
	AccountName string `envconfig:"BUILDER_AZURE_BLOB_ACCOUNT_NAME" default:""`
	// ContainerName is the name of the Azure Blob storage container.
	ContainerName string `envconfig:"BUILDER_AZURE_BLOB_CONTAINER_NAME" default:""`
	// Endpoint is the endpoint for the Azure Blob storage.
	Endpoint string `envconfig:"BUILDER_AZURE_BLOB_ENDPOINT" default:""`
	// CredentialsAccount is the account name for the Azure Blob storage credentials.
	CredentialsAccount string `envconfig:"BUILDER_AZURE_BLOB_CREDENTIALS_ACCOUNT" default:""`
	// CredentialsKey is the key for the Azure Blob storage credentials.
	CredentialsKey string `envconfig:"BUILDER_AZURE_BLOB_CREDENTIALS_KEY" default:""`
}

AzureBlobFlags contains the flags for the Azure Blob storage.

type Config

type Config struct {
	Flags *Flags
}

Config contains the configuration.

func New

func New() *Config

New returns a new instance of Config.

func (*Config) Cwd

func (c *Config) Cwd() (string, error)

Cwd returns the current working directory.

type DexFlags added in v0.3.0

type DexFlags struct {
	// Enabled is a flag to enable the Dex authentication provider.
	Enabled bool `envconfig:"BUILDER_DEX_ENABLED" default:"true"`
	// URL is the URL of the Dex authentication provider.
	URL string `envconfig:"BUILDER_DEX_URL" default:""`
	// ClientID is the client ID for the Dex authentication provider.
	ClientID string `envconfig:"BUILDER_DEX_CLIENT_ID" default:""`
	// ClientSecret is the client secret for the Dex authentication provider.
	ClientSecret string `envconfig:"BUILDER_DEX_CLIENT_SECRET" default:""`
	// CallbackURL is the callback URL for the Dex authentication provider.
	CallbackURL string `envconfig:"BUILDER_DEX_CALLBACK_URL" default:""`
	// LoginURL is the login URL for the Dex authentication provider.
	LoginURL string `envconfig:"BUILDER_DEX_LOGIN_URL" default:""`
}

DexFlags contains the flags for the Dex authentication provider.

type Flags

type Flags struct {
	// Addr is the address to listen on.
	Addr string `envconfig:"BUILDER_ADDR" default:":3000"`
	// Domain is the domain name for the builder.
	Domain string `envconfig:"BUILDER_DOMAIN" default:""`
	// OIDCIssuer is the OIDC issuer URL.
	OIDCIssuer string `envconfig:"BUILDER_OIDC_ISSUER" default:""`
	// OIDCAudience is the OIDC audience.
	OIDCAudience string `envconfig:"BUILDER_OIDC_AUDIENCE" default:""`
	// DexFlags contains the flags for the Dex authentication provider.
	DexFlags DexFlags
	// PostgresFlags contains the flags for the PostgreSQL database.
	PostgresFlags PostgresFlags
	// AzureBlobFlags contains the flags for the Azure Blob storage.
	AzureBlobFlags AzureBlobFlags
}

Flags contains the command line flags.

func NewFlags

func NewFlags() *Flags

NewFlags returns a new instance of Flags.

type PostgresFlags added in v0.3.0

type PostgresFlags struct {
	// Enabled is a flag to enable PostgreSQL.
	Enabled bool `envconfig:"BUILDER_POSTGRES_ENABLED" default:"true"`
	// Host is the host of the PostgreSQL database.
	Host string `envconfig:"BUILDER_POSTGRES_HOST" default:""`
	// Port is the port of the PostgreSQL database.
	Port int `envconfig:"BUILDER_POSTGRES_PORT" default:""`
	// Database is the name of the PostgreSQL database.
	Database string `envconfig:"BUILDER_POSTGRES_DATABASE" default:""`
	// User is the username for the PostgreSQL database.
	User string `envconfig:"BUILDER_POSTGRES_USER" default:""`
	// Password is the password for the PostgreSQL database.
	Password string `envconfig:"BUILDER_POSTGRES_PASSWORD" default:""`
}

PostgresFlags contains the flags for the PostgreSQL database.

Jump to

Keyboard shortcuts

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