mocks

package
v0.0.0-...-930f148 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider struct {
	mock.Mock
}

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

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

type NodeGroup struct {
	mock.Mock
}

NodeGroup is an autogenerated mock type for the NodeGroup type

func (*NodeGroup) AtomicIncreaseSize

func (_m *NodeGroup) AtomicIncreaseSize(delta int) error

AtomicIncreaseSize provides a mock function with given fields: delta

func (*NodeGroup) Autoprovisioned

func (_m *NodeGroup) Autoprovisioned() bool

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) Debug

func (_m *NodeGroup) Debug() string

Debug provides a mock function with given fields:

func (*NodeGroup) DecreaseTargetSize

func (_m *NodeGroup) DecreaseTargetSize(delta int) error

DecreaseTargetSize provides a mock function with given fields: delta

func (*NodeGroup) Delete

func (_m *NodeGroup) Delete() error

Delete provides a mock function with given fields:

func (*NodeGroup) DeleteNodes

func (_m *NodeGroup) DeleteNodes(_a0 []*v1.Node) error

DeleteNodes provides a mock function with given fields: _a0

func (*NodeGroup) Exist

func (_m *NodeGroup) Exist() bool

Exist provides a mock function with given fields:

func (*NodeGroup) ForceDeleteNodes

func (_m *NodeGroup) ForceDeleteNodes(_a0 []*v1.Node) error

ForceDeleteNodes deletes nodes from the group regardless of constraints.

func (*NodeGroup) GetOptions

GetOptions provides a mock function with given fields: defaults

func (*NodeGroup) Id

func (_m *NodeGroup) Id() string

Id provides a mock function with given fields:

func (*NodeGroup) IncreaseSize

func (_m *NodeGroup) IncreaseSize(delta int) error

IncreaseSize provides a mock function with given fields: delta

func (*NodeGroup) MaxSize

func (_m *NodeGroup) MaxSize() int

MaxSize provides a mock function with given fields:

func (*NodeGroup) MinSize

func (_m *NodeGroup) MinSize() int

MinSize provides a mock function with given fields:

func (*NodeGroup) Nodes

func (_m *NodeGroup) Nodes() ([]cloudprovider.Instance, error)

Nodes provides a mock function with given fields:

func (*NodeGroup) TargetSize

func (_m *NodeGroup) TargetSize() (int, error)

TargetSize provides a mock function with given fields:

func (*NodeGroup) TemplateNodeInfo

func (_m *NodeGroup) TemplateNodeInfo() (*framework.NodeInfo, error)

TemplateNodeInfo provides a mock function with given fields:

type PricingModel

type PricingModel struct {
	mock.Mock
}

PricingModel is an autogenerated mock type for the PricingModel type

func (*PricingModel) NodePrice

func (_m *PricingModel) NodePrice(node *v1.Node, startTime time.Time, endTime time.Time) (float64, error)

NodePrice provides a mock function with given fields: node, startTime, endTime

func (*PricingModel) PodPrice

func (_m *PricingModel) PodPrice(pod *v1.Pod, startTime time.Time, endTime time.Time) (float64, error)

PodPrice provides a mock function with given fields: pod, startTime, endTime

Jump to

Keyboard shortcuts

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