mocks

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostnameServiceClient

type HostnameServiceClient struct {
	mock.Mock
}

HostnameServiceClient is an autogenerated mock type for the HostnameServiceClient type

func NewHostnameServiceClient

func NewHostnameServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HostnameServiceClient

NewHostnameServiceClient creates a new instance of HostnameServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HostnameServiceClient) CanReserveHostnames

func (_m *HostnameServiceClient) CanReserveHostnames(hostnames []string, ownerAddr types.Address) error

CanReserveHostnames provides a mock function with given fields: hostnames, ownerAddr

func (*HostnameServiceClient) EXPECT

func (*HostnameServiceClient) PrepareHostnamesForTransfer

func (_m *HostnameServiceClient) PrepareHostnamesForTransfer(ctx context.Context, hostnames []string, leaseID v1beta4.LeaseID) error

PrepareHostnamesForTransfer provides a mock function with given fields: ctx, hostnames, leaseID

func (*HostnameServiceClient) ReleaseHostnames

func (_m *HostnameServiceClient) ReleaseHostnames(leaseID v1beta4.LeaseID) error

ReleaseHostnames provides a mock function with given fields: leaseID

func (*HostnameServiceClient) ReserveHostnames

func (_m *HostnameServiceClient) ReserveHostnames(ctx context.Context, hostnames []string, leaseID v1beta4.LeaseID) ([]string, error)

ReserveHostnames provides a mock function with given fields: ctx, hostnames, leaseID

type HostnameServiceClient_CanReserveHostnames_Call

type HostnameServiceClient_CanReserveHostnames_Call struct {
	*mock.Call
}

HostnameServiceClient_CanReserveHostnames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanReserveHostnames'

func (*HostnameServiceClient_CanReserveHostnames_Call) Return

func (*HostnameServiceClient_CanReserveHostnames_Call) Run

func (*HostnameServiceClient_CanReserveHostnames_Call) RunAndReturn

type HostnameServiceClient_Expecter

type HostnameServiceClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*HostnameServiceClient_Expecter) CanReserveHostnames

func (_e *HostnameServiceClient_Expecter) CanReserveHostnames(hostnames interface{}, ownerAddr interface{}) *HostnameServiceClient_CanReserveHostnames_Call

CanReserveHostnames is a helper method to define mock.On call

  • hostnames []string
  • ownerAddr types.Address

func (*HostnameServiceClient_Expecter) PrepareHostnamesForTransfer

func (_e *HostnameServiceClient_Expecter) PrepareHostnamesForTransfer(ctx interface{}, hostnames interface{}, leaseID interface{}) *HostnameServiceClient_PrepareHostnamesForTransfer_Call

PrepareHostnamesForTransfer is a helper method to define mock.On call

  • ctx context.Context
  • hostnames []string
  • leaseID v1beta4.LeaseID

func (*HostnameServiceClient_Expecter) ReleaseHostnames

func (_e *HostnameServiceClient_Expecter) ReleaseHostnames(leaseID interface{}) *HostnameServiceClient_ReleaseHostnames_Call

ReleaseHostnames is a helper method to define mock.On call

  • leaseID v1beta4.LeaseID

func (*HostnameServiceClient_Expecter) ReserveHostnames

func (_e *HostnameServiceClient_Expecter) ReserveHostnames(ctx interface{}, hostnames interface{}, leaseID interface{}) *HostnameServiceClient_ReserveHostnames_Call

ReserveHostnames is a helper method to define mock.On call

  • ctx context.Context
  • hostnames []string
  • leaseID v1beta4.LeaseID

type HostnameServiceClient_PrepareHostnamesForTransfer_Call

type HostnameServiceClient_PrepareHostnamesForTransfer_Call struct {
	*mock.Call
}

HostnameServiceClient_PrepareHostnamesForTransfer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareHostnamesForTransfer'

func (*HostnameServiceClient_PrepareHostnamesForTransfer_Call) Return

func (*HostnameServiceClient_PrepareHostnamesForTransfer_Call) Run

func (*HostnameServiceClient_PrepareHostnamesForTransfer_Call) RunAndReturn

type HostnameServiceClient_ReleaseHostnames_Call

type HostnameServiceClient_ReleaseHostnames_Call struct {
	*mock.Call
}

HostnameServiceClient_ReleaseHostnames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseHostnames'

func (*HostnameServiceClient_ReleaseHostnames_Call) Return

func (*HostnameServiceClient_ReleaseHostnames_Call) Run

func (*HostnameServiceClient_ReleaseHostnames_Call) RunAndReturn

type HostnameServiceClient_ReserveHostnames_Call

type HostnameServiceClient_ReserveHostnames_Call struct {
	*mock.Call
}

HostnameServiceClient_ReserveHostnames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReserveHostnames'

func (*HostnameServiceClient_ReserveHostnames_Call) Return

func (*HostnameServiceClient_ReserveHostnames_Call) Run

func (*HostnameServiceClient_ReserveHostnames_Call) RunAndReturn

type IDeployment

type IDeployment struct {
	mock.Mock
}

IDeployment is an autogenerated mock type for the IDeployment type

func NewIDeployment

func NewIDeployment(t interface {
	mock.TestingT
	Cleanup(func())
}) *IDeployment

NewIDeployment creates a new instance of IDeployment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IDeployment) ClusterParams

func (_m *IDeployment) ClusterParams() interface{}

ClusterParams provides a mock function with given fields:

func (*IDeployment) EXPECT

func (_m *IDeployment) EXPECT() *IDeployment_Expecter

func (*IDeployment) LeaseID

func (_m *IDeployment) LeaseID() v1beta4.LeaseID

LeaseID provides a mock function with given fields:

func (*IDeployment) ManifestGroup

func (_m *IDeployment) ManifestGroup() *v2beta2.Group

ManifestGroup provides a mock function with given fields:

type IDeployment_ClusterParams_Call

type IDeployment_ClusterParams_Call struct {
	*mock.Call
}

IDeployment_ClusterParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterParams'

func (*IDeployment_ClusterParams_Call) Return

func (*IDeployment_ClusterParams_Call) Run

func (*IDeployment_ClusterParams_Call) RunAndReturn

func (_c *IDeployment_ClusterParams_Call) RunAndReturn(run func() interface{}) *IDeployment_ClusterParams_Call

type IDeployment_Expecter

type IDeployment_Expecter struct {
	// contains filtered or unexported fields
}

func (*IDeployment_Expecter) ClusterParams

ClusterParams is a helper method to define mock.On call

func (*IDeployment_Expecter) LeaseID

LeaseID is a helper method to define mock.On call

func (*IDeployment_Expecter) ManifestGroup

ManifestGroup is a helper method to define mock.On call

type IDeployment_LeaseID_Call

type IDeployment_LeaseID_Call struct {
	*mock.Call
}

IDeployment_LeaseID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LeaseID'

func (*IDeployment_LeaseID_Call) Return

func (*IDeployment_LeaseID_Call) Run

func (*IDeployment_LeaseID_Call) RunAndReturn

func (_c *IDeployment_LeaseID_Call) RunAndReturn(run func() v1beta4.LeaseID) *IDeployment_LeaseID_Call

type IDeployment_ManifestGroup_Call

type IDeployment_ManifestGroup_Call struct {
	*mock.Call
}

IDeployment_ManifestGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManifestGroup'

func (*IDeployment_ManifestGroup_Call) Return

func (*IDeployment_ManifestGroup_Call) Run

func (*IDeployment_ManifestGroup_Call) RunAndReturn

type Reservation

type Reservation struct {
	mock.Mock
}

Reservation is an autogenerated mock type for the Reservation type

func NewReservation

func NewReservation(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reservation

NewReservation creates a new instance of Reservation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Reservation) Allocated

func (_m *Reservation) Allocated() bool

Allocated provides a mock function with given fields:

func (*Reservation) ClusterParams

func (_m *Reservation) ClusterParams() interface{}

ClusterParams provides a mock function with given fields:

func (*Reservation) EXPECT

func (_m *Reservation) EXPECT() *Reservation_Expecter

func (*Reservation) GetAllocatedResources

func (_m *Reservation) GetAllocatedResources() deploymentv1beta3.ResourceUnits

GetAllocatedResources provides a mock function with given fields:

func (*Reservation) OrderID

func (_m *Reservation) OrderID() v1beta4.OrderID

OrderID provides a mock function with given fields:

func (*Reservation) Resources

Resources provides a mock function with given fields:

func (*Reservation) SetAllocatedResources

func (_m *Reservation) SetAllocatedResources(_a0 deploymentv1beta3.ResourceUnits)

SetAllocatedResources provides a mock function with given fields: _a0

func (*Reservation) SetClusterParams

func (_m *Reservation) SetClusterParams(_a0 interface{})

SetClusterParams provides a mock function with given fields: _a0

type ReservationGroup

type ReservationGroup struct {
	mock.Mock
}

ReservationGroup is an autogenerated mock type for the ReservationGroup type

func NewReservationGroup

func NewReservationGroup(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReservationGroup

NewReservationGroup creates a new instance of ReservationGroup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReservationGroup) ClusterParams

func (_m *ReservationGroup) ClusterParams() interface{}

ClusterParams provides a mock function with given fields:

func (*ReservationGroup) EXPECT

func (*ReservationGroup) GetAllocatedResources

func (_m *ReservationGroup) GetAllocatedResources() deploymentv1beta3.ResourceUnits

GetAllocatedResources provides a mock function with given fields:

func (*ReservationGroup) Resources

Resources provides a mock function with given fields:

func (*ReservationGroup) SetAllocatedResources

func (_m *ReservationGroup) SetAllocatedResources(_a0 deploymentv1beta3.ResourceUnits)

SetAllocatedResources provides a mock function with given fields: _a0

func (*ReservationGroup) SetClusterParams

func (_m *ReservationGroup) SetClusterParams(_a0 interface{})

SetClusterParams provides a mock function with given fields: _a0

type ReservationGroup_ClusterParams_Call

type ReservationGroup_ClusterParams_Call struct {
	*mock.Call
}

ReservationGroup_ClusterParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterParams'

func (*ReservationGroup_ClusterParams_Call) Return

func (*ReservationGroup_ClusterParams_Call) Run

func (*ReservationGroup_ClusterParams_Call) RunAndReturn

func (_c *ReservationGroup_ClusterParams_Call) RunAndReturn(run func() interface{}) *ReservationGroup_ClusterParams_Call

type ReservationGroup_Expecter

type ReservationGroup_Expecter struct {
	// contains filtered or unexported fields
}

func (*ReservationGroup_Expecter) ClusterParams

ClusterParams is a helper method to define mock.On call

func (*ReservationGroup_Expecter) GetAllocatedResources

GetAllocatedResources is a helper method to define mock.On call

func (*ReservationGroup_Expecter) Resources

Resources is a helper method to define mock.On call

func (*ReservationGroup_Expecter) SetAllocatedResources

func (_e *ReservationGroup_Expecter) SetAllocatedResources(_a0 interface{}) *ReservationGroup_SetAllocatedResources_Call

SetAllocatedResources is a helper method to define mock.On call

  • _a0 deploymentv1beta3.ResourceUnits

func (*ReservationGroup_Expecter) SetClusterParams

func (_e *ReservationGroup_Expecter) SetClusterParams(_a0 interface{}) *ReservationGroup_SetClusterParams_Call

SetClusterParams is a helper method to define mock.On call

  • _a0 interface{}

type ReservationGroup_GetAllocatedResources_Call

type ReservationGroup_GetAllocatedResources_Call struct {
	*mock.Call
}

ReservationGroup_GetAllocatedResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedResources'

func (*ReservationGroup_GetAllocatedResources_Call) Return

func (*ReservationGroup_GetAllocatedResources_Call) Run

func (*ReservationGroup_GetAllocatedResources_Call) RunAndReturn

type ReservationGroup_Resources_Call

type ReservationGroup_Resources_Call struct {
	*mock.Call
}

ReservationGroup_Resources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resources'

func (*ReservationGroup_Resources_Call) Return

func (*ReservationGroup_Resources_Call) Run

func (*ReservationGroup_Resources_Call) RunAndReturn

type ReservationGroup_SetAllocatedResources_Call

type ReservationGroup_SetAllocatedResources_Call struct {
	*mock.Call
}

ReservationGroup_SetAllocatedResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAllocatedResources'

func (*ReservationGroup_SetAllocatedResources_Call) Return

func (*ReservationGroup_SetAllocatedResources_Call) Run

func (*ReservationGroup_SetAllocatedResources_Call) RunAndReturn

type ReservationGroup_SetClusterParams_Call

type ReservationGroup_SetClusterParams_Call struct {
	*mock.Call
}

ReservationGroup_SetClusterParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetClusterParams'

func (*ReservationGroup_SetClusterParams_Call) Return

func (*ReservationGroup_SetClusterParams_Call) Run

func (*ReservationGroup_SetClusterParams_Call) RunAndReturn

func (_c *ReservationGroup_SetClusterParams_Call) RunAndReturn(run func(interface{})) *ReservationGroup_SetClusterParams_Call

type Reservation_Allocated_Call

type Reservation_Allocated_Call struct {
	*mock.Call
}

Reservation_Allocated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Allocated'

func (*Reservation_Allocated_Call) Return

func (*Reservation_Allocated_Call) Run

func (*Reservation_Allocated_Call) RunAndReturn

func (_c *Reservation_Allocated_Call) RunAndReturn(run func() bool) *Reservation_Allocated_Call

type Reservation_ClusterParams_Call

type Reservation_ClusterParams_Call struct {
	*mock.Call
}

Reservation_ClusterParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterParams'

func (*Reservation_ClusterParams_Call) Return

func (*Reservation_ClusterParams_Call) Run

func (*Reservation_ClusterParams_Call) RunAndReturn

func (_c *Reservation_ClusterParams_Call) RunAndReturn(run func() interface{}) *Reservation_ClusterParams_Call

type Reservation_Expecter

type Reservation_Expecter struct {
	// contains filtered or unexported fields
}

func (*Reservation_Expecter) Allocated

Allocated is a helper method to define mock.On call

func (*Reservation_Expecter) ClusterParams

ClusterParams is a helper method to define mock.On call

func (*Reservation_Expecter) GetAllocatedResources

func (_e *Reservation_Expecter) GetAllocatedResources() *Reservation_GetAllocatedResources_Call

GetAllocatedResources is a helper method to define mock.On call

func (*Reservation_Expecter) OrderID

OrderID is a helper method to define mock.On call

func (*Reservation_Expecter) Resources

Resources is a helper method to define mock.On call

func (*Reservation_Expecter) SetAllocatedResources

func (_e *Reservation_Expecter) SetAllocatedResources(_a0 interface{}) *Reservation_SetAllocatedResources_Call

SetAllocatedResources is a helper method to define mock.On call

  • _a0 deploymentv1beta3.ResourceUnits

func (*Reservation_Expecter) SetClusterParams

func (_e *Reservation_Expecter) SetClusterParams(_a0 interface{}) *Reservation_SetClusterParams_Call

SetClusterParams is a helper method to define mock.On call

  • _a0 interface{}

type Reservation_GetAllocatedResources_Call

type Reservation_GetAllocatedResources_Call struct {
	*mock.Call
}

Reservation_GetAllocatedResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedResources'

func (*Reservation_GetAllocatedResources_Call) Return

func (*Reservation_GetAllocatedResources_Call) Run

func (*Reservation_GetAllocatedResources_Call) RunAndReturn

type Reservation_OrderID_Call

type Reservation_OrderID_Call struct {
	*mock.Call
}

Reservation_OrderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderID'

func (*Reservation_OrderID_Call) Return

func (*Reservation_OrderID_Call) Run

func (*Reservation_OrderID_Call) RunAndReturn

func (_c *Reservation_OrderID_Call) RunAndReturn(run func() v1beta4.OrderID) *Reservation_OrderID_Call

type Reservation_Resources_Call

type Reservation_Resources_Call struct {
	*mock.Call
}

Reservation_Resources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resources'

func (*Reservation_Resources_Call) Return

func (*Reservation_Resources_Call) Run

func (*Reservation_Resources_Call) RunAndReturn

type Reservation_SetAllocatedResources_Call

type Reservation_SetAllocatedResources_Call struct {
	*mock.Call
}

Reservation_SetAllocatedResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAllocatedResources'

func (*Reservation_SetAllocatedResources_Call) Return

func (*Reservation_SetAllocatedResources_Call) Run

func (*Reservation_SetAllocatedResources_Call) RunAndReturn

type Reservation_SetClusterParams_Call

type Reservation_SetClusterParams_Call struct {
	*mock.Call
}

Reservation_SetClusterParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetClusterParams'

func (*Reservation_SetClusterParams_Call) Return

func (*Reservation_SetClusterParams_Call) Run

func (_c *Reservation_SetClusterParams_Call) Run(run func(_a0 interface{})) *Reservation_SetClusterParams_Call

func (*Reservation_SetClusterParams_Call) RunAndReturn

func (_c *Reservation_SetClusterParams_Call) RunAndReturn(run func(interface{})) *Reservation_SetClusterParams_Call

Jump to

Keyboard shortcuts

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