configuration

package
v0.0.0-...-cb90f35 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GatewayConfigKey = "gatewayConfig"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildConfig

type BuildConfig struct {
	Url string
}

func (BuildConfig) GetEnqueueBuildUrl

func (b BuildConfig) GetEnqueueBuildUrl() string

func (BuildConfig) GetRepositoryBuilds

func (b BuildConfig) GetRepositoryBuilds() string

type IAMConfig

type IAMConfig struct {
	Url string
}

func (IAMConfig) GetDockerPasswordSetUrl

func (i IAMConfig) GetDockerPasswordSetUrl() string

type Options

type Options struct {
	Redis           redisconfig.RedisOptions
	OIDCConfig      auth.OIDCConfig
	DockerRegistry  registry.RegistryConfig
	CorsAllowedUrls []string
	SCMConfig
	BuildConfig
	IAMConfig
}

Options defines all options available to configure the Gateway server.

func GetGatewayConfigCtx

func GetGatewayConfigCtx(ctx context.Context) Options

func GetGatewayConfigReq

func GetGatewayConfigReq(r *http.Request) Options

func NewDefaultOptions

func NewDefaultOptions() *Options

NewDefaultOptions returns the default options

func ParseViperConfig

func ParseViperConfig() *Options

ParseViperConfig tries to map a viper configuration

type SCMConfig

type SCMConfig struct {
	Url string
}

func (SCMConfig) GetManualRegisterUrl

func (c SCMConfig) GetManualRegisterUrl() string

func (SCMConfig) GetOrganizationsUrl

func (c SCMConfig) GetOrganizationsUrl() string

func (SCMConfig) GetRepositoriesUrl

func (c SCMConfig) GetRepositoriesUrl(orgLogin string) string

Jump to

Keyboard shortcuts

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