Documentation
¶
Overview ¶
Package v1 is a generated GoMock package.
Index ¶
- type ClientV1
- type CreateOption
- type MockNodeServiceClient
- func (m *MockNodeServiceClient) Connect(ctx context.Context, opts ...grpc.CallOption) (nodes.NodeService_ConnectClient, error)
- func (m *MockNodeServiceClient) Create(ctx context.Context, in *nodes.CreateRequest, opts ...grpc.CallOption) (*nodes.CreateResponse, error)
- func (m *MockNodeServiceClient) Delete(ctx context.Context, in *nodes.DeleteRequest, opts ...grpc.CallOption) (*nodes.DeleteResponse, error)
- func (m *MockNodeServiceClient) EXPECT() *MockNodeServiceClientMockRecorder
- func (m *MockNodeServiceClient) Forget(ctx context.Context, in *nodes.ForgetRequest, opts ...grpc.CallOption) (*nodes.ForgetResponse, error)
- func (m *MockNodeServiceClient) Get(ctx context.Context, in *nodes.GetRequest, opts ...grpc.CallOption) (*nodes.GetResponse, error)
- func (m *MockNodeServiceClient) Join(ctx context.Context, in *nodes.JoinRequest, opts ...grpc.CallOption) (*nodes.JoinResponse, error)
- func (m *MockNodeServiceClient) List(ctx context.Context, in *nodes.ListRequest, opts ...grpc.CallOption) (*nodes.ListResponse, error)
- func (m *MockNodeServiceClient) Patch(ctx context.Context, in *nodes.PatchRequest, opts ...grpc.CallOption) (*nodes.PatchResponse, error)
- func (m *MockNodeServiceClient) Update(ctx context.Context, in *nodes.UpdateRequest, opts ...grpc.CallOption) (*nodes.UpdateResponse, error)
- func (m *MockNodeServiceClient) UpdateStatus(ctx context.Context, in *nodes.UpdateStatusRequest, opts ...grpc.CallOption) (*nodes.UpdateStatusResponse, error)
- func (m *MockNodeServiceClient) Upgrade(ctx context.Context, in *nodes.UpgradeRequest, opts ...grpc.CallOption) (*nodes.UpgradeResponse, error)
- type MockNodeServiceClientMockRecorder
- func (mr *MockNodeServiceClientMockRecorder) Connect(ctx any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Create(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Forget(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Join(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) UpdateStatus(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeServiceClientMockRecorder) Upgrade(ctx, in any, opts ...any) *gomock.Call
- type StatusClientV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientV1 ¶
type ClientV1 interface {
Status() StatusClientV1
Create(context.Context, *nodes.Node, ...CreateOption) error
Update(context.Context, string, *nodes.Node) error
Get(context.Context, string) (*nodes.Node, error)
Delete(context.Context, string) error
List(context.Context, ...labels.Label) ([]*nodes.Node, error)
Join(context.Context, *nodes.Node) error
Forget(context.Context, string) error
Connect(context.Context, string, chan *events.Event, chan error) error
Upgrade(context.Context, string, string) error
UpgradeAll(context.Context, map[string]string, string) 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 nodes.NodeServiceClient) CreateOption
func WithLogger ¶
func WithLogger(l logger.Logger) CreateOption
type MockNodeServiceClient ¶
type MockNodeServiceClient struct {
// contains filtered or unexported fields
}
MockNodeServiceClient is a mock of NodeServiceClient interface.
func NewMockNodeServiceClient ¶
func NewMockNodeServiceClient(ctrl *gomock.Controller) *MockNodeServiceClient
NewMockNodeServiceClient creates a new mock instance.
func (*MockNodeServiceClient) Connect ¶
func (m *MockNodeServiceClient) Connect(ctx context.Context, opts ...grpc.CallOption) (nodes.NodeService_ConnectClient, error)
Connect mocks base method.
func (*MockNodeServiceClient) Create ¶
func (m *MockNodeServiceClient) Create(ctx context.Context, in *nodes.CreateRequest, opts ...grpc.CallOption) (*nodes.CreateResponse, error)
Create mocks base method.
func (*MockNodeServiceClient) Delete ¶
func (m *MockNodeServiceClient) Delete(ctx context.Context, in *nodes.DeleteRequest, opts ...grpc.CallOption) (*nodes.DeleteResponse, error)
Delete mocks base method.
func (*MockNodeServiceClient) EXPECT ¶
func (m *MockNodeServiceClient) EXPECT() *MockNodeServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeServiceClient) Forget ¶
func (m *MockNodeServiceClient) Forget(ctx context.Context, in *nodes.ForgetRequest, opts ...grpc.CallOption) (*nodes.ForgetResponse, error)
Forget mocks base method.
func (*MockNodeServiceClient) Get ¶
func (m *MockNodeServiceClient) Get(ctx context.Context, in *nodes.GetRequest, opts ...grpc.CallOption) (*nodes.GetResponse, error)
Get mocks base method.
func (*MockNodeServiceClient) Join ¶
func (m *MockNodeServiceClient) Join(ctx context.Context, in *nodes.JoinRequest, opts ...grpc.CallOption) (*nodes.JoinResponse, error)
Join mocks base method.
func (*MockNodeServiceClient) List ¶
func (m *MockNodeServiceClient) List(ctx context.Context, in *nodes.ListRequest, opts ...grpc.CallOption) (*nodes.ListResponse, error)
List mocks base method.
func (*MockNodeServiceClient) Patch ¶
func (m *MockNodeServiceClient) Patch(ctx context.Context, in *nodes.PatchRequest, opts ...grpc.CallOption) (*nodes.PatchResponse, error)
Patch mocks base method.
func (*MockNodeServiceClient) Update ¶
func (m *MockNodeServiceClient) Update(ctx context.Context, in *nodes.UpdateRequest, opts ...grpc.CallOption) (*nodes.UpdateResponse, error)
Update mocks base method.
func (*MockNodeServiceClient) UpdateStatus ¶
func (m *MockNodeServiceClient) UpdateStatus(ctx context.Context, in *nodes.UpdateStatusRequest, opts ...grpc.CallOption) (*nodes.UpdateStatusResponse, error)
UpdateStatus mocks base method.
func (*MockNodeServiceClient) Upgrade ¶
func (m *MockNodeServiceClient) Upgrade(ctx context.Context, in *nodes.UpgradeRequest, opts ...grpc.CallOption) (*nodes.UpgradeResponse, error)
Upgrade mocks base method.
type MockNodeServiceClientMockRecorder ¶
type MockNodeServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeServiceClientMockRecorder is the mock recorder for MockNodeServiceClient.
func (*MockNodeServiceClientMockRecorder) Connect ¶
func (mr *MockNodeServiceClientMockRecorder) Connect(ctx any, opts ...any) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockNodeServiceClientMockRecorder) Create ¶
func (mr *MockNodeServiceClientMockRecorder) Create(ctx, in any, opts ...any) *gomock.Call
Create indicates an expected call of Create.
func (*MockNodeServiceClientMockRecorder) Delete ¶
func (mr *MockNodeServiceClientMockRecorder) Delete(ctx, in any, opts ...any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockNodeServiceClientMockRecorder) Forget ¶
func (mr *MockNodeServiceClientMockRecorder) Forget(ctx, in any, opts ...any) *gomock.Call
Forget indicates an expected call of Forget.
func (*MockNodeServiceClientMockRecorder) Get ¶
func (mr *MockNodeServiceClientMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockNodeServiceClientMockRecorder) Join ¶
func (mr *MockNodeServiceClientMockRecorder) Join(ctx, in any, opts ...any) *gomock.Call
Join indicates an expected call of Join.
func (*MockNodeServiceClientMockRecorder) List ¶
func (mr *MockNodeServiceClientMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
List indicates an expected call of List.
func (*MockNodeServiceClientMockRecorder) Patch ¶
func (mr *MockNodeServiceClientMockRecorder) Patch(ctx, in any, opts ...any) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockNodeServiceClientMockRecorder) Update ¶
func (mr *MockNodeServiceClientMockRecorder) Update(ctx, in any, opts ...any) *gomock.Call
Update indicates an expected call of Update.
func (*MockNodeServiceClientMockRecorder) UpdateStatus ¶
func (mr *MockNodeServiceClientMockRecorder) UpdateStatus(ctx, in any, opts ...any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.