Documentation ¶
Index ¶
- type CloudProvider
- func (_m *CloudProvider) Cleanup() error
- func (_m *CloudProvider) GetAvailableMachineTypes() ([]string, error)
- func (_m *CloudProvider) GetResourceLimiter() (*cloudprovider.ResourceLimiter, error)
- func (_m *CloudProvider) Name() string
- func (_m *CloudProvider) NewNodeGroup(machineType string, labels map[string]string, systemLabels map[string]string, ...) (cloudprovider.NodeGroup, error)
- func (_m *CloudProvider) NodeGroupForNode(_a0 *v1.Node) (cloudprovider.NodeGroup, error)
- func (_m *CloudProvider) NodeGroups() []cloudprovider.NodeGroup
- func (_m *CloudProvider) Pricing() (cloudprovider.PricingModel, errors.AutoscalerError)
- func (_m *CloudProvider) Refresh() error
- type NodeGroup
- func (_m *NodeGroup) Autoprovisioned() bool
- func (_m *NodeGroup) Create() (cloudprovider.NodeGroup, error)
- func (_m *NodeGroup) Debug() string
- func (_m *NodeGroup) DecreaseTargetSize(delta int) error
- func (_m *NodeGroup) Delete() error
- func (_m *NodeGroup) DeleteNodes(_a0 []*v1.Node) error
- func (_m *NodeGroup) Exist() bool
- func (_m *NodeGroup) Id() string
- func (_m *NodeGroup) IncreaseSize(delta int) error
- func (_m *NodeGroup) MaxSize() int
- func (_m *NodeGroup) MinSize() int
- func (_m *NodeGroup) Nodes() ([]cloudprovider.Instance, error)
- func (_m *NodeGroup) TargetSize() (int, error)
- func (_m *NodeGroup) TemplateNodeInfo() (*cache.NodeInfo, error)
- type PricingModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
CloudProvider is an autogenerated mock type for the CloudProvider type
func (*CloudProvider) Cleanup ¶
func (_m *CloudProvider) Cleanup() error
Cleanup provides a mock function with given fields:
func (*CloudProvider) GetAvailableMachineTypes ¶
func (_m *CloudProvider) GetAvailableMachineTypes() ([]string, error)
GetAvailableMachineTypes provides a mock function with given fields:
func (*CloudProvider) GetResourceLimiter ¶
func (_m *CloudProvider) GetResourceLimiter() (*cloudprovider.ResourceLimiter, error)
GetResourceLimiter provides a mock function with given fields:
func (*CloudProvider) Name ¶
func (_m *CloudProvider) Name() string
Name provides a mock function with given fields:
func (*CloudProvider) NewNodeGroup ¶
func (_m *CloudProvider) NewNodeGroup(machineType string, labels map[string]string, systemLabels map[string]string, taints []v1.Taint, extraResources map[string]resource.Quantity) (cloudprovider.NodeGroup, error)
NewNodeGroup provides a mock function with given fields: machineType, labels, systemLabels, taints, extraResources
func (*CloudProvider) NodeGroupForNode ¶
func (_m *CloudProvider) NodeGroupForNode(_a0 *v1.Node) (cloudprovider.NodeGroup, error)
NodeGroupForNode provides a mock function with given fields: _a0
func (*CloudProvider) NodeGroups ¶
func (_m *CloudProvider) NodeGroups() []cloudprovider.NodeGroup
NodeGroups provides a mock function with given fields:
func (*CloudProvider) Pricing ¶
func (_m *CloudProvider) Pricing() (cloudprovider.PricingModel, errors.AutoscalerError)
Pricing provides a mock function with given fields:
func (*CloudProvider) Refresh ¶
func (_m *CloudProvider) Refresh() error
Refresh provides a mock function with given fields:
type NodeGroup ¶
NodeGroup is an autogenerated mock type for the NodeGroup type
func (*NodeGroup) Autoprovisioned ¶
Autoprovisioned provides a mock function with given fields:
func (*NodeGroup) Create ¶
func (_m *NodeGroup) Create() (cloudprovider.NodeGroup, error)
Create provides a mock function with given fields:
func (*NodeGroup) DecreaseTargetSize ¶
DecreaseTargetSize provides a mock function with given fields: delta
func (*NodeGroup) DeleteNodes ¶
DeleteNodes provides a mock function with given fields: _a0
func (*NodeGroup) IncreaseSize ¶
IncreaseSize provides a mock function with given fields: delta
func (*NodeGroup) Nodes ¶
func (_m *NodeGroup) Nodes() ([]cloudprovider.Instance, error)
Nodes provides a mock function with given fields:
func (*NodeGroup) TargetSize ¶
TargetSize provides a mock function with given fields:
type PricingModel ¶
PricingModel is an autogenerated mock type for the PricingModel type