Documentation ¶
Overview ¶
Package edgeworkload is a generated GoMock package.
Index ¶
- type CRRepository
- func (r *CRRepository) ListByLabel(ctx context.Context, labelName, labelValue string, namespace string) ([]v1alpha1.EdgeWorkload, error)
- func (r *CRRepository) Patch(ctx context.Context, old, new *v1alpha1.EdgeWorkload) error
- func (r *CRRepository) Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeWorkload, error)
- func (r *CRRepository) RemoveFinalizer(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, finalizer string) error
- type MockRepository
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) ListByLabel(arg0 context.Context, arg1, arg2, arg3 string) ([]v1alpha1.EdgeWorkload, error)
- func (m *MockRepository) Patch(arg0 context.Context, arg1, arg2 *v1alpha1.EdgeWorkload) error
- func (m *MockRepository) Read(arg0 context.Context, arg1, arg2 string) (*v1alpha1.EdgeWorkload, error)
- func (m *MockRepository) RemoveFinalizer(arg0 context.Context, arg1 *v1alpha1.EdgeWorkload, arg2 string) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) ListByLabel(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Patch(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
- 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 NewEdgeWorkloadRepository ¶
func NewEdgeWorkloadRepository(client client.Client) *CRRepository
func (*CRRepository) ListByLabel ¶
func (r *CRRepository) ListByLabel(ctx context.Context, labelName, labelValue string, namespace string) ([]v1alpha1.EdgeWorkload, error)
func (*CRRepository) Patch ¶
func (r *CRRepository) Patch(ctx context.Context, old, new *v1alpha1.EdgeWorkload) error
func (*CRRepository) Read ¶
func (r *CRRepository) Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeWorkload, error)
func (*CRRepository) RemoveFinalizer ¶
func (r *CRRepository) RemoveFinalizer(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, finalizer 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) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) ListByLabel ¶
func (m *MockRepository) ListByLabel(arg0 context.Context, arg1, arg2, arg3 string) ([]v1alpha1.EdgeWorkload, error)
ListByLabel mocks base method.
func (*MockRepository) Patch ¶
func (m *MockRepository) Patch(arg0 context.Context, arg1, arg2 *v1alpha1.EdgeWorkload) error
Patch mocks base method.
func (*MockRepository) Read ¶
func (m *MockRepository) Read(arg0 context.Context, arg1, arg2 string) (*v1alpha1.EdgeWorkload, error)
Read mocks base method.
func (*MockRepository) RemoveFinalizer ¶
func (m *MockRepository) RemoveFinalizer(arg0 context.Context, arg1 *v1alpha1.EdgeWorkload, arg2 string) error
RemoveFinalizer mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) ListByLabel ¶
func (mr *MockRepositoryMockRecorder) ListByLabel(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ListByLabel indicates an expected call of ListByLabel.
func (*MockRepositoryMockRecorder) Patch ¶
func (mr *MockRepositoryMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
Patch indicates an expected call of Patch.
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.
type Repository ¶
type Repository interface { Read(ctx context.Context, name string, namespace string) (*v1alpha1.EdgeWorkload, error) Patch(ctx context.Context, old, new *v1alpha1.EdgeWorkload) error RemoveFinalizer(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, finalizer string) error ListByLabel(ctx context.Context, labelName, labelValue string, namespace string) ([]v1alpha1.EdgeWorkload, error) }
Click to show internal directories.
Click to hide internal directories.