placement

package
v1.12.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

Option is a function that configures the process.

func WithEnableTLS

func WithEnableTLS(enable bool) Option

func WithExecOptions

func WithExecOptions(execOptions ...exec.Option) Option

func WithHealthzPort

func WithHealthzPort(port int) Option

func WithID

func WithID(id string) Option

func WithInitialCluster

func WithInitialCluster(initialCluster string) Option

func WithInitialClusterPorts

func WithInitialClusterPorts(ports ...int) Option

func WithMetricsPort

func WithMetricsPort(port int) Option

func WithPort

func WithPort(port int) Option

func WithSentryAddress

func WithSentryAddress(sentryAddress string) Option

func WithTrustAnchorsFile

func WithTrustAnchorsFile(file string) Option

type Placement

type Placement struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, fopts ...Option) *Placement

func (*Placement) Cleanup

func (p *Placement) Cleanup(t *testing.T)

func (*Placement) HealthzPort

func (p *Placement) HealthzPort() int

func (*Placement) ID

func (p *Placement) ID() string

func (*Placement) InitialCluster

func (p *Placement) InitialCluster() string

func (*Placement) InitialClusterPorts

func (p *Placement) InitialClusterPorts() []int

func (*Placement) MetricsPort

func (p *Placement) MetricsPort() int

func (*Placement) Port

func (p *Placement) Port() int

func (*Placement) Run

func (p *Placement) Run(t *testing.T, ctx context.Context)

func (*Placement) WaitUntilRunning

func (p *Placement) WaitUntilRunning(t *testing.T, ctx context.Context)

Jump to

Keyboard shortcuts

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