podbuilder

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodBuilder

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

PodBuilder constructs pods for a test's driver, server and client.

func New

func New(defaults *config.Defaults, test *grpcv1.LoadTest) *PodBuilder

New creates a PodBuilder instance. It accepts and uses defaults and a test to predictably construct pods.

func (*PodBuilder) PodForClient

func (pb *PodBuilder) PodForClient(client *grpcv1.Client) (*corev1.Pod, error)

PodForClient accepts a pointer to a client and returns a pod for it.

func (*PodBuilder) PodForDriver

func (pb *PodBuilder) PodForDriver(driver *grpcv1.Driver) (*corev1.Pod, error)

PodForDriver accepts a pointer to a driver and returns a pod for it.

func (*PodBuilder) PodForServer

func (pb *PodBuilder) PodForServer(server *grpcv1.Server) (*corev1.Pod, error)

PodForServer accepts a pointer to a server and returns a pod for it.

Jump to

Keyboard shortcuts

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