Documentation
¶
Overview ¶
Package v1 is a generated GoMock package.
Index ¶
- Constants
- type ClientV1
- type CreateOption
- type MockTaskServiceClient
- func (m *MockTaskServiceClient) Create(ctx context.Context, in *tasks.CreateRequest, opts ...grpc.CallOption) (*tasks.CreateResponse, error)
- func (m *MockTaskServiceClient) Delete(ctx context.Context, in *tasks.DeleteRequest, opts ...grpc.CallOption) (*tasks.DeleteResponse, error)
- func (m *MockTaskServiceClient) EXPECT() *MockTaskServiceClientMockRecorder
- func (m *MockTaskServiceClient) Get(ctx context.Context, in *tasks.GetRequest, opts ...grpc.CallOption) (*tasks.GetResponse, error)
- func (m *MockTaskServiceClient) Kill(ctx context.Context, in *tasks.KillRequest, opts ...grpc.CallOption) (*tasks.KillResponse, error)
- func (m *MockTaskServiceClient) List(ctx context.Context, in *tasks.ListRequest, opts ...grpc.CallOption) (*tasks.ListResponse, error)
- func (m *MockTaskServiceClient) Patch(ctx context.Context, in *tasks.PatchRequest, opts ...grpc.CallOption) (*tasks.PatchResponse, error)
- func (m *MockTaskServiceClient) Start(ctx context.Context, in *tasks.StartRequest, opts ...grpc.CallOption) (*tasks.StartResponse, error)
- func (m *MockTaskServiceClient) Update(ctx context.Context, in *tasks.UpdateRequest, opts ...grpc.CallOption) (*tasks.UpdateResponse, error)
- func (m *MockTaskServiceClient) UpdateStatus(ctx context.Context, in *tasks.UpdateStatusRequest, opts ...grpc.CallOption) (*tasks.UpdateStatusResponse, error)
- type MockTaskServiceClientMockRecorder
- func (mr *MockTaskServiceClientMockRecorder) Create(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) Kill(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) Start(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockTaskServiceClientMockRecorder) UpdateStatus(ctx, in any, opts ...any) *gomock.Call
- type StatusClientV1
Constants ¶
const ( TaskHealthHealthy = "healthy" TaskHealthUnhealthy = "unhealthy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientV1 ¶
type ClientV1 interface {
Status() StatusClientV1
Kill(context.Context, string) (*tasksv1.KillResponse, error)
Stop(context.Context, string) (*tasksv1.KillResponse, error)
Start(context.Context, string) (*tasksv1.StartResponse, error)
Create(context.Context, *tasksv1.Task, ...CreateOption) error
Update(context.Context, string, *tasksv1.Task) error
Patch(context.Context, string, *tasksv1.Task) error
Get(context.Context, string) (*tasksv1.Task, error)
Delete(context.Context, string) error
List(context.Context, ...labels.Label) ([]*tasksv1.Task, error)
}
func NewClientV1 ¶
func NewClientV1(opts ...CreateOption) ClientV1
func NewClientV1WithConn ¶
func NewClientV1WithConn(conn *grpc.ClientConn, clientId string, opts ...CreateOption) ClientV1
type CreateOption ¶
type CreateOption func(c *clientV1)
func WithClient ¶
func WithClient(client tasksv1.TaskServiceClient) CreateOption
func WithEmitLabels ¶
func WithEmitLabels(l labels.Label) CreateOption
type MockTaskServiceClient ¶
type MockTaskServiceClient struct {
// contains filtered or unexported fields
}
MockTaskServiceClient is a mock of TaskServiceClient interface.
func NewMockTaskServiceClient ¶
func NewMockTaskServiceClient(ctrl *gomock.Controller) *MockTaskServiceClient
NewMockTaskServiceClient creates a new mock instance.
func (*MockTaskServiceClient) Create ¶
func (m *MockTaskServiceClient) Create(ctx context.Context, in *tasks.CreateRequest, opts ...grpc.CallOption) (*tasks.CreateResponse, error)
Create mocks base method.
func (*MockTaskServiceClient) Delete ¶
func (m *MockTaskServiceClient) Delete(ctx context.Context, in *tasks.DeleteRequest, opts ...grpc.CallOption) (*tasks.DeleteResponse, error)
Delete mocks base method.
func (*MockTaskServiceClient) EXPECT ¶
func (m *MockTaskServiceClient) EXPECT() *MockTaskServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskServiceClient) Get ¶
func (m *MockTaskServiceClient) Get(ctx context.Context, in *tasks.GetRequest, opts ...grpc.CallOption) (*tasks.GetResponse, error)
Get mocks base method.
func (*MockTaskServiceClient) Kill ¶
func (m *MockTaskServiceClient) Kill(ctx context.Context, in *tasks.KillRequest, opts ...grpc.CallOption) (*tasks.KillResponse, error)
Kill mocks base method.
func (*MockTaskServiceClient) List ¶
func (m *MockTaskServiceClient) List(ctx context.Context, in *tasks.ListRequest, opts ...grpc.CallOption) (*tasks.ListResponse, error)
List mocks base method.
func (*MockTaskServiceClient) Patch ¶
func (m *MockTaskServiceClient) Patch(ctx context.Context, in *tasks.PatchRequest, opts ...grpc.CallOption) (*tasks.PatchResponse, error)
Patch mocks base method.
func (*MockTaskServiceClient) Start ¶
func (m *MockTaskServiceClient) Start(ctx context.Context, in *tasks.StartRequest, opts ...grpc.CallOption) (*tasks.StartResponse, error)
Start mocks base method.
func (*MockTaskServiceClient) Update ¶
func (m *MockTaskServiceClient) Update(ctx context.Context, in *tasks.UpdateRequest, opts ...grpc.CallOption) (*tasks.UpdateResponse, error)
Update mocks base method.
func (*MockTaskServiceClient) UpdateStatus ¶
func (m *MockTaskServiceClient) UpdateStatus(ctx context.Context, in *tasks.UpdateStatusRequest, opts ...grpc.CallOption) (*tasks.UpdateStatusResponse, error)
UpdateStatus mocks base method.
type MockTaskServiceClientMockRecorder ¶
type MockTaskServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskServiceClientMockRecorder is the mock recorder for MockTaskServiceClient.
func (*MockTaskServiceClientMockRecorder) Create ¶
func (mr *MockTaskServiceClientMockRecorder) Create(ctx, in any, opts ...any) *gomock.Call
Create indicates an expected call of Create.
func (*MockTaskServiceClientMockRecorder) Delete ¶
func (mr *MockTaskServiceClientMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTaskServiceClientMockRecorder) Get ¶
func (mr *MockTaskServiceClientMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockTaskServiceClientMockRecorder) Kill ¶
func (mr *MockTaskServiceClientMockRecorder) Kill(ctx, in any, opts ...any) *gomock.Call
Kill indicates an expected call of Kill.
func (*MockTaskServiceClientMockRecorder) List ¶
func (mr *MockTaskServiceClientMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
List indicates an expected call of List.
func (*MockTaskServiceClientMockRecorder) Patch ¶
func (mr *MockTaskServiceClientMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockTaskServiceClientMockRecorder) Start ¶
func (mr *MockTaskServiceClientMockRecorder) Start(ctx, in any, opts ...any) *gomock.Call
Start indicates an expected call of Start.
func (*MockTaskServiceClientMockRecorder) Update ¶
func (mr *MockTaskServiceClientMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call
Update indicates an expected call of Update.
func (*MockTaskServiceClientMockRecorder) UpdateStatus ¶
func (mr *MockTaskServiceClientMockRecorder) UpdateStatus(ctx, in any, opts ...any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.