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(test *grpcv1.LoadTest, opts metav1.CreateOptions) (*grpcv1.LoadTest, error)
// Get fetches a test, given its name and any options.
Get(name string, opts metav1.GetOptions) (*grpcv1.LoadTest, error)
// List fetches all tests, given its options.
List(opts metav1.ListOptions) (*grpcv1.LoadTestList, error)
// Delete removes a new test resource, given its name.
Delete(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.
Click to show internal directories.
Click to hide internal directories.