Documentation ¶
Index ¶
- type CloudProvider
- func (_m *CloudProvider) Cleanup() error
- func (_m *CloudProvider) GPULabel() string
- func (_m *CloudProvider) GetAvailableGPUTypes() map[string]struct{}
- func (_m *CloudProvider) GetAvailableMachineTypes() ([]string, error)
- func (_m *CloudProvider) GetNodeGpuConfig(_a0 *v1.Node) *cloudprovider.GpuConfig
- func (_m *CloudProvider) GetResourceLimiter() (*cloudprovider.ResourceLimiter, error)
- func (_m *CloudProvider) HasInstance(_a0 *v1.Node) (bool, 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) AtomicIncreaseSize(delta int) error
- 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) ForceDeleteNodes(_a0 []*v1.Node) error
- func (_m *NodeGroup) GetOptions(defaults config.NodeGroupAutoscalingOptions) (*config.NodeGroupAutoscalingOptions, error)
- 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() (*framework.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) GPULabel ¶
func (_m *CloudProvider) GPULabel() string
GPULabel provides a mock function with given fields:
func (*CloudProvider) GetAvailableGPUTypes ¶
func (_m *CloudProvider) GetAvailableGPUTypes() map[string]struct{}
GetAvailableGPUTypes 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) GetNodeGpuConfig ¶
func (_m *CloudProvider) GetNodeGpuConfig(_a0 *v1.Node) *cloudprovider.GpuConfig
GetNodeGpuConfig returns the label, type and resource name for the GPU added to node. If node doesn't have any GPUs, it returns nil.
func (*CloudProvider) GetResourceLimiter ¶
func (_m *CloudProvider) GetResourceLimiter() (*cloudprovider.ResourceLimiter, error)
GetResourceLimiter provides a mock function with given fields:
func (*CloudProvider) HasInstance ¶
func (_m *CloudProvider) HasInstance(_a0 *v1.Node) (bool, error)
HasInstance 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) AtomicIncreaseSize ¶
AtomicIncreaseSize provides a mock function with given fields: delta
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) ForceDeleteNodes ¶
ForceDeleteNodes deletes nodes from the group regardless of constraints.
func (*NodeGroup) GetOptions ¶
func (_m *NodeGroup) GetOptions(defaults config.NodeGroupAutoscalingOptions) (*config.NodeGroupAutoscalingOptions, error)
GetOptions provides a mock function with given fields: defaults
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