v1

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCTestClientset

type GRPCTestClientset interface {
	// LoadTestV1 returns the load test interface, which provides operations on
	// version 1 load tests.
	LoadTestV1() LoadTestInterface
}

GRPCTestClientset provides methods to access custom Kubernetes clients for testing gRPC.

func NewForConfig

func NewForConfig(c *rest.Config) (GRPCTestClientset, error)

NewForConfig accepts a Kubernetes REST Client config and adds the appropriate group, version and serializers to handle requests regarding gRPC test resources.

type LoadTestGetter

type LoadTestGetter interface {
	// Create saves a new test resource.
	Create(ctx context.Context, test *grpcv1.LoadTest, opts metav1.CreateOptions) (*grpcv1.LoadTest, error)

	// Get fetches a test, given its name and any options.
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*grpcv1.LoadTest, error)

	// List fetches all tests, given its options.
	List(ctx context.Context, opts metav1.ListOptions) (*grpcv1.LoadTestList, error)

	// Delete removes a new test resource, given its name.
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
}

LoadTestGetter specifies methods for accessing or mutating load tests.

type LoadTestInterface

type LoadTestInterface interface {
	LoadTests(namespace string) LoadTestGetter
}

LoadTestInterface provides methods for accessing a LoadTestGetter when given a namespace.

Jump to

Keyboard shortcuts

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