Documentation ¶
Index ¶
- type MockEdgeLBManager
- func (m *MockEdgeLBManager) CreatePool(ctx context.Context, pool *edgelbmodels.V2Pool) (*edgelbmodels.V2Pool, error)
- func (m *MockEdgeLBManager) DeletePool(ctx context.Context, name string) error
- func (m *MockEdgeLBManager) GetPool(ctx context.Context, name string) (*edgelbmodels.V2Pool, error)
- func (m *MockEdgeLBManager) GetPoolMetadata(ctx context.Context, name string) (*edgelbmodels.V2PoolMetadata, error)
- func (m *MockEdgeLBManager) GetPools(ctx context.Context) ([]*edgelbmodels.V2Pool, error)
- func (m *MockEdgeLBManager) GetVersion(ctx context.Context) (string, error)
- func (m *MockEdgeLBManager) PoolGroup() string
- func (m *MockEdgeLBManager) UpdatePool(ctx context.Context, pool *edgelbmodels.V2Pool) (*edgelbmodels.V2Pool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEdgeLBManager ¶
MockEdgeLBManager is a mock implementation of the "EdgeLBManager" interface.
func (*MockEdgeLBManager) CreatePool ¶
func (m *MockEdgeLBManager) CreatePool(ctx context.Context, pool *edgelbmodels.V2Pool) (*edgelbmodels.V2Pool, error)
CreatePool creates the specified EdgeLB pool in the EdgeLB API server.
func (*MockEdgeLBManager) DeletePool ¶
func (m *MockEdgeLBManager) DeletePool(ctx context.Context, name string) error
DeletePool deletes the EdgeLB pool with the specified name.
func (*MockEdgeLBManager) GetPool ¶
func (m *MockEdgeLBManager) GetPool(ctx context.Context, name string) (*edgelbmodels.V2Pool, error)
GetPool returns the EdgeLB pool with the specified name.
func (*MockEdgeLBManager) GetPoolMetadata ¶
func (m *MockEdgeLBManager) GetPoolMetadata(ctx context.Context, name string) (*edgelbmodels.V2PoolMetadata, error)
GetPoolMetadata returns the metadata associated with the specified EdgeLB pool
func (*MockEdgeLBManager) GetPools ¶
func (m *MockEdgeLBManager) GetPools(ctx context.Context) ([]*edgelbmodels.V2Pool, error)
GetPools returns the list of EdgeLB pools known to the EdgeLB API server.
func (*MockEdgeLBManager) GetVersion ¶
func (m *MockEdgeLBManager) GetVersion(ctx context.Context) (string, error)
GetVersion returns the current version of EdgeLB.
func (*MockEdgeLBManager) PoolGroup ¶
func (m *MockEdgeLBManager) PoolGroup() string
PoolGroup returns the DC/OS service group in which to create EdgeLB pools.
func (*MockEdgeLBManager) UpdatePool ¶
func (m *MockEdgeLBManager) UpdatePool(ctx context.Context, pool *edgelbmodels.V2Pool) (*edgelbmodels.V2Pool, error)
UpdatePool updates the specified EdgeLB pool in the EdgeLB API server.
Click to show internal directories.
Click to hide internal directories.