Documentation ¶
Overview ¶
Copyright 2020 CLOUD&HEAT Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- type MockAgentController
- type MockLoadBalancerModelGenerator
- type MockPortMapper
- func (m *MockPortMapper) GetModel() map[string]string
- func (m *MockPortMapper) GetServiceL3Port(id model.ServiceIdentifier) (string, error)
- func (m *MockPortMapper) GetUsedL3Ports() ([]string, error)
- func (m *MockPortMapper) MapService(svc *corev1.Service) error
- func (m *MockPortMapper) SetAvailableL3Ports(portIDs []string) ([]model.ServiceIdentifier, error)
- func (m *MockPortMapper) UnmapService(id model.ServiceIdentifier) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgentController ¶
func NewMockAgentController ¶
func NewMockAgentController() *MockAgentController
func (*MockAgentController) PushConfig ¶
func (m *MockAgentController) PushConfig(cfg *model.LoadBalancer) error
type MockLoadBalancerModelGenerator ¶
func NewMockLoadBalancerModelGenerator ¶
func NewMockLoadBalancerModelGenerator() *MockLoadBalancerModelGenerator
func (*MockLoadBalancerModelGenerator) GenerateModel ¶
func (m *MockLoadBalancerModelGenerator) GenerateModel(portAssignment map[string]string) (*model.LoadBalancer, error)
type MockPortMapper ¶
func NewMockPortMapper ¶
func NewMockPortMapper() *MockPortMapper
func (*MockPortMapper) GetModel ¶
func (m *MockPortMapper) GetModel() map[string]string
func (*MockPortMapper) GetServiceL3Port ¶
func (m *MockPortMapper) GetServiceL3Port(id model.ServiceIdentifier) (string, error)
func (*MockPortMapper) GetUsedL3Ports ¶
func (m *MockPortMapper) GetUsedL3Ports() ([]string, error)
func (*MockPortMapper) MapService ¶
func (m *MockPortMapper) MapService(svc *corev1.Service) error
func (*MockPortMapper) SetAvailableL3Ports ¶
func (m *MockPortMapper) SetAvailableL3Ports(portIDs []string) ([]model.ServiceIdentifier, error)
func (*MockPortMapper) UnmapService ¶
func (m *MockPortMapper) UnmapService(id model.ServiceIdentifier) error
Click to show internal directories.
Click to hide internal directories.