config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogLevelFromPath added in v0.7.0

func GetLogLevelFromPath(path string) (zapcore.Level, error)

Types

type APIConfig

type APIConfig struct {
	InternalPort      int `yaml:"internalPort"`
	IdleTimeout       int `yaml:"idleTimeout"`
	ReadTimeout       int `yaml:"readTimeout"`
	ReadHeaderTimeout int `yaml:"readHeaderTimeout"`
	WriteTimeout      int `yaml:"writeTimeout"`

	ExternalFQDN string `yaml:"externalFQDN"`
	ExternalPort int    `yaml:"externalPort"`

	ServerURL string

	RootNamespace                            string                 `yaml:"rootNamespace"`
	BuilderName                              string                 `yaml:"builderName"`
	RunnerName                               string                 `yaml:"runnerName"`
	ContainerRepositoryPrefix                string                 `yaml:"containerRepositoryPrefix"`
	ContainerRegistryType                    string                 `yaml:"containerRegistryType"`
	PackageRegistrySecretNames               []string               `yaml:"packageRegistrySecretNames"`
	DefaultDomainName                        string                 `yaml:"defaultDomainName"`
	UserCertificateExpirationWarningDuration string                 `yaml:"userCertificateExpirationWarningDuration"`
	DefaultLifecycleConfig                   DefaultLifecycleConfig `yaml:"defaultLifecycleConfig"`

	RoleMappings map[string]Role `yaml:"roleMappings"`

	AuthProxyHost   string        `yaml:"authProxyHost"`
	AuthProxyCACert string        `yaml:"authProxyCACert"`
	LogLevel        zapcore.Level `yaml:"logLevel"`
}

func LoadFromPath

func LoadFromPath(path string) (*APIConfig, error)

func (*APIConfig) GenerateK8sClientConfig

func (c *APIConfig) GenerateK8sClientConfig(k8sClientConfig *rest.Config) *rest.Config

func (*APIConfig) GetUserCertificateDuration

func (c *APIConfig) GetUserCertificateDuration() time.Duration

type DefaultLifecycleConfig

type DefaultLifecycleConfig struct {
	Type            string `yaml:"type"`
	Stack           string `yaml:"stack"`
	StagingMemoryMB int    `yaml:"stagingMemoryMB"`
}

DefaultLifecycleConfig contains default values of the Lifecycle block of CFApps and Builds created by the Shim

type Role

type Role struct {
	Name      string    `yaml:"name"`
	Level     RoleLevel `yaml:"level"`
	Propagate bool      `yaml:"propagate"`
}

type RoleLevel added in v0.7.0

type RoleLevel string
const (
	OrgRole   RoleLevel = "org"
	SpaceRole RoleLevel = "space"
)

Jump to

Keyboard shortcuts

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