aporia-ai/kubesurvival

View on GitHub
pkg/nodesource/nodesource.go

Summary

Maintainability
A
0 mins
Test Coverage
package nodesource

import "github.com/pfnet-research/k8s-cluster-simulator/pkg/config"

type Node interface {
    GetHourlyPrice() float64
    GetNodeConfig(nodeName string) *config.NodeConfig
}

type NodeSource interface {
    GetNodes() ([]Node, error)
}