Documentation
¶
Index ¶
- Constants
- Variables
- func AddHost(host string, name string)
- func AddHosts(hosts []string, name string)
- func GetHostName(host string) string
- func GetTargetedPods() []v1.Pod
- func HostWithPort(host string) string
- func InitHosts()
- func PostStorageLimitToWorkers(payload PostStorageLimit) error
- func PostTargetedPodsToWorkers() error
- func RangeHosts(f func(key, value interface{}) bool)
- func RemoveHost(host string)
- func SetTargetedPods(pods []v1.Pod)
- type PostStorageLimit
Constants ¶
View Source
const DefaultNodeName = "localhost"
View Source
const DefaultWorkerHost = "127.0.0.1"
View Source
const DefaultWorkerPort = 8897
Variables ¶
View Source
var RemovedDefaultHost bool
Functions ¶
func GetHostName ¶ added in v0.4.0
func GetTargetedPods ¶ added in v0.6.2
func HostWithPort ¶
func PostStorageLimitToWorkers ¶ added in v0.5.0
func PostStorageLimitToWorkers(payload PostStorageLimit) error
func PostTargetedPodsToWorkers ¶ added in v0.6.0
func PostTargetedPodsToWorkers() error
func RangeHosts ¶
func RangeHosts(f func(key, value interface{}) bool)
func RemoveHost ¶
func RemoveHost(host string)
func SetTargetedPods ¶ added in v0.6.0
Types ¶
type PostStorageLimit ¶ added in v0.5.0
type PostStorageLimit struct {
Limit int64 `json:"limit"`
}
Click to show internal directories.
Click to hide internal directories.