Documentation ¶
Overview ¶
Package planner is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) LoadConfig(ctx context.Context) (*network.Config, error)
- func (m *MockService) Suggest(ctx context.Context, filter, region string, rangeTypes ...network.RangeType) (map[network.Type]*net.IPNet, error)
- func (m *MockService) SuggestSingleNetworkRange(ctx context.Context, rangeConfigs []network.RangeConfig, ...) (*net.IPNet, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) LoadConfig(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Suggest(ctx, filter, region interface{}, rangeTypes ...interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SuggestSingleNetworkRange(ctx, rangeConfigs, subnetworks, region, networkType interface{}) *gomock.Call
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) LoadConfig ¶
LoadConfig mocks base method
func (*MockService) Suggest ¶
func (m *MockService) Suggest(ctx context.Context, filter, region string, rangeTypes ...network.RangeType) (map[network.Type]*net.IPNet, error)
Suggest mocks base method
func (*MockService) SuggestSingleNetworkRange ¶
func (m *MockService) SuggestSingleNetworkRange(ctx context.Context, rangeConfigs []network.RangeConfig, subnetworks []*compute.Subnetwork, region string, networkType network.Type) (*net.IPNet, error)
SuggestSingleNetworkRange mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) LoadConfig ¶
func (mr *MockServiceMockRecorder) LoadConfig(ctx interface{}) *gomock.Call
LoadConfig indicates an expected call of LoadConfig
func (*MockServiceMockRecorder) Suggest ¶
func (mr *MockServiceMockRecorder) Suggest(ctx, filter, region interface{}, rangeTypes ...interface{}) *gomock.Call
Suggest indicates an expected call of Suggest
func (*MockServiceMockRecorder) SuggestSingleNetworkRange ¶
func (mr *MockServiceMockRecorder) SuggestSingleNetworkRange(ctx, rangeConfigs, subnetworks, region, networkType interface{}) *gomock.Call
SuggestSingleNetworkRange indicates an expected call of SuggestSingleNetworkRange
type Service ¶
type Service interface { LoadConfig(ctx context.Context) (config *networkv1.Config, err error) Suggest(ctx context.Context, region, filter string, networkTypes ...networkv1.Type) (subnetsMap map[networkv1.Type]*net.IPNet, err error) SuggestSingleNetworkRange(ctx context.Context, rangeConfigs []networkv1.RangeConfig, subnetworks []*computev1.Subnetwork, region string, networkType networkv1.Type) (subnetworkRange *net.IPNet, err error) }
Click to show internal directories.
Click to hide internal directories.