Documentation ¶
Overview ¶
Package mockpersistentvolume implements the mock client for persistentvolumegetter.
Index ¶
- type MockInterface
- func (m *MockInterface) Apply(ctx context.Context, ...) (result *v1.PersistentVolume, err error)
- func (m *MockInterface) ApplyStatus(ctx context.Context, ...) (result *v1.PersistentVolume, err error)
- func (m *MockInterface) Create(ctx context.Context, persistentVolume *v1.PersistentVolume, ...) (*v1.PersistentVolume, error)
- func (m *MockInterface) Delete(ctx context.Context, name string, opts v10.DeleteOptions) error
- func (m *MockInterface) DeleteCollection(ctx context.Context, opts v10.DeleteOptions, listOpts v10.ListOptions) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(ctx context.Context, name string, opts v10.GetOptions) (*v1.PersistentVolume, error)
- func (m *MockInterface) List(ctx context.Context, opts v10.ListOptions) (*v1.PersistentVolumeList, error)
- func (m *MockInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*v1.PersistentVolume, error)
- func (m *MockInterface) Update(ctx context.Context, persistentVolume *v1.PersistentVolume, ...) (*v1.PersistentVolume, error)
- func (m *MockInterface) UpdateStatus(ctx context.Context, persistentVolume *v1.PersistentVolume, ...) (*v1.PersistentVolume, error)
- func (m *MockInterface) Watch(ctx context.Context, opts v10.ListOptions) (watch.Interface, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Create(ctx, persistentVolume, opts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(ctx, name, opts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteCollection(ctx, opts, listOpts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(ctx, name, opts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) List(ctx, opts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Patch(ctx, name, pt, data, opts interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(ctx, persistentVolume, opts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStatus(ctx, persistentVolume, opts interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Watch(ctx, opts interface{}) *gomock.Call
- type MockPersistentVolumesGetter
- type MockPersistentVolumesGetterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of PersistentVolumeInterface interface
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance
func (*MockInterface) Apply ¶ added in v1.2.0
func (m *MockInterface) Apply(ctx context.Context, persistentVolume *corev1.PersistentVolumeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.PersistentVolume, err error)
Apply mocks base method
func (*MockInterface) ApplyStatus ¶ added in v1.2.0
func (m *MockInterface) ApplyStatus(ctx context.Context, persistentVolume *corev1.PersistentVolumeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.PersistentVolume, err error)
ApplyStatus mocks base method
func (*MockInterface) Create ¶
func (m *MockInterface) Create(ctx context.Context, persistentVolume *v1.PersistentVolume, opts v10.CreateOptions) (*v1.PersistentVolume, error)
Create mocks base method
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(ctx context.Context, name string, opts v10.DeleteOptions) error
Delete mocks base method
func (*MockInterface) DeleteCollection ¶
func (m *MockInterface) DeleteCollection(ctx context.Context, opts v10.DeleteOptions, listOpts v10.ListOptions) error
DeleteCollection mocks base method
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) Get ¶
func (m *MockInterface) Get(ctx context.Context, name string, opts v10.GetOptions) (*v1.PersistentVolume, error)
Get mocks base method
func (*MockInterface) List ¶
func (m *MockInterface) List(ctx context.Context, opts v10.ListOptions) (*v1.PersistentVolumeList, error)
List mocks base method
func (*MockInterface) Patch ¶
func (m *MockInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v10.PatchOptions, subresources ...string) (*v1.PersistentVolume, error)
Patch mocks base method
func (*MockInterface) Update ¶
func (m *MockInterface) Update(ctx context.Context, persistentVolume *v1.PersistentVolume, opts v10.UpdateOptions) (*v1.PersistentVolume, error)
Update mocks base method
func (*MockInterface) UpdateStatus ¶
func (m *MockInterface) UpdateStatus(ctx context.Context, persistentVolume *v1.PersistentVolume, opts v10.UpdateOptions) (*v1.PersistentVolume, error)
UpdateStatus mocks base method
func (*MockInterface) Watch ¶
func (m *MockInterface) Watch(ctx context.Context, opts v10.ListOptions) (watch.Interface, error)
Watch mocks base method
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) Create ¶
func (mr *MockInterfaceMockRecorder) Create(ctx, persistentVolume, opts interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockInterfaceMockRecorder) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(ctx, name, opts interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockInterfaceMockRecorder) DeleteCollection ¶
func (mr *MockInterfaceMockRecorder) DeleteCollection(ctx, opts, listOpts interface{}) *gomock.Call
DeleteCollection indicates an expected call of DeleteCollection
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(ctx, name, opts interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockInterfaceMockRecorder) List ¶
func (mr *MockInterfaceMockRecorder) List(ctx, opts interface{}) *gomock.Call
List indicates an expected call of List
func (*MockInterfaceMockRecorder) Patch ¶
func (mr *MockInterfaceMockRecorder) Patch(ctx, name, pt, data, opts interface{}, subresources ...interface{}) *gomock.Call
Patch indicates an expected call of Patch
func (*MockInterfaceMockRecorder) Update ¶
func (mr *MockInterfaceMockRecorder) Update(ctx, persistentVolume, opts interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockInterfaceMockRecorder) UpdateStatus ¶
func (mr *MockInterfaceMockRecorder) UpdateStatus(ctx, persistentVolume, opts interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus
func (*MockInterfaceMockRecorder) Watch ¶
func (mr *MockInterfaceMockRecorder) Watch(ctx, opts interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockPersistentVolumesGetter ¶
type MockPersistentVolumesGetter struct {
// contains filtered or unexported fields
}
MockPersistentVolumesGetter is a mock of PersistentVolumesGetter interface
func NewMockPersistentVolumesGetter ¶
func NewMockPersistentVolumesGetter(ctrl *gomock.Controller) *MockPersistentVolumesGetter
NewMockPersistentVolumesGetter creates a new mock instance
func (*MockPersistentVolumesGetter) EXPECT ¶
func (m *MockPersistentVolumesGetter) EXPECT() *MockPersistentVolumesGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPersistentVolumesGetter) PersistentVolumes ¶
func (m *MockPersistentVolumesGetter) PersistentVolumes() v11.PersistentVolumeInterface
PersistentVolumes mocks base method
type MockPersistentVolumesGetterMockRecorder ¶
type MockPersistentVolumesGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockPersistentVolumesGetterMockRecorder is the mock recorder for MockPersistentVolumesGetter
func (*MockPersistentVolumesGetterMockRecorder) PersistentVolumes ¶
func (mr *MockPersistentVolumesGetterMockRecorder) PersistentVolumes() *gomock.Call
PersistentVolumes indicates an expected call of PersistentVolumes