transformer

package
v0.1442.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 21 Imported by: 3

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 CheckProtocol added in v0.1442.0

type CheckProtocol int
const (
	HTTPCheck CheckProtocol = iota
	TCPCheck
)

type Config added in v0.1442.0

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

type HealthcheckType added in v0.1442.0

type HealthcheckType int

type Option added in v0.1442.0

type Option func(*transformer)

func WithContainerProxy added in v0.1442.0

func WithContainerProxy(drainWait time.Duration) Option

func WithDeclarativeHealthchecks added in v0.1442.0

func WithDeclarativeHealthchecks() Option

func WithPostSetupHook added in v0.1442.0

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

func WithSidecarRootfs added in v0.1442.0

func WithSidecarRootfs(
	sidecarRootFS string,
) Option

type Transformer

type Transformer interface {
	StepsRunner(lager.Logger, executor.Container, garden.Container, log_streamer.LogStreamer, Config) (ifrit.Runner, chan steps.ReadinessState, error)
}

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