Documentation ¶
Index ¶
- type Session
- func (_m *Session) Cancel()
- func (_m *Session) Commit() error
- func (_m *Session) EXPECT() *Session_Expecter
- func (_m *Session) GetLastReservedIP(poolKey string) net.IP
- func (_m *Session) GetReservationByID(poolKey string, id string, ifName string) *types.Reservation
- func (_m *Session) ListPools() []string
- func (_m *Session) ListReservations(poolKey string) []types.Reservation
- func (_m *Session) ReleaseReservationByID(poolKey string, id string, ifName string)
- func (_m *Session) RemovePool(poolKey string)
- func (_m *Session) Reserve(poolKey string, id string, ifName string, meta types.ReservationMetadata, ...) error
- func (_m *Session) SetLastReservedIP(poolKey string, ip net.IP)
- type Session_Cancel_Call
- type Session_Commit_Call
- type Session_Expecter
- func (_e *Session_Expecter) Cancel() *Session_Cancel_Call
- func (_e *Session_Expecter) Commit() *Session_Commit_Call
- func (_e *Session_Expecter) GetLastReservedIP(poolKey interface{}) *Session_GetLastReservedIP_Call
- func (_e *Session_Expecter) GetReservationByID(poolKey interface{}, id interface{}, ifName interface{}) *Session_GetReservationByID_Call
- func (_e *Session_Expecter) ListPools() *Session_ListPools_Call
- func (_e *Session_Expecter) ListReservations(poolKey interface{}) *Session_ListReservations_Call
- func (_e *Session_Expecter) ReleaseReservationByID(poolKey interface{}, id interface{}, ifName interface{}) *Session_ReleaseReservationByID_Call
- func (_e *Session_Expecter) RemovePool(poolKey interface{}) *Session_RemovePool_Call
- func (_e *Session_Expecter) Reserve(poolKey interface{}, id interface{}, ifName interface{}, meta interface{}, ...) *Session_Reserve_Call
- func (_e *Session_Expecter) SetLastReservedIP(poolKey interface{}, ip interface{}) *Session_SetLastReservedIP_Call
- type Session_GetLastReservedIP_Call
- func (_c *Session_GetLastReservedIP_Call) Return(_a0 net.IP) *Session_GetLastReservedIP_Call
- func (_c *Session_GetLastReservedIP_Call) Run(run func(poolKey string)) *Session_GetLastReservedIP_Call
- func (_c *Session_GetLastReservedIP_Call) RunAndReturn(run func(string) net.IP) *Session_GetLastReservedIP_Call
- type Session_GetReservationByID_Call
- func (_c *Session_GetReservationByID_Call) Return(_a0 *types.Reservation) *Session_GetReservationByID_Call
- func (_c *Session_GetReservationByID_Call) Run(run func(poolKey string, id string, ifName string)) *Session_GetReservationByID_Call
- func (_c *Session_GetReservationByID_Call) RunAndReturn(run func(string, string, string) *types.Reservation) *Session_GetReservationByID_Call
- type Session_ListPools_Call
- type Session_ListReservations_Call
- func (_c *Session_ListReservations_Call) Return(_a0 []types.Reservation) *Session_ListReservations_Call
- func (_c *Session_ListReservations_Call) Run(run func(poolKey string)) *Session_ListReservations_Call
- func (_c *Session_ListReservations_Call) RunAndReturn(run func(string) []types.Reservation) *Session_ListReservations_Call
- type Session_ReleaseReservationByID_Call
- func (_c *Session_ReleaseReservationByID_Call) Return() *Session_ReleaseReservationByID_Call
- func (_c *Session_ReleaseReservationByID_Call) Run(run func(poolKey string, id string, ifName string)) *Session_ReleaseReservationByID_Call
- func (_c *Session_ReleaseReservationByID_Call) RunAndReturn(run func(string, string, string)) *Session_ReleaseReservationByID_Call
- type Session_RemovePool_Call
- type Session_Reserve_Call
- type Session_SetLastReservedIP_Call
- func (_c *Session_SetLastReservedIP_Call) Return() *Session_SetLastReservedIP_Call
- func (_c *Session_SetLastReservedIP_Call) Run(run func(poolKey string, ip net.IP)) *Session_SetLastReservedIP_Call
- func (_c *Session_SetLastReservedIP_Call) RunAndReturn(run func(string, net.IP)) *Session_SetLastReservedIP_Call
- type Store
- type Store_Expecter
- type Store_Open_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
Session is an autogenerated mock type for the Session type
func NewSession ¶
func NewSession(t mockConstructorTestingTNewSession) *Session
NewSession creates a new instance of Session. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Session) Cancel ¶
func (_m *Session) Cancel()
Cancel provides a mock function with given fields:
func (*Session) EXPECT ¶
func (_m *Session) EXPECT() *Session_Expecter
func (*Session) GetLastReservedIP ¶
GetLastReservedIP provides a mock function with given fields: poolKey
func (*Session) GetReservationByID ¶
GetReservationByID provides a mock function with given fields: poolKey, id, ifName
func (*Session) ListReservations ¶
func (_m *Session) ListReservations(poolKey string) []types.Reservation
ListReservations provides a mock function with given fields: poolKey
func (*Session) ReleaseReservationByID ¶
ReleaseReservationByID provides a mock function with given fields: poolKey, id, ifName
func (*Session) RemovePool ¶
RemovePool provides a mock function with given fields: poolKey
type Session_Cancel_Call ¶
Session_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'
func (*Session_Cancel_Call) Return ¶
func (_c *Session_Cancel_Call) Return() *Session_Cancel_Call
func (*Session_Cancel_Call) Run ¶
func (_c *Session_Cancel_Call) Run(run func()) *Session_Cancel_Call
func (*Session_Cancel_Call) RunAndReturn ¶
func (_c *Session_Cancel_Call) RunAndReturn(run func()) *Session_Cancel_Call
type Session_Commit_Call ¶
Session_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Session_Commit_Call) Return ¶
func (_c *Session_Commit_Call) Return(_a0 error) *Session_Commit_Call
func (*Session_Commit_Call) Run ¶
func (_c *Session_Commit_Call) Run(run func()) *Session_Commit_Call
func (*Session_Commit_Call) RunAndReturn ¶
func (_c *Session_Commit_Call) RunAndReturn(run func() error) *Session_Commit_Call
type Session_Expecter ¶
type Session_Expecter struct {
// contains filtered or unexported fields
}
func (*Session_Expecter) Cancel ¶
func (_e *Session_Expecter) Cancel() *Session_Cancel_Call
Cancel is a helper method to define mock.On call
func (*Session_Expecter) Commit ¶
func (_e *Session_Expecter) Commit() *Session_Commit_Call
Commit is a helper method to define mock.On call
func (*Session_Expecter) GetLastReservedIP ¶
func (_e *Session_Expecter) GetLastReservedIP(poolKey interface{}) *Session_GetLastReservedIP_Call
GetLastReservedIP is a helper method to define mock.On call
- poolKey string
func (*Session_Expecter) GetReservationByID ¶
func (_e *Session_Expecter) GetReservationByID(poolKey interface{}, id interface{}, ifName interface{}) *Session_GetReservationByID_Call
GetReservationByID is a helper method to define mock.On call
- poolKey string
- id string
- ifName string
func (*Session_Expecter) ListPools ¶
func (_e *Session_Expecter) ListPools() *Session_ListPools_Call
ListPools is a helper method to define mock.On call
func (*Session_Expecter) ListReservations ¶
func (_e *Session_Expecter) ListReservations(poolKey interface{}) *Session_ListReservations_Call
ListReservations is a helper method to define mock.On call
- poolKey string
func (*Session_Expecter) ReleaseReservationByID ¶
func (_e *Session_Expecter) ReleaseReservationByID(poolKey interface{}, id interface{}, ifName interface{}) *Session_ReleaseReservationByID_Call
ReleaseReservationByID is a helper method to define mock.On call
- poolKey string
- id string
- ifName string
func (*Session_Expecter) RemovePool ¶
func (_e *Session_Expecter) RemovePool(poolKey interface{}) *Session_RemovePool_Call
RemovePool is a helper method to define mock.On call
- poolKey string
func (*Session_Expecter) Reserve ¶
func (_e *Session_Expecter) Reserve(poolKey interface{}, id interface{}, ifName interface{}, meta interface{}, address interface{}) *Session_Reserve_Call
Reserve is a helper method to define mock.On call
- poolKey string
- id string
- ifName string
- meta types.ReservationMetadata
- address net.IP
func (*Session_Expecter) SetLastReservedIP ¶
func (_e *Session_Expecter) SetLastReservedIP(poolKey interface{}, ip interface{}) *Session_SetLastReservedIP_Call
SetLastReservedIP is a helper method to define mock.On call
- poolKey string
- ip net.IP
type Session_GetLastReservedIP_Call ¶
Session_GetLastReservedIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastReservedIP'
func (*Session_GetLastReservedIP_Call) Return ¶
func (_c *Session_GetLastReservedIP_Call) Return(_a0 net.IP) *Session_GetLastReservedIP_Call
func (*Session_GetLastReservedIP_Call) Run ¶
func (_c *Session_GetLastReservedIP_Call) Run(run func(poolKey string)) *Session_GetLastReservedIP_Call
func (*Session_GetLastReservedIP_Call) RunAndReturn ¶
func (_c *Session_GetLastReservedIP_Call) RunAndReturn(run func(string) net.IP) *Session_GetLastReservedIP_Call
type Session_GetReservationByID_Call ¶
Session_GetReservationByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReservationByID'
func (*Session_GetReservationByID_Call) Return ¶
func (_c *Session_GetReservationByID_Call) Return(_a0 *types.Reservation) *Session_GetReservationByID_Call
func (*Session_GetReservationByID_Call) Run ¶
func (_c *Session_GetReservationByID_Call) Run(run func(poolKey string, id string, ifName string)) *Session_GetReservationByID_Call
func (*Session_GetReservationByID_Call) RunAndReturn ¶
func (_c *Session_GetReservationByID_Call) RunAndReturn(run func(string, string, string) *types.Reservation) *Session_GetReservationByID_Call
type Session_ListPools_Call ¶
Session_ListPools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPools'
func (*Session_ListPools_Call) Return ¶
func (_c *Session_ListPools_Call) Return(_a0 []string) *Session_ListPools_Call
func (*Session_ListPools_Call) Run ¶
func (_c *Session_ListPools_Call) Run(run func()) *Session_ListPools_Call
func (*Session_ListPools_Call) RunAndReturn ¶
func (_c *Session_ListPools_Call) RunAndReturn(run func() []string) *Session_ListPools_Call
type Session_ListReservations_Call ¶
Session_ListReservations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReservations'
func (*Session_ListReservations_Call) Return ¶
func (_c *Session_ListReservations_Call) Return(_a0 []types.Reservation) *Session_ListReservations_Call
func (*Session_ListReservations_Call) Run ¶
func (_c *Session_ListReservations_Call) Run(run func(poolKey string)) *Session_ListReservations_Call
func (*Session_ListReservations_Call) RunAndReturn ¶
func (_c *Session_ListReservations_Call) RunAndReturn(run func(string) []types.Reservation) *Session_ListReservations_Call
type Session_ReleaseReservationByID_Call ¶
Session_ReleaseReservationByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseReservationByID'
func (*Session_ReleaseReservationByID_Call) Return ¶
func (_c *Session_ReleaseReservationByID_Call) Return() *Session_ReleaseReservationByID_Call
func (*Session_ReleaseReservationByID_Call) Run ¶
func (_c *Session_ReleaseReservationByID_Call) Run(run func(poolKey string, id string, ifName string)) *Session_ReleaseReservationByID_Call
func (*Session_ReleaseReservationByID_Call) RunAndReturn ¶
func (_c *Session_ReleaseReservationByID_Call) RunAndReturn(run func(string, string, string)) *Session_ReleaseReservationByID_Call
type Session_RemovePool_Call ¶
Session_RemovePool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePool'
func (*Session_RemovePool_Call) Return ¶
func (_c *Session_RemovePool_Call) Return() *Session_RemovePool_Call
func (*Session_RemovePool_Call) Run ¶
func (_c *Session_RemovePool_Call) Run(run func(poolKey string)) *Session_RemovePool_Call
func (*Session_RemovePool_Call) RunAndReturn ¶
func (_c *Session_RemovePool_Call) RunAndReturn(run func(string)) *Session_RemovePool_Call
type Session_Reserve_Call ¶
Session_Reserve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reserve'
func (*Session_Reserve_Call) Return ¶
func (_c *Session_Reserve_Call) Return(_a0 error) *Session_Reserve_Call
func (*Session_Reserve_Call) Run ¶
func (_c *Session_Reserve_Call) Run(run func(poolKey string, id string, ifName string, meta types.ReservationMetadata, address net.IP)) *Session_Reserve_Call
func (*Session_Reserve_Call) RunAndReturn ¶
func (_c *Session_Reserve_Call) RunAndReturn(run func(string, string, string, types.ReservationMetadata, net.IP) error) *Session_Reserve_Call
type Session_SetLastReservedIP_Call ¶
Session_SetLastReservedIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLastReservedIP'
func (*Session_SetLastReservedIP_Call) Return ¶
func (_c *Session_SetLastReservedIP_Call) Return() *Session_SetLastReservedIP_Call
func (*Session_SetLastReservedIP_Call) Run ¶
func (_c *Session_SetLastReservedIP_Call) Run(run func(poolKey string, ip net.IP)) *Session_SetLastReservedIP_Call
func (*Session_SetLastReservedIP_Call) RunAndReturn ¶
func (_c *Session_SetLastReservedIP_Call) RunAndReturn(run func(string, net.IP)) *Session_SetLastReservedIP_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
func NewStore(t mockConstructorTestingTNewStore) *Store
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Store) EXPECT ¶
func (_m *Store) EXPECT() *Store_Expecter
type Store_Expecter ¶
type Store_Expecter struct {
// contains filtered or unexported fields
}
func (*Store_Expecter) Open ¶
func (_e *Store_Expecter) Open(ctx interface{}) *Store_Open_Call
Open is a helper method to define mock.On call
- ctx context.Context
type Store_Open_Call ¶
Store_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*Store_Open_Call) Return ¶
func (_c *Store_Open_Call) Return(_a0 store.Session, _a1 error) *Store_Open_Call
func (*Store_Open_Call) Run ¶
func (_c *Store_Open_Call) Run(run func(ctx context.Context)) *Store_Open_Call
func (*Store_Open_Call) RunAndReturn ¶
func (_c *Store_Open_Call) RunAndReturn(run func(context.Context) (store.Session, error)) *Store_Open_Call