config

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 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

	InfoConfig InfoConfig `yaml:"infoConfig"`

	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"`

	Experimental Experimental `yaml:"experimental"`
}

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 Experimental added in v0.14.0

type Experimental struct {
	ManagedServices ManagedServices `yaml:"managedServices"`
	UAA             UAA             `yaml:"uaa"`
}

type InfoConfig added in v0.12.0

type InfoConfig struct {
	Description           string                 `yaml:"description"`
	Name                  string                 `yaml:"name"`
	MinCLIVersion         string                 `yaml:"minCLIVersion"`
	RecommendedCLIVersion string                 `yaml:"recommendedCLIVersion"`
	Custom                map[string]interface{} `yaml:"custom"`
	SupportAddress        string                 `yaml:"supportAddress"`
}

type ManagedServices added in v0.14.0

type ManagedServices struct {
	Enabled bool `yaml:"enabled"`
}

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"
)

type UAA added in v0.14.0

type UAA struct {
	Enabled bool   `yaml:"enabled"`
	URL     string `yaml:"url"`
}

Jump to

Keyboard shortcuts

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