mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
Fixes https://github.com/coder/coder/issues/16268 - Adds `/api/v2/workspaceagents/:id/containers` coderd endpoint that allows listing containers visible to the agent. Optional filtering by labels is supported. - Adds go tools to the `coder-dylib` CI step so we can generate mocks if needed
58 lines
1.5 KiB
Go
Generated
58 lines
1.5 KiB
Go
Generated
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: .. (interfaces: Lister)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination ./acmock.go -package acmock .. Lister
|
|
//
|
|
|
|
// Package acmock is a generated GoMock package.
|
|
package acmock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
codersdk "github.com/coder/coder/v2/codersdk"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockLister is a mock of Lister interface.
|
|
type MockLister struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockListerMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockListerMockRecorder is the mock recorder for MockLister.
|
|
type MockListerMockRecorder struct {
|
|
mock *MockLister
|
|
}
|
|
|
|
// NewMockLister creates a new mock instance.
|
|
func NewMockLister(ctrl *gomock.Controller) *MockLister {
|
|
mock := &MockLister{ctrl: ctrl}
|
|
mock.recorder = &MockListerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockLister) EXPECT() *MockListerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// List mocks base method.
|
|
func (m *MockLister) List(ctx context.Context) (codersdk.WorkspaceAgentListContainersResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "List", ctx)
|
|
ret0, _ := ret[0].(codersdk.WorkspaceAgentListContainersResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// List indicates an expected call of List.
|
|
func (mr *MockListerMockRecorder) List(ctx any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockLister)(nil).List), ctx)
|
|
}
|