local

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

func New

func New(t *testing.T, opts ...Option) *Cluster

func (*Cluster) AdminServerAddress

func (c *Cluster) AdminServerAddress(context.Context, *testing.T) string

func (*Cluster) Close

func (c *Cluster) Close(ctx context.Context, t *testing.T)

func (*Cluster) Controller

func (c *Cluster) Controller() *controller.Controller

func (*Cluster) GetStorageNodeByNodeName

func (c *Cluster) GetStorageNodeByNodeName(t *testing.T, nodeName string) *storagenode.Node

func (*Cluster) MetadataRepositoryAddress

func (c *Cluster) MetadataRepositoryAddress(_ context.Context, t *testing.T) string

func (*Cluster) SetNumMetadataRepositories

func (c *Cluster) SetNumMetadataRepositories(_ context.Context, t *testing.T, desired int)

func (*Cluster) Setup

func (c *Cluster) Setup(_ context.Context, t *testing.T)

func (*Cluster) StartAdminServer

func (c *Cluster) StartAdminServer(_ context.Context, t *testing.T)

func (*Cluster) StartMetadataRepositoryNodes

func (c *Cluster) StartMetadataRepositoryNodes(ctx context.Context, t *testing.T, desired int)

func (*Cluster) StartStorageNode

func (c *Cluster) StartStorageNode(_ context.Context, t *testing.T, nodeName string) bool

func (*Cluster) StartStorageNodes

func (c *Cluster) StartStorageNodes(_ context.Context, t *testing.T, desired int)

func (*Cluster) StopAdminServer

func (c *Cluster) StopAdminServer(_ context.Context, t *testing.T)

func (*Cluster) StopMetadataRepositoryNodes

func (c *Cluster) StopMetadataRepositoryNodes(ctx context.Context, t *testing.T)

func (*Cluster) StopStorageNode

func (c *Cluster) StopStorageNode(_ context.Context, t *testing.T, snid types.StorageNodeID) (nodeName string)

func (*Cluster) StopStorageNodes

func (c *Cluster) StopStorageNodes(_ context.Context, t *testing.T)

func (*Cluster) String

func (c *Cluster) String() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAdminExecutable

func WithAdminExecutable(executable string) Option

func WithCommonConfig

func WithCommonConfig(commonConfig cluster.Config) Option

func WithGRPCHealthProbeExecutable

func WithGRPCHealthProbeExecutable(executable string) Option

func WithMetadataRepositoryExecutable

func WithMetadataRepositoryExecutable(executable string) Option

func WithStorageNodeExecutable

func WithStorageNodeExecutable(executable string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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