config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddr              = ":3000"
	DefaultActionsResultsURL = "https://results-receiver.actions.githubusercontent.com"
	DefaultTokenIssuer       = "https://token.actions.githubusercontent.com"
	DefaultTokenJWKSURL      = "https://token.actions.githubusercontent.com/.well-known/jwks"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	TokenIssuer         string
	TokenJWKSURL        string
	SkipTokenValidation bool
}

type CacheConfig

type CacheConfig struct {
	EnableDirectDownloads    bool
	DownloadURLSigningSecret string
	MergeConcurrency         int
}

type CleanupConfig

type CleanupConfig struct {
	Disabled           bool
	CacheOlderThanDays int
}

type Config

type Config struct {
	Server     ServerConfig
	Auth       AuthConfig
	DB         DBConfig
	Storage    StorageConfig
	Cache      CacheConfig
	Management ManagementConfig
	Cleanup    CleanupConfig
	Debug      bool
}

func Load

func Load() Config

type DBConfig

type DBConfig struct {
	Driver string

	SQLitePath string

	PostgresURL      string
	PostgresDatabase string
	PostgresHost     string
	PostgresPort     string
	PostgresUser     string
	PostgresPassword string

	MySQLDatabase string
	MySQLHost     string
	MySQLPort     string
	MySQLUser     string
	MySQLPassword string
}

type ManagementConfig

type ManagementConfig struct {
	APIKey string
}

type ServerConfig

type ServerConfig struct {
	Addr                     string
	APIBaseURL               string
	DefaultActionsResultsURL string
}

type StorageConfig

type StorageConfig struct {
	Driver string

	FilesystemPath string

	S3Bucket         string
	S3Region         string
	S3EndpointURL    string
	S3ForcePathStyle bool
	S3KeyPrefix      string
}

Jump to

Keyboard shortcuts

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