mocks

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterServiceClient

type ClusterServiceClient struct {
	mock.Mock
}

ClusterServiceClient is an autogenerated mock type for the ClusterServiceClient type

func NewClusterServiceClient

func NewClusterServiceClient(t mockConstructorTestingTNewClusterServiceClient) *ClusterServiceClient

NewClusterServiceClient creates a new instance of ClusterServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClusterServiceClient) Added

func (_m *ClusterServiceClient) Added(ctx context.Context, in *v1.ClusterReport, opts ...grpc.CallOption) (*v1.Empty, error)

Added provides a mock function with given fields: ctx, in, opts

func (*ClusterServiceClient) Deleted

func (_m *ClusterServiceClient) Deleted(ctx context.Context, in *v1.ClusterReport, opts ...grpc.CallOption) (*v1.Empty, error)

Deleted provides a mock function with given fields: ctx, in, opts

func (*ClusterServiceClient) Modified

func (_m *ClusterServiceClient) Modified(ctx context.Context, in *v1.ClusterReport, opts ...grpc.CallOption) (*v1.Empty, error)

Modified provides a mock function with given fields: ctx, in, opts

func (*ClusterServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type ClusterServiceServer

type ClusterServiceServer struct {
	mock.Mock
}

ClusterServiceServer is an autogenerated mock type for the ClusterServiceServer type

func NewClusterServiceServer

func NewClusterServiceServer(t mockConstructorTestingTNewClusterServiceServer) *ClusterServiceServer

NewClusterServiceServer creates a new instance of ClusterServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClusterServiceServer) Added

func (_m *ClusterServiceServer) Added(_a0 context.Context, _a1 *v1.ClusterReport) (*v1.Empty, error)

Added provides a mock function with given fields: _a0, _a1

func (*ClusterServiceServer) Deleted

func (_m *ClusterServiceServer) Deleted(_a0 context.Context, _a1 *v1.ClusterReport) (*v1.Empty, error)

Deleted provides a mock function with given fields: _a0, _a1

func (*ClusterServiceServer) Modified

func (_m *ClusterServiceServer) Modified(_a0 context.Context, _a1 *v1.ClusterReport) (*v1.Empty, error)

Modified provides a mock function with given fields: _a0, _a1

func (*ClusterServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

type IPServiceClient

type IPServiceClient struct {
	mock.Mock
}

IPServiceClient is an autogenerated mock type for the IPServiceClient type

func NewIPServiceClient

func NewIPServiceClient(t mockConstructorTestingTNewIPServiceClient) *IPServiceClient

NewIPServiceClient creates a new instance of IPServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IPServiceClient) Added

func (_m *IPServiceClient) Added(ctx context.Context, in *v1.IPReport, opts ...grpc.CallOption) (*v1.Empty, error)

Added provides a mock function with given fields: ctx, in, opts

func (*IPServiceClient) Deleted

func (_m *IPServiceClient) Deleted(ctx context.Context, in *v1.IPReport, opts ...grpc.CallOption) (*v1.Empty, error)

Deleted provides a mock function with given fields: ctx, in, opts

func (*IPServiceClient) Modified

func (_m *IPServiceClient) Modified(ctx context.Context, in *v1.IPReport, opts ...grpc.CallOption) (*v1.Empty, error)

Modified provides a mock function with given fields: ctx, in, opts

func (*IPServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type IPServiceServer

type IPServiceServer struct {
	mock.Mock
}

IPServiceServer is an autogenerated mock type for the IPServiceServer type

func NewIPServiceServer

func NewIPServiceServer(t mockConstructorTestingTNewIPServiceServer) *IPServiceServer

NewIPServiceServer creates a new instance of IPServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IPServiceServer) Added

func (_m *IPServiceServer) Added(_a0 context.Context, _a1 *v1.IPReport) (*v1.Empty, error)

Added provides a mock function with given fields: _a0, _a1

func (*IPServiceServer) Deleted

func (_m *IPServiceServer) Deleted(_a0 context.Context, _a1 *v1.IPReport) (*v1.Empty, error)

Deleted provides a mock function with given fields: _a0, _a1

func (*IPServiceServer) Modified

func (_m *IPServiceServer) Modified(_a0 context.Context, _a1 *v1.IPReport) (*v1.Empty, error)

Modified provides a mock function with given fields: _a0, _a1

func (*IPServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

type InfoServiceClient

type InfoServiceClient struct {
	mock.Mock
}

InfoServiceClient is an autogenerated mock type for the InfoServiceClient type

func NewInfoServiceClient

func NewInfoServiceClient(t mockConstructorTestingTNewInfoServiceClient) *InfoServiceClient

NewInfoServiceClient creates a new instance of InfoServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*InfoServiceClient) Projects

Projects provides a mock function with given fields: ctx, in, opts

func (*InfoServiceClient) Tenants

Tenants provides a mock function with given fields: ctx, in, opts

type InfoServiceServer

type InfoServiceServer struct {
	mock.Mock
}

InfoServiceServer is an autogenerated mock type for the InfoServiceServer type

func NewInfoServiceServer

func NewInfoServiceServer(t mockConstructorTestingTNewInfoServiceServer) *InfoServiceServer

NewInfoServiceServer creates a new instance of InfoServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*InfoServiceServer) Projects

Projects provides a mock function with given fields: _a0, _a1

func (*InfoServiceServer) Tenants

Tenants provides a mock function with given fields: _a0, _a1

type NetworkTrafficServiceClient

type NetworkTrafficServiceClient struct {
	mock.Mock
}

NetworkTrafficServiceClient is an autogenerated mock type for the NetworkTrafficServiceClient type

func NewNetworkTrafficServiceClient

func NewNetworkTrafficServiceClient(t mockConstructorTestingTNewNetworkTrafficServiceClient) *NetworkTrafficServiceClient

NewNetworkTrafficServiceClient creates a new instance of NetworkTrafficServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NetworkTrafficServiceClient) Modified

Modified provides a mock function with given fields: ctx, in, opts

func (*NetworkTrafficServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type NetworkTrafficServiceServer

type NetworkTrafficServiceServer struct {
	mock.Mock
}

NetworkTrafficServiceServer is an autogenerated mock type for the NetworkTrafficServiceServer type

func NewNetworkTrafficServiceServer

func NewNetworkTrafficServiceServer(t mockConstructorTestingTNewNetworkTrafficServiceServer) *NetworkTrafficServiceServer

NewNetworkTrafficServiceServer creates a new instance of NetworkTrafficServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NetworkTrafficServiceServer) Modified

Modified provides a mock function with given fields: _a0, _a1

func (*NetworkTrafficServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

type PodServiceClient

type PodServiceClient struct {
	mock.Mock
}

PodServiceClient is an autogenerated mock type for the PodServiceClient type

func NewPodServiceClient

func NewPodServiceClient(t mockConstructorTestingTNewPodServiceClient) *PodServiceClient

NewPodServiceClient creates a new instance of PodServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PodServiceClient) Added

func (_m *PodServiceClient) Added(ctx context.Context, in *v1.PodReport, opts ...grpc.CallOption) (*v1.Empty, error)

Added provides a mock function with given fields: ctx, in, opts

func (*PodServiceClient) Deleted

func (_m *PodServiceClient) Deleted(ctx context.Context, in *v1.PodReport, opts ...grpc.CallOption) (*v1.Empty, error)

Deleted provides a mock function with given fields: ctx, in, opts

func (*PodServiceClient) Modified

func (_m *PodServiceClient) Modified(ctx context.Context, in *v1.PodReport, opts ...grpc.CallOption) (*v1.Empty, error)

Modified provides a mock function with given fields: ctx, in, opts

func (*PodServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type PodServiceServer

type PodServiceServer struct {
	mock.Mock
}

PodServiceServer is an autogenerated mock type for the PodServiceServer type

func NewPodServiceServer

func NewPodServiceServer(t mockConstructorTestingTNewPodServiceServer) *PodServiceServer

NewPodServiceServer creates a new instance of PodServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PodServiceServer) Added

func (_m *PodServiceServer) Added(_a0 context.Context, _a1 *v1.PodReport) (*v1.Empty, error)

Added provides a mock function with given fields: _a0, _a1

func (*PodServiceServer) Deleted

func (_m *PodServiceServer) Deleted(_a0 context.Context, _a1 *v1.PodReport) (*v1.Empty, error)

Deleted provides a mock function with given fields: _a0, _a1

func (*PodServiceServer) Modified

func (_m *PodServiceServer) Modified(_a0 context.Context, _a1 *v1.PodReport) (*v1.Empty, error)

Modified provides a mock function with given fields: _a0, _a1

func (*PodServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

type PostgresServiceClient

type PostgresServiceClient struct {
	mock.Mock
}

PostgresServiceClient is an autogenerated mock type for the PostgresServiceClient type

func NewPostgresServiceClient

func NewPostgresServiceClient(t mockConstructorTestingTNewPostgresServiceClient) *PostgresServiceClient

NewPostgresServiceClient creates a new instance of PostgresServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PostgresServiceClient) Added

Added provides a mock function with given fields: ctx, in, opts

func (*PostgresServiceClient) Deleted

func (_m *PostgresServiceClient) Deleted(ctx context.Context, in *v1.PostgresReport, opts ...grpc.CallOption) (*v1.Empty, error)

Deleted provides a mock function with given fields: ctx, in, opts

func (*PostgresServiceClient) Modified

func (_m *PostgresServiceClient) Modified(ctx context.Context, in *v1.PostgresReport, opts ...grpc.CallOption) (*v1.Empty, error)

Modified provides a mock function with given fields: ctx, in, opts

func (*PostgresServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type PostgresServiceServer

type PostgresServiceServer struct {
	mock.Mock
}

PostgresServiceServer is an autogenerated mock type for the PostgresServiceServer type

func NewPostgresServiceServer

func NewPostgresServiceServer(t mockConstructorTestingTNewPostgresServiceServer) *PostgresServiceServer

NewPostgresServiceServer creates a new instance of PostgresServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PostgresServiceServer) Added

Added provides a mock function with given fields: _a0, _a1

func (*PostgresServiceServer) Deleted

func (_m *PostgresServiceServer) Deleted(_a0 context.Context, _a1 *v1.PostgresReport) (*v1.Empty, error)

Deleted provides a mock function with given fields: _a0, _a1

func (*PostgresServiceServer) Modified

func (_m *PostgresServiceServer) Modified(_a0 context.Context, _a1 *v1.PostgresReport) (*v1.Empty, error)

Modified provides a mock function with given fields: _a0, _a1

func (*PostgresServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

type S3ServiceClient

type S3ServiceClient struct {
	mock.Mock
}

S3ServiceClient is an autogenerated mock type for the S3ServiceClient type

func NewS3ServiceClient

func NewS3ServiceClient(t mockConstructorTestingTNewS3ServiceClient) *S3ServiceClient

NewS3ServiceClient creates a new instance of S3ServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*S3ServiceClient) BucketStats

func (_m *S3ServiceClient) BucketStats(ctx context.Context, in *v1.S3BucketReport, opts ...grpc.CallOption) (*v1.Empty, error)

BucketStats provides a mock function with given fields: ctx, in, opts

func (*S3ServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type S3ServiceServer

type S3ServiceServer struct {
	mock.Mock
}

S3ServiceServer is an autogenerated mock type for the S3ServiceServer type

func NewS3ServiceServer

func NewS3ServiceServer(t mockConstructorTestingTNewS3ServiceServer) *S3ServiceServer

NewS3ServiceServer creates a new instance of S3ServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*S3ServiceServer) BucketStats

func (_m *S3ServiceServer) BucketStats(_a0 context.Context, _a1 *v1.S3BucketReport) (*v1.Empty, error)

BucketStats provides a mock function with given fields: _a0, _a1

func (*S3ServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

type UnsafeClusterServiceServer

type UnsafeClusterServiceServer struct {
	mock.Mock
}

UnsafeClusterServiceServer is an autogenerated mock type for the UnsafeClusterServiceServer type

func NewUnsafeClusterServiceServer

func NewUnsafeClusterServiceServer(t mockConstructorTestingTNewUnsafeClusterServiceServer) *UnsafeClusterServiceServer

NewUnsafeClusterServiceServer creates a new instance of UnsafeClusterServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafeIPServiceServer

type UnsafeIPServiceServer struct {
	mock.Mock
}

UnsafeIPServiceServer is an autogenerated mock type for the UnsafeIPServiceServer type

func NewUnsafeIPServiceServer

func NewUnsafeIPServiceServer(t mockConstructorTestingTNewUnsafeIPServiceServer) *UnsafeIPServiceServer

NewUnsafeIPServiceServer creates a new instance of UnsafeIPServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafeInfoServiceServer

type UnsafeInfoServiceServer struct {
	mock.Mock
}

UnsafeInfoServiceServer is an autogenerated mock type for the UnsafeInfoServiceServer type

func NewUnsafeInfoServiceServer

func NewUnsafeInfoServiceServer(t mockConstructorTestingTNewUnsafeInfoServiceServer) *UnsafeInfoServiceServer

NewUnsafeInfoServiceServer creates a new instance of UnsafeInfoServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafeNetworkTrafficServiceServer

type UnsafeNetworkTrafficServiceServer struct {
	mock.Mock
}

UnsafeNetworkTrafficServiceServer is an autogenerated mock type for the UnsafeNetworkTrafficServiceServer type

func NewUnsafeNetworkTrafficServiceServer

func NewUnsafeNetworkTrafficServiceServer(t mockConstructorTestingTNewUnsafeNetworkTrafficServiceServer) *UnsafeNetworkTrafficServiceServer

NewUnsafeNetworkTrafficServiceServer creates a new instance of UnsafeNetworkTrafficServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafePodServiceServer

type UnsafePodServiceServer struct {
	mock.Mock
}

UnsafePodServiceServer is an autogenerated mock type for the UnsafePodServiceServer type

func NewUnsafePodServiceServer

func NewUnsafePodServiceServer(t mockConstructorTestingTNewUnsafePodServiceServer) *UnsafePodServiceServer

NewUnsafePodServiceServer creates a new instance of UnsafePodServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafePostgresServiceServer

type UnsafePostgresServiceServer struct {
	mock.Mock
}

UnsafePostgresServiceServer is an autogenerated mock type for the UnsafePostgresServiceServer type

func NewUnsafePostgresServiceServer

func NewUnsafePostgresServiceServer(t mockConstructorTestingTNewUnsafePostgresServiceServer) *UnsafePostgresServiceServer

NewUnsafePostgresServiceServer creates a new instance of UnsafePostgresServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafeS3ServiceServer

type UnsafeS3ServiceServer struct {
	mock.Mock
}

UnsafeS3ServiceServer is an autogenerated mock type for the UnsafeS3ServiceServer type

func NewUnsafeS3ServiceServer

func NewUnsafeS3ServiceServer(t mockConstructorTestingTNewUnsafeS3ServiceServer) *UnsafeS3ServiceServer

NewUnsafeS3ServiceServer creates a new instance of UnsafeS3ServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type UnsafeVolumeServiceServer

type UnsafeVolumeServiceServer struct {
	mock.Mock
}

UnsafeVolumeServiceServer is an autogenerated mock type for the UnsafeVolumeServiceServer type

func NewUnsafeVolumeServiceServer

func NewUnsafeVolumeServiceServer(t mockConstructorTestingTNewUnsafeVolumeServiceServer) *UnsafeVolumeServiceServer

NewUnsafeVolumeServiceServer creates a new instance of UnsafeVolumeServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type VolumeServiceClient

type VolumeServiceClient struct {
	mock.Mock
}

VolumeServiceClient is an autogenerated mock type for the VolumeServiceClient type

func NewVolumeServiceClient

func NewVolumeServiceClient(t mockConstructorTestingTNewVolumeServiceClient) *VolumeServiceClient

NewVolumeServiceClient creates a new instance of VolumeServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*VolumeServiceClient) Added

func (_m *VolumeServiceClient) Added(ctx context.Context, in *v1.VolumeReport, opts ...grpc.CallOption) (*v1.Empty, error)

Added provides a mock function with given fields: ctx, in, opts

func (*VolumeServiceClient) Deleted

func (_m *VolumeServiceClient) Deleted(ctx context.Context, in *v1.VolumeReport, opts ...grpc.CallOption) (*v1.Empty, error)

Deleted provides a mock function with given fields: ctx, in, opts

func (*VolumeServiceClient) Modified

func (_m *VolumeServiceClient) Modified(ctx context.Context, in *v1.VolumeReport, opts ...grpc.CallOption) (*v1.Empty, error)

Modified provides a mock function with given fields: ctx, in, opts

func (*VolumeServiceClient) Usage

Usage provides a mock function with given fields: ctx, in, opts

type VolumeServiceServer

type VolumeServiceServer struct {
	mock.Mock
}

VolumeServiceServer is an autogenerated mock type for the VolumeServiceServer type

func NewVolumeServiceServer

func NewVolumeServiceServer(t mockConstructorTestingTNewVolumeServiceServer) *VolumeServiceServer

NewVolumeServiceServer creates a new instance of VolumeServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*VolumeServiceServer) Added

func (_m *VolumeServiceServer) Added(_a0 context.Context, _a1 *v1.VolumeReport) (*v1.Empty, error)

Added provides a mock function with given fields: _a0, _a1

func (*VolumeServiceServer) Deleted

func (_m *VolumeServiceServer) Deleted(_a0 context.Context, _a1 *v1.VolumeReport) (*v1.Empty, error)

Deleted provides a mock function with given fields: _a0, _a1

func (*VolumeServiceServer) Modified

func (_m *VolumeServiceServer) Modified(_a0 context.Context, _a1 *v1.VolumeReport) (*v1.Empty, error)

Modified provides a mock function with given fields: _a0, _a1

func (*VolumeServiceServer) Usage

Usage provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL