runnerv1

package
v0.0.0-...-7fcfa66 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_runner_v1_runner_proto protoreflect.FileDescriptor
View Source
var RunnerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tstr.runner.v1.RunnerService",
	HandlerType: (*RunnerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterRunner",
			Handler:    _RunnerService_RegisterRunner_Handler,
		},
		{
			MethodName: "NextRun",
			Handler:    _RunnerService_NextRun_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubmitRun",
			Handler:       _RunnerService_SubmitRun_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "runner/v1/runner.proto",
}

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

Functions

func RegisterRunnerServiceServer

func RegisterRunnerServiceServer(s grpc.ServiceRegistrar, srv RunnerServiceServer)

Types

type NextRunRequest

type NextRunRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NextRunRequest) Descriptor deprecated

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

Deprecated: Use NextRunRequest.ProtoReflect.Descriptor instead.

func (*NextRunRequest) GetId

func (x *NextRunRequest) GetId() string

func (*NextRunRequest) ProtoMessage

func (*NextRunRequest) ProtoMessage()

func (*NextRunRequest) ProtoReflect

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

func (*NextRunRequest) Reset

func (x *NextRunRequest) Reset()

func (*NextRunRequest) String

func (x *NextRunRequest) String() string

func (*NextRunRequest) Validate

func (m *NextRunRequest) Validate() error

Validate checks the field values on NextRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NextRunRequest) ValidateAll

func (m *NextRunRequest) ValidateAll() error

ValidateAll checks the field values on NextRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NextRunRequestMultiError, or nil if none found.

type NextRunRequestMultiError

type NextRunRequestMultiError []error

NextRunRequestMultiError is an error wrapping multiple validation errors returned by NextRunRequest.ValidateAll() if the designated constraints aren't met.

func (NextRunRequestMultiError) AllErrors

func (m NextRunRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NextRunRequestMultiError) Error

func (m NextRunRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type NextRunRequestValidationError

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

NextRunRequestValidationError is the validation error returned by NextRunRequest.Validate if the designated constraints aren't met.

func (NextRunRequestValidationError) Cause

Cause function returns cause value.

func (NextRunRequestValidationError) Error

Error satisfies the builtin error interface

func (NextRunRequestValidationError) ErrorName

func (e NextRunRequestValidationError) ErrorName() string

ErrorName returns error name.

func (NextRunRequestValidationError) Field

Field function returns field value.

func (NextRunRequestValidationError) Key

Key function returns key value.

func (NextRunRequestValidationError) Reason

Reason function returns reason value.

type NextRunResponse

type NextRunResponse struct {
	Run *v1.Run `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"` // required
	// contains filtered or unexported fields
}

func (*NextRunResponse) Descriptor deprecated

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

Deprecated: Use NextRunResponse.ProtoReflect.Descriptor instead.

func (*NextRunResponse) GetRun

func (x *NextRunResponse) GetRun() *v1.Run

func (*NextRunResponse) ProtoMessage

func (*NextRunResponse) ProtoMessage()

func (*NextRunResponse) ProtoReflect

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

func (*NextRunResponse) Reset

func (x *NextRunResponse) Reset()

func (*NextRunResponse) String

func (x *NextRunResponse) String() string

func (*NextRunResponse) Validate

func (m *NextRunResponse) Validate() error

Validate checks the field values on NextRunResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NextRunResponse) ValidateAll

func (m *NextRunResponse) ValidateAll() error

ValidateAll checks the field values on NextRunResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NextRunResponseMultiError, or nil if none found.

type NextRunResponseMultiError

type NextRunResponseMultiError []error

NextRunResponseMultiError is an error wrapping multiple validation errors returned by NextRunResponse.ValidateAll() if the designated constraints aren't met.

func (NextRunResponseMultiError) AllErrors

func (m NextRunResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NextRunResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NextRunResponseValidationError

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

NextRunResponseValidationError is the validation error returned by NextRunResponse.Validate if the designated constraints aren't met.

func (NextRunResponseValidationError) Cause

Cause function returns cause value.

func (NextRunResponseValidationError) Error

Error satisfies the builtin error interface

func (NextRunResponseValidationError) ErrorName

func (e NextRunResponseValidationError) ErrorName() string

ErrorName returns error name.

func (NextRunResponseValidationError) Field

Field function returns field value.

func (NextRunResponseValidationError) Key

Key function returns key value.

func (NextRunResponseValidationError) Reason

Reason function returns reason value.

type RegisterRunnerRequest

type RegisterRunnerRequest struct {
	Name                     string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AcceptTestLabelSelectors map[string]string `` /* 225-byte string literal not displayed */
	RejectTestLabelSelectors map[string]string `` /* 225-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RegisterRunnerRequest) Descriptor deprecated

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

Deprecated: Use RegisterRunnerRequest.ProtoReflect.Descriptor instead.

func (*RegisterRunnerRequest) GetAcceptTestLabelSelectors

func (x *RegisterRunnerRequest) GetAcceptTestLabelSelectors() map[string]string

func (*RegisterRunnerRequest) GetName

func (x *RegisterRunnerRequest) GetName() string

func (*RegisterRunnerRequest) GetRejectTestLabelSelectors

func (x *RegisterRunnerRequest) GetRejectTestLabelSelectors() map[string]string

func (*RegisterRunnerRequest) ProtoMessage

func (*RegisterRunnerRequest) ProtoMessage()

func (*RegisterRunnerRequest) ProtoReflect

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

func (*RegisterRunnerRequest) Reset

func (x *RegisterRunnerRequest) Reset()

func (*RegisterRunnerRequest) String

func (x *RegisterRunnerRequest) String() string

func (*RegisterRunnerRequest) Validate

func (m *RegisterRunnerRequest) Validate() error

Validate checks the field values on RegisterRunnerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterRunnerRequest) ValidateAll

func (m *RegisterRunnerRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRunnerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRunnerRequestMultiError, or nil if none found.

type RegisterRunnerRequestMultiError

type RegisterRunnerRequestMultiError []error

RegisterRunnerRequestMultiError is an error wrapping multiple validation errors returned by RegisterRunnerRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRunnerRequestMultiError) AllErrors

func (m RegisterRunnerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRunnerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRunnerRequestValidationError

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

RegisterRunnerRequestValidationError is the validation error returned by RegisterRunnerRequest.Validate if the designated constraints aren't met.

func (RegisterRunnerRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRunnerRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRunnerRequestValidationError) ErrorName

ErrorName returns error name.

func (RegisterRunnerRequestValidationError) Field

Field function returns field value.

func (RegisterRunnerRequestValidationError) Key

Key function returns key value.

func (RegisterRunnerRequestValidationError) Reason

Reason function returns reason value.

type RegisterRunnerResponse

type RegisterRunnerResponse struct {
	Runner *v1.Runner `protobuf:"bytes,1,opt,name=runner,proto3" json:"runner,omitempty"` // required
	// contains filtered or unexported fields
}

func (*RegisterRunnerResponse) Descriptor deprecated

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

Deprecated: Use RegisterRunnerResponse.ProtoReflect.Descriptor instead.

func (*RegisterRunnerResponse) GetRunner

func (x *RegisterRunnerResponse) GetRunner() *v1.Runner

func (*RegisterRunnerResponse) ProtoMessage

func (*RegisterRunnerResponse) ProtoMessage()

func (*RegisterRunnerResponse) ProtoReflect

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

func (*RegisterRunnerResponse) Reset

func (x *RegisterRunnerResponse) Reset()

func (*RegisterRunnerResponse) String

func (x *RegisterRunnerResponse) String() string

func (*RegisterRunnerResponse) Validate

func (m *RegisterRunnerResponse) Validate() error

Validate checks the field values on RegisterRunnerResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterRunnerResponse) ValidateAll

func (m *RegisterRunnerResponse) ValidateAll() error

ValidateAll checks the field values on RegisterRunnerResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRunnerResponseMultiError, or nil if none found.

type RegisterRunnerResponseMultiError

type RegisterRunnerResponseMultiError []error

RegisterRunnerResponseMultiError is an error wrapping multiple validation errors returned by RegisterRunnerResponse.ValidateAll() if the designated constraints aren't met.

func (RegisterRunnerResponseMultiError) AllErrors

func (m RegisterRunnerResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRunnerResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRunnerResponseValidationError

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

RegisterRunnerResponseValidationError is the validation error returned by RegisterRunnerResponse.Validate if the designated constraints aren't met.

func (RegisterRunnerResponseValidationError) Cause

Cause function returns cause value.

func (RegisterRunnerResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterRunnerResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterRunnerResponseValidationError) Field

Field function returns field value.

func (RegisterRunnerResponseValidationError) Key

Key function returns key value.

func (RegisterRunnerResponseValidationError) Reason

Reason function returns reason value.

type RunnerServiceClient

type RunnerServiceClient interface {
	RegisterRunner(ctx context.Context, in *RegisterRunnerRequest, opts ...grpc.CallOption) (*RegisterRunnerResponse, error)
	NextRun(ctx context.Context, in *NextRunRequest, opts ...grpc.CallOption) (*NextRunResponse, error)
	SubmitRun(ctx context.Context, opts ...grpc.CallOption) (RunnerService_SubmitRunClient, error)
}

RunnerServiceClient is the client API for RunnerService 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 RunnerServiceServer

type RunnerServiceServer interface {
	RegisterRunner(context.Context, *RegisterRunnerRequest) (*RegisterRunnerResponse, error)
	NextRun(context.Context, *NextRunRequest) (*NextRunResponse, error)
	SubmitRun(RunnerService_SubmitRunServer) error
	// contains filtered or unexported methods
}

RunnerServiceServer is the server API for RunnerService service. All implementations must embed UnimplementedRunnerServiceServer for forward compatibility

type RunnerService_SubmitRunClient

type RunnerService_SubmitRunClient interface {
	Send(*SubmitRunRequest) error
	CloseAndRecv() (*SubmitRunResponse, error)
	grpc.ClientStream
}

type RunnerService_SubmitRunServer

type RunnerService_SubmitRunServer interface {
	SendAndClose(*SubmitRunResponse) error
	Recv() (*SubmitRunRequest, error)
	grpc.ServerStream
}

type SubmitRunRequest

type SubmitRunRequest struct {
	Id         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RunId      string                 `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	Result     v1.Run_Result          `protobuf:"varint,3,opt,name=result,proto3,enum=tstr.common.v1.Run_Result" json:"result,omitempty"`
	Logs       []*v1.Run_Log          `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"`
	ResultData map[string]string      `` /* 179-byte string literal not displayed */
	StartedAt  *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitRunRequest) Descriptor deprecated

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

Deprecated: Use SubmitRunRequest.ProtoReflect.Descriptor instead.

func (*SubmitRunRequest) GetFinishedAt

func (x *SubmitRunRequest) GetFinishedAt() *timestamppb.Timestamp

func (*SubmitRunRequest) GetId

func (x *SubmitRunRequest) GetId() string

func (*SubmitRunRequest) GetLogs

func (x *SubmitRunRequest) GetLogs() []*v1.Run_Log

func (*SubmitRunRequest) GetResult

func (x *SubmitRunRequest) GetResult() v1.Run_Result

func (*SubmitRunRequest) GetResultData

func (x *SubmitRunRequest) GetResultData() map[string]string

func (*SubmitRunRequest) GetRunId

func (x *SubmitRunRequest) GetRunId() string

func (*SubmitRunRequest) GetStartedAt

func (x *SubmitRunRequest) GetStartedAt() *timestamppb.Timestamp

func (*SubmitRunRequest) ProtoMessage

func (*SubmitRunRequest) ProtoMessage()

func (*SubmitRunRequest) ProtoReflect

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

func (*SubmitRunRequest) Reset

func (x *SubmitRunRequest) Reset()

func (*SubmitRunRequest) String

func (x *SubmitRunRequest) String() string

func (*SubmitRunRequest) Validate

func (m *SubmitRunRequest) Validate() error

Validate checks the field values on SubmitRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubmitRunRequest) ValidateAll

func (m *SubmitRunRequest) ValidateAll() error

ValidateAll checks the field values on SubmitRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubmitRunRequestMultiError, or nil if none found.

type SubmitRunRequestMultiError

type SubmitRunRequestMultiError []error

SubmitRunRequestMultiError is an error wrapping multiple validation errors returned by SubmitRunRequest.ValidateAll() if the designated constraints aren't met.

func (SubmitRunRequestMultiError) AllErrors

func (m SubmitRunRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubmitRunRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SubmitRunRequestValidationError

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

SubmitRunRequestValidationError is the validation error returned by SubmitRunRequest.Validate if the designated constraints aren't met.

func (SubmitRunRequestValidationError) Cause

Cause function returns cause value.

func (SubmitRunRequestValidationError) Error

Error satisfies the builtin error interface

func (SubmitRunRequestValidationError) ErrorName

ErrorName returns error name.

func (SubmitRunRequestValidationError) Field

Field function returns field value.

func (SubmitRunRequestValidationError) Key

Key function returns key value.

func (SubmitRunRequestValidationError) Reason

Reason function returns reason value.

type SubmitRunResponse

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

func (*SubmitRunResponse) Descriptor deprecated

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

Deprecated: Use SubmitRunResponse.ProtoReflect.Descriptor instead.

func (*SubmitRunResponse) ProtoMessage

func (*SubmitRunResponse) ProtoMessage()

func (*SubmitRunResponse) ProtoReflect

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

func (*SubmitRunResponse) Reset

func (x *SubmitRunResponse) Reset()

func (*SubmitRunResponse) String

func (x *SubmitRunResponse) String() string

func (*SubmitRunResponse) Validate

func (m *SubmitRunResponse) Validate() error

Validate checks the field values on SubmitRunResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubmitRunResponse) ValidateAll

func (m *SubmitRunResponse) ValidateAll() error

ValidateAll checks the field values on SubmitRunResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubmitRunResponseMultiError, or nil if none found.

type SubmitRunResponseMultiError

type SubmitRunResponseMultiError []error

SubmitRunResponseMultiError is an error wrapping multiple validation errors returned by SubmitRunResponse.ValidateAll() if the designated constraints aren't met.

func (SubmitRunResponseMultiError) AllErrors

func (m SubmitRunResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubmitRunResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SubmitRunResponseValidationError

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

SubmitRunResponseValidationError is the validation error returned by SubmitRunResponse.Validate if the designated constraints aren't met.

func (SubmitRunResponseValidationError) Cause

Cause function returns cause value.

func (SubmitRunResponseValidationError) Error

Error satisfies the builtin error interface

func (SubmitRunResponseValidationError) ErrorName

ErrorName returns error name.

func (SubmitRunResponseValidationError) Field

Field function returns field value.

func (SubmitRunResponseValidationError) Key

Key function returns key value.

func (SubmitRunResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedRunnerServiceServer

type UnimplementedRunnerServiceServer struct {
}

UnimplementedRunnerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRunnerServiceServer) NextRun

func (UnimplementedRunnerServiceServer) RegisterRunner

func (UnimplementedRunnerServiceServer) SubmitRun

type UnsafeRunnerServiceServer

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

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

Jump to

Keyboard shortcuts

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