planner

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package planner is a generated GoMock package.

Index

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

func (m *MockService) LoadConfig(ctx context.Context) (*network.Config, error)

LoadConfig mocks base method

func (*MockService) Suggest

func (m *MockService) Suggest(ctx context.Context, filter string, networkTypes ...network.Type) (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, routes []*compute.Route, 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 interface{}, networkTypes ...interface{}) *gomock.Call

Suggest indicates an expected call of Suggest

func (*MockServiceMockRecorder) SuggestSingleNetworkRange

func (mr *MockServiceMockRecorder) SuggestSingleNetworkRange(ctx, rangeConfigs, subnetworks, routes, 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, filter string, networkTypes ...networkv1.Type) (subnetsMap map[networkv1.Type]*net.IPNet, err error)
	SuggestSingleNetworkRange(ctx context.Context, rangeConfigs []networkv1.RangeConfig, subnetworks []*computev1.Subnetwork, routes []*computev1.Route, networkType networkv1.Type) (subnetworkRange *net.IPNet, err error)
}

func NewService

func NewService(ctx context.Context, gcpClient gcp.Client, configPath string) (Service, error)

Jump to

Keyboard shortcuts

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