kurtosis_testsuite_rpc_api_bindings

package
v0.0.0-...-c512b83 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_testsuite_service_proto protoreflect.FileDescriptor
View Source
var TestSuiteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test_suite_api.TestSuiteService",
	HandlerType: (*TestSuiteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IsAvailable",
			Handler:    _TestSuiteService_IsAvailable_Handler,
		},
		{
			MethodName: "GetTestSuiteMetadata",
			Handler:    _TestSuiteService_GetTestSuiteMetadata_Handler,
		},
		{
			MethodName: "RegisterFilesArtifacts",
			Handler:    _TestSuiteService_RegisterFilesArtifacts_Handler,
		},
		{
			MethodName: "SetupTest",
			Handler:    _TestSuiteService_SetupTest_Handler,
		},
		{
			MethodName: "RunTest",
			Handler:    _TestSuiteService_RunTest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testsuite_service.proto",
}

TestSuiteService_ServiceDesc is the grpc.ServiceDesc for TestSuiteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTestSuiteServiceServer

func RegisterTestSuiteServiceServer(s grpc.ServiceRegistrar, srv TestSuiteServiceServer)

Types

type RegisterFilesArtifactsArgs

type RegisterFilesArtifactsArgs struct {
	TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"`
	// contains filtered or unexported fields
}

====================================================================================================

Register Files Artifacts

====================================================================================================

func (*RegisterFilesArtifactsArgs) Descriptor deprecated

func (*RegisterFilesArtifactsArgs) Descriptor() ([]byte, []int)

Deprecated: Use RegisterFilesArtifactsArgs.ProtoReflect.Descriptor instead.

func (*RegisterFilesArtifactsArgs) GetTestName

func (x *RegisterFilesArtifactsArgs) GetTestName() string

func (*RegisterFilesArtifactsArgs) ProtoMessage

func (*RegisterFilesArtifactsArgs) ProtoMessage()

func (*RegisterFilesArtifactsArgs) ProtoReflect

func (*RegisterFilesArtifactsArgs) Reset

func (x *RegisterFilesArtifactsArgs) Reset()

func (*RegisterFilesArtifactsArgs) String

func (x *RegisterFilesArtifactsArgs) String() string

type RunTestArgs

type RunTestArgs struct {
	TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"`
	// contains filtered or unexported fields
}

====================================================================================================

Run Test

====================================================================================================

func (*RunTestArgs) Descriptor deprecated

func (*RunTestArgs) Descriptor() ([]byte, []int)

Deprecated: Use RunTestArgs.ProtoReflect.Descriptor instead.

func (*RunTestArgs) GetTestName

func (x *RunTestArgs) GetTestName() string

func (*RunTestArgs) ProtoMessage

func (*RunTestArgs) ProtoMessage()

func (*RunTestArgs) ProtoReflect

func (x *RunTestArgs) ProtoReflect() protoreflect.Message

func (*RunTestArgs) Reset

func (x *RunTestArgs) Reset()

func (*RunTestArgs) String

func (x *RunTestArgs) String() string

type SetupTestArgs

type SetupTestArgs struct {
	TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"`
	// contains filtered or unexported fields
}

====================================================================================================

Setup Test

====================================================================================================

func (*SetupTestArgs) Descriptor deprecated

func (*SetupTestArgs) Descriptor() ([]byte, []int)

Deprecated: Use SetupTestArgs.ProtoReflect.Descriptor instead.

func (*SetupTestArgs) GetTestName

func (x *SetupTestArgs) GetTestName() string

func (*SetupTestArgs) ProtoMessage

func (*SetupTestArgs) ProtoMessage()

func (*SetupTestArgs) ProtoReflect

func (x *SetupTestArgs) ProtoReflect() protoreflect.Message

func (*SetupTestArgs) Reset

func (x *SetupTestArgs) Reset()

func (*SetupTestArgs) String

func (x *SetupTestArgs) String() string

type TestMetadata

type TestMetadata struct {
	IsPartitioningEnabled     bool   `` /* 127-byte string literal not displayed */
	TestSetupTimeoutInSeconds uint32 `` /* 143-byte string literal not displayed */
	TestRunTimeoutInSeconds   uint32 `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestMetadata) Descriptor deprecated

func (*TestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use TestMetadata.ProtoReflect.Descriptor instead.

func (*TestMetadata) GetIsPartitioningEnabled

func (x *TestMetadata) GetIsPartitioningEnabled() bool

func (*TestMetadata) GetTestRunTimeoutInSeconds

func (x *TestMetadata) GetTestRunTimeoutInSeconds() uint32

func (*TestMetadata) GetTestSetupTimeoutInSeconds

func (x *TestMetadata) GetTestSetupTimeoutInSeconds() uint32

func (*TestMetadata) ProtoMessage

func (*TestMetadata) ProtoMessage()

func (*TestMetadata) ProtoReflect

func (x *TestMetadata) ProtoReflect() protoreflect.Message

func (*TestMetadata) Reset

func (x *TestMetadata) Reset()

func (*TestMetadata) String

func (x *TestMetadata) String() string

type TestSuiteMetadata

type TestSuiteMetadata struct {

	// Mapping of testName -> testMetadata
	TestMetadata map[string]*TestMetadata `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

====================================================================================================

GetTestSuiteMetadata

====================================================================================================

func (*TestSuiteMetadata) Descriptor deprecated

func (*TestSuiteMetadata) Descriptor() ([]byte, []int)

Deprecated: Use TestSuiteMetadata.ProtoReflect.Descriptor instead.

func (*TestSuiteMetadata) GetTestMetadata

func (x *TestSuiteMetadata) GetTestMetadata() map[string]*TestMetadata

func (*TestSuiteMetadata) ProtoMessage

func (*TestSuiteMetadata) ProtoMessage()

func (*TestSuiteMetadata) ProtoReflect

func (x *TestSuiteMetadata) ProtoReflect() protoreflect.Message

func (*TestSuiteMetadata) Reset

func (x *TestSuiteMetadata) Reset()

func (*TestSuiteMetadata) String

func (x *TestSuiteMetadata) String() string

type TestSuiteServiceClient

type TestSuiteServiceClient interface {
	// Endpoint to verify the gRPC server is actually up before making any real calls
	IsAvailable(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetTestSuiteMetadata(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TestSuiteMetadata, error)
	// Will be called by the test initializer container, telling the testsuite container to register files artifacts
	//  so that they're available in the API container before the tests start running
	RegisterFilesArtifacts(ctx context.Context, in *RegisterFilesArtifactsArgs, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SetupTest(ctx context.Context, in *SetupTestArgs, opts ...grpc.CallOption) (*emptypb.Empty, error)
	RunTest(ctx context.Context, in *RunTestArgs, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TestSuiteServiceClient is the client API for TestSuiteService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TestSuiteServiceServer

type TestSuiteServiceServer interface {
	// Endpoint to verify the gRPC server is actually up before making any real calls
	IsAvailable(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	GetTestSuiteMetadata(context.Context, *emptypb.Empty) (*TestSuiteMetadata, error)
	// Will be called by the test initializer container, telling the testsuite container to register files artifacts
	//  so that they're available in the API container before the tests start running
	RegisterFilesArtifacts(context.Context, *RegisterFilesArtifactsArgs) (*emptypb.Empty, error)
	SetupTest(context.Context, *SetupTestArgs) (*emptypb.Empty, error)
	RunTest(context.Context, *RunTestArgs) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TestSuiteServiceServer is the server API for TestSuiteService service. All implementations must embed UnimplementedTestSuiteServiceServer for forward compatibility

type UnimplementedTestSuiteServiceServer

type UnimplementedTestSuiteServiceServer struct {
}

UnimplementedTestSuiteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestSuiteServiceServer) GetTestSuiteMetadata

func (UnimplementedTestSuiteServiceServer) IsAvailable

func (UnimplementedTestSuiteServiceServer) RegisterFilesArtifacts

func (UnimplementedTestSuiteServiceServer) RunTest

func (UnimplementedTestSuiteServiceServer) SetupTest

type UnsafeTestSuiteServiceServer

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

UnsafeTestSuiteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestSuiteServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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