transformer

package
v0.0.0-...-1f62bb7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultDeclarativeHealthcheckRequestTimeout = int(1 * time.Second / time.Millisecond) // this is just 1000, transformed eventually into a str: "1000ms" or equivalently "1s"
	HealthLogSource                             = "HEALTH"
)

Variables

View Source
var ErrNoCheck = errors.New("no check configured")
View Source
var HealthCheckDstPath string = filepath.Join(string(os.PathSeparator), "etc", "cf-assets", "healthcheck")

Functions

func NewTransformer

func NewTransformer(
	clock clock.Clock,
	cachedDownloader cacheddownloader.CachedDownloader,
	uploader uploader.Uploader,
	compressor compressor.Compressor,
	downloadLimiter chan struct{},
	uploadLimiter chan struct{},
	tempDir string,
	healthyMonitoringInterval time.Duration,
	unhealthyMonitoringInterval time.Duration,
	gracefulShutdownInterval time.Duration,
	healthCheckWorkPool *workpool.WorkPool,
	opts ...Option,
) *transformer

Types

type Config

type Config struct {
	ProxyTLSPorts     []uint16
	BindMounts        []garden.BindMount
	CreationStartTime time.Time
	MetronClient      loggingclient.IngressClient
}

type Option

type Option func(*transformer)

func WithContainerProxy

func WithContainerProxy(drainWait time.Duration) Option

func WithDeclarativeHealthChecks

func WithDeclarativeHealthChecks(timeout time.Duration) Option

func WithDeclarativeHealthcheckFailureMetrics

func WithDeclarativeHealthcheckFailureMetrics() Option

func WithPostSetupHook

func WithPostSetupHook(user string, hook []string) Option

func WithProxyLivenessChecks

func WithProxyLivenessChecks(interval time.Duration) Option

func WithSidecarRootfs

func WithSidecarRootfs(
	sidecarRootFS string,
) Option

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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