Documentation ¶
Index ¶
- type FakeNodeClient
- func (f FakeNodeClient) AddBAFinalizer(ctx context.Context, ba *v1alpha1.BucketAccess, BAFinalizer string) error
- func (f FakeNodeClient) GetB(ctx context.Context, pod *v1.Pod, bName string) (*v1alpha1.Bucket, error)
- func (f FakeNodeClient) GetBA(ctx context.Context, pod *v1.Pod, baName string) (*v1alpha1.BucketAccess, error)
- func (f FakeNodeClient) GetBAR(ctx context.Context, pod *v1.Pod, barName, barNs string) (*v1alpha1.BucketAccessRequest, error)
- func (f FakeNodeClient) GetBR(ctx context.Context, pod *v1.Pod, brName, brNs string) (*v1alpha1.BucketRequest, error)
- func (f FakeNodeClient) GetPod(ctx context.Context, podName, podNs string) (*v1.Pod, error)
- func (f FakeNodeClient) GetResources(ctx context.Context, barName, podName, podNs string) (bkt *v1alpha1.Bucket, ba *v1alpha1.BucketAccess, secret *v1.Secret, ...)
- func (f FakeNodeClient) Recorder() record.EventRecorder
- func (f FakeNodeClient) RemoveBAFinalizer(ctx context.Context, ba *v1alpha1.BucketAccess, BAFinalizer string) error
- type MockProvisionerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNodeClient ¶
type FakeNodeClient struct { MockGetBAR func(ctx context.Context, pod *v1.Pod, barName, barNs string) (*v1alpha1.BucketAccessRequest, error) MockGetBA func(ctx context.Context, pod *v1.Pod, baName string) (*v1alpha1.BucketAccess, error) MockGetBR func(ctx context.Context, pod *v1.Pod, brName, brNs string) (*v1alpha1.BucketRequest, error) MockGetB func(ctx context.Context, pod *v1.Pod, bName string) (*v1alpha1.Bucket, error) MockGetPod func(ctx context.Context, podName, podNs string) (*v1.Pod, error) MockGetResources func(ctx context.Context, barName, podName, podNs string) (bkt *v1alpha1.Bucket, ba *v1alpha1.BucketAccess, secret *v1.Secret, pod *v1.Pod, err error) MockAddBAFinalizer func(ctx context.Context, ba *v1alpha1.BucketAccess, BAFinalizer string) error MockRemoveBAFinalizer func(ctx context.Context, ba *v1alpha1.BucketAccess, BAFinalizer string) error }
func (FakeNodeClient) AddBAFinalizer ¶
func (f FakeNodeClient) AddBAFinalizer(ctx context.Context, ba *v1alpha1.BucketAccess, BAFinalizer string) error
func (FakeNodeClient) GetBA ¶
func (f FakeNodeClient) GetBA(ctx context.Context, pod *v1.Pod, baName string) (*v1alpha1.BucketAccess, error)
func (FakeNodeClient) GetBAR ¶
func (f FakeNodeClient) GetBAR(ctx context.Context, pod *v1.Pod, barName, barNs string) (*v1alpha1.BucketAccessRequest, error)
func (FakeNodeClient) GetBR ¶
func (f FakeNodeClient) GetBR(ctx context.Context, pod *v1.Pod, brName, brNs string) (*v1alpha1.BucketRequest, error)
func (FakeNodeClient) GetResources ¶
func (FakeNodeClient) Recorder ¶
func (f FakeNodeClient) Recorder() record.EventRecorder
func (FakeNodeClient) RemoveBAFinalizer ¶
func (f FakeNodeClient) RemoveBAFinalizer(ctx context.Context, ba *v1alpha1.BucketAccess, BAFinalizer string) error
type MockProvisionerClient ¶
type MockProvisionerClient struct { MockMkdirAll func(path string, perm os.FileMode) error MockRemoveAll func(path string) error MockWriteFile func(data []byte, filepath string) error MockReadFile func(filename string) ([]byte, error) }
func (MockProvisionerClient) MkdirAll ¶
func (p MockProvisionerClient) MkdirAll(path string, perm os.FileMode) error
func (MockProvisionerClient) ReadFile ¶
func (p MockProvisionerClient) ReadFile(filename string) ([]byte, error)
func (MockProvisionerClient) RemoveAll ¶
func (p MockProvisionerClient) RemoveAll(path string) error
Click to show internal directories.
Click to hide internal directories.