config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 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 {
	IdleTimeout       int `yaml:"idleTimeout"`
	ReadTimeout       int `yaml:"readTimeout"`
	ReadHeaderTimeout int `yaml:"readHeaderTimeout"`
	WriteTimeout      int `yaml:"writeTimeout"`

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

	InternalFQDN string `yaml:"internalFQDN"`
	InternalPort int    `yaml:"internalPort"`

	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"`
	List         List         `yaml:"list"`
}

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"`
	ExternalLogCache ExtenalLogCache `yaml:"externalLogCache"`
	K8SClient        K8SClientConfig `yaml:"k8sClient"`
	SecurityGroups   SecurityGroups  `yaml:"securityGroups"`
}

type ExtenalLogCache added in v0.15.0

type ExtenalLogCache struct {
	Enabled               bool   `yaml:"enabled"`
	URL                   string `yaml:"url"`
	TrustInsecureLogCache bool   `yaml:"trustInsecureLogCache"`
}

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 K8SClientConfig added in v0.15.0

type K8SClientConfig struct {
	QPS   float32 `yaml:"qps"`
	Burst int     `yaml:"burst"`
}

type List added in v0.16.0

type List struct {
	DefaultPageSize int `yaml:"defaultPageSize"`
}

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 SecurityGroups added in v0.16.0

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

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