Documentation ¶
Index ¶
- type Option
- func WithEnableTLS(enable bool) Option
- func WithExecOptions(execOptions ...exec.Option) Option
- func WithHealthzPort(port int) Option
- func WithID(id string) Option
- func WithInitialCluster(initialCluster string) Option
- func WithInitialClusterPorts(ports ...int) Option
- func WithLogLevel(level string) Option
- func WithMaxAPILevel(val int) Option
- func WithMetadataEnabled(enabled bool) Option
- func WithMetricsPort(port int) Option
- func WithMinAPILevel(val int) Option
- func WithPort(port int) Option
- func WithSentryAddress(sentryAddress string) Option
- func WithTrustAnchorsFile(file string) Option
- type Placement
- func (p *Placement) Address() string
- func (p *Placement) AssertRegisterHostFails(t *testing.T, ctx context.Context, apiLevel int)
- func (p *Placement) CheckAPILevelInState(t require.TestingT, client *http.Client, expectedAPILevel int) (tableVersion int)
- func (p *Placement) Cleanup(t *testing.T)
- func (p *Placement) CurrentActorsAPILevel() int
- func (p *Placement) HealthzPort() int
- func (p *Placement) ID() string
- func (p *Placement) InitialCluster() string
- func (p *Placement) InitialClusterPorts() []int
- func (p *Placement) MetricsPort() int
- func (p *Placement) Port() int
- func (p *Placement) RegisterHost(t *testing.T, ctx context.Context, msg *placementv1pb.Host) chan *placementv1pb.PlacementTables
- func (p *Placement) RegisterHostWithMetadata(t *testing.T, parentCtx context.Context, msg *placementv1pb.Host, ...) chan *placementv1pb.PlacementTables
- func (p *Placement) Run(t *testing.T, ctx context.Context)
- func (p *Placement) WaitUntilRunning(t *testing.T, ctx context.Context)
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 WithExecOptions ¶
func WithHealthzPort ¶
func WithInitialCluster ¶
func WithInitialClusterPorts ¶
func WithLogLevel ¶ added in v1.13.0
func WithMaxAPILevel ¶ added in v1.13.0
func WithMetadataEnabled ¶ added in v1.13.0
func WithMetricsPort ¶
func WithMinAPILevel ¶ added in v1.13.0
func WithSentryAddress ¶
func WithTrustAnchorsFile ¶
type Placement ¶
type Placement struct {
// contains filtered or unexported fields
}
func (*Placement) AssertRegisterHostFails ¶ added in v1.13.0
AssertRegisterHostFails Expect the registration to fail with FailedPrecondition.
func (*Placement) CheckAPILevelInState ¶ added in v1.13.0
func (p *Placement) CheckAPILevelInState(t require.TestingT, client *http.Client, expectedAPILevel int) (tableVersion int)
CheckAPILevelInState Checks the API level reported in the state table matched.
func (*Placement) CurrentActorsAPILevel ¶ added in v1.13.0
func (*Placement) HealthzPort ¶
func (*Placement) InitialCluster ¶
func (*Placement) InitialClusterPorts ¶
func (*Placement) MetricsPort ¶
func (*Placement) RegisterHost ¶ added in v1.13.0
func (p *Placement) RegisterHost(t *testing.T, ctx context.Context, msg *placementv1pb.Host) chan *placementv1pb.PlacementTables
RegisterHost Registers a host with the placement service using default context metadata
func (*Placement) RegisterHostWithMetadata ¶ added in v1.13.0
func (p *Placement) RegisterHostWithMetadata(t *testing.T, parentCtx context.Context, msg *placementv1pb.Host, contextMetadata map[string]string) chan *placementv1pb.PlacementTables
Click to show internal directories.
Click to hide internal directories.