Documentation ¶
Overview ¶
Package edgedevice is a generated GoMock package.
Index ¶
- type CRRepository
- func (r *CRRepository) Create(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice) error
- func (r CRRepository) ListForSelector(ctx context.Context, selector *metav1.LabelSelector, namespace string) ([]v1alpha1.EdgeDevice, error)
- func (r CRRepository) ListForWorkload(ctx context.Context, name string, namespace string) ([]v1alpha1.EdgeDevice, error)
- func (r *CRRepository) Patch(ctx context.Context, old, new *v1alpha1.EdgeDevice) error
- func (r *CRRepository) PatchStatus(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, patch *client.Patch) error
- func (r *CRRepository) Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeDevice, error)
- func (r *CRRepository) RemoveFinalizer(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, finalizer string) error
- func (r *CRRepository) UpdateLabels(ctx context.Context, device *v1alpha1.EdgeDevice, labels map[string]string) error
- type MockRepository
- func (m *MockRepository) Create(arg0 context.Context, arg1 *v1alpha1.EdgeDevice) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) ListForSelector(arg0 context.Context, arg1 *v1.LabelSelector, arg2 string) ([]v1alpha1.EdgeDevice, error)
- func (m *MockRepository) ListForWorkload(arg0 context.Context, arg1, arg2 string) ([]v1alpha1.EdgeDevice, error)
- func (m *MockRepository) Patch(arg0 context.Context, arg1, arg2 *v1alpha1.EdgeDevice) error
- func (m *MockRepository) PatchStatus(arg0 context.Context, arg1 *v1alpha1.EdgeDevice, arg2 *client.Patch) error
- func (m *MockRepository) Read(arg0 context.Context, arg1, arg2 string) (*v1alpha1.EdgeDevice, error)
- func (m *MockRepository) RemoveFinalizer(arg0 context.Context, arg1 *v1alpha1.EdgeDevice, arg2 string) error
- func (m *MockRepository) UpdateLabels(arg0 context.Context, arg1 *v1alpha1.EdgeDevice, arg2 map[string]string) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListForSelector(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListForWorkload(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) PatchStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) RemoveFinalizer(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateLabels(arg0, arg1, arg2 interface{}) *gomock.Call
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRRepository ¶
type CRRepository struct {
// contains filtered or unexported fields
}
func NewEdgeDeviceRepository ¶
func NewEdgeDeviceRepository(client client.Client) *CRRepository
func (*CRRepository) Create ¶
func (r *CRRepository) Create(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice) error
func (CRRepository) ListForSelector ¶
func (r CRRepository) ListForSelector(ctx context.Context, selector *metav1.LabelSelector, namespace string) ([]v1alpha1.EdgeDevice, error)
func (CRRepository) ListForWorkload ¶
func (r CRRepository) ListForWorkload(ctx context.Context, name string, namespace string) ([]v1alpha1.EdgeDevice, error)
func (*CRRepository) Patch ¶
func (r *CRRepository) Patch(ctx context.Context, old, new *v1alpha1.EdgeDevice) error
func (*CRRepository) PatchStatus ¶
func (r *CRRepository) PatchStatus(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, patch *client.Patch) error
func (*CRRepository) Read ¶
func (r *CRRepository) Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeDevice, error)
func (*CRRepository) RemoveFinalizer ¶
func (r *CRRepository) RemoveFinalizer(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, finalizer string) error
func (*CRRepository) UpdateLabels ¶
func (r *CRRepository) UpdateLabels(ctx context.Context, device *v1alpha1.EdgeDevice, labels map[string]string) error
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Create ¶
func (m *MockRepository) Create(arg0 context.Context, arg1 *v1alpha1.EdgeDevice) error
Create mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) ListForSelector ¶
func (m *MockRepository) ListForSelector(arg0 context.Context, arg1 *v1.LabelSelector, arg2 string) ([]v1alpha1.EdgeDevice, error)
ListForSelector mocks base method.
func (*MockRepository) ListForWorkload ¶
func (m *MockRepository) ListForWorkload(arg0 context.Context, arg1, arg2 string) ([]v1alpha1.EdgeDevice, error)
ListForWorkload mocks base method.
func (*MockRepository) Patch ¶
func (m *MockRepository) Patch(arg0 context.Context, arg1, arg2 *v1alpha1.EdgeDevice) error
Patch mocks base method.
func (*MockRepository) PatchStatus ¶
func (m *MockRepository) PatchStatus(arg0 context.Context, arg1 *v1alpha1.EdgeDevice, arg2 *client.Patch) error
PatchStatus mocks base method.
func (*MockRepository) Read ¶
func (m *MockRepository) Read(arg0 context.Context, arg1, arg2 string) (*v1alpha1.EdgeDevice, error)
Read mocks base method.
func (*MockRepository) RemoveFinalizer ¶
func (m *MockRepository) RemoveFinalizer(arg0 context.Context, arg1 *v1alpha1.EdgeDevice, arg2 string) error
RemoveFinalizer mocks base method.
func (*MockRepository) UpdateLabels ¶
func (m *MockRepository) UpdateLabels(arg0 context.Context, arg1 *v1alpha1.EdgeDevice, arg2 map[string]string) error
UpdateLabels mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) ListForSelector ¶
func (mr *MockRepositoryMockRecorder) ListForSelector(arg0, arg1, arg2 interface{}) *gomock.Call
ListForSelector indicates an expected call of ListForSelector.
func (*MockRepositoryMockRecorder) ListForWorkload ¶
func (mr *MockRepositoryMockRecorder) ListForWorkload(arg0, arg1, arg2 interface{}) *gomock.Call
ListForWorkload indicates an expected call of ListForWorkload.
func (*MockRepositoryMockRecorder) Patch ¶
func (mr *MockRepositoryMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockRepositoryMockRecorder) PatchStatus ¶
func (mr *MockRepositoryMockRecorder) PatchStatus(arg0, arg1, arg2 interface{}) *gomock.Call
PatchStatus indicates an expected call of PatchStatus.
func (*MockRepositoryMockRecorder) Read ¶
func (mr *MockRepositoryMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockRepositoryMockRecorder) RemoveFinalizer ¶
func (mr *MockRepositoryMockRecorder) RemoveFinalizer(arg0, arg1, arg2 interface{}) *gomock.Call
RemoveFinalizer indicates an expected call of RemoveFinalizer.
func (*MockRepositoryMockRecorder) UpdateLabels ¶
func (mr *MockRepositoryMockRecorder) UpdateLabels(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateLabels indicates an expected call of UpdateLabels.
type Repository ¶
type Repository interface { Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeDevice, error) Create(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice) error PatchStatus(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, patch *client.Patch) error Patch(ctx context.Context, old, new *v1alpha1.EdgeDevice) error ListForSelector(ctx context.Context, selector *metav1.LabelSelector, namespace string) ([]v1alpha1.EdgeDevice, error) ListForWorkload(ctx context.Context, name string, namespace string) ([]v1alpha1.EdgeDevice, error) RemoveFinalizer(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, finalizer string) error UpdateLabels(ctx context.Context, device *v1alpha1.EdgeDevice, labels map[string]string) error }