Documentation
¶
Index ¶
- Constants
- Variables
- func AddHost(host string, name string)
- func AddHosts(hosts []string, name string)
- func DeleteScriptToWorkers(key int64) (err error)
- func GetHostName(host string) string
- func GetLicense() bool
- func GetStorageLimit() int64
- func GetTargetedPods() []v1.Pod
- func HostWithPort(host string) string
- func InitHosts()
- func Len() uint
- func PostLicenseToWorkers() error
- func PostSetHostNodeToWorkers()
- func PostStorageLimitToWorkers() error
- func PostTargetedPodsToWorkers() error
- func PutEnvToWorkers(env map[string]interface{}) (err error)
- func PutScriptToWorkers(key int64, payload scripts.Script) (err error)
- func RangeHosts(f func(key, value interface{}) bool)
- func RemoveHost(host string)
- func SetLicense(v bool)
- func SetStorageLimit(limit int64)
- func SetTargetedPods(pods []v1.Pod)
- func UpdateWorkers() (err error)
- func UpdateWorkersAsync()
- type PostLicense
- type PostStorageLimit
- type Self
Constants ¶
View Source
const DefaultNodeName = "localhost"
View Source
const DefaultWorkerHost = "127.0.0.1"
Variables ¶
View Source
var RemovedDefaultHost bool
View Source
var WorkerPort = "8897"
Functions ¶
func DeleteScriptToWorkers ¶ added in v0.8.6
func GetHostName ¶ added in v0.4.0
func GetLicense ¶ added in v0.8.6
func GetLicense() bool
func GetStorageLimit ¶ added in v0.6.4
func GetStorageLimit() int64
func GetTargetedPods ¶ added in v0.6.2
func HostWithPort ¶
func PostLicenseToWorkers ¶ added in v0.8.6
func PostLicenseToWorkers() error
func PostSetHostNodeToWorkers ¶ added in v0.8.6
func PostSetHostNodeToWorkers()
func PostStorageLimitToWorkers ¶ added in v0.5.0
func PostStorageLimitToWorkers() error
func PostTargetedPodsToWorkers ¶ added in v0.6.0
func PostTargetedPodsToWorkers() error
func PutEnvToWorkers ¶ added in v0.8.6
func PutScriptToWorkers ¶ added in v0.8.6
func RangeHosts ¶
func RangeHosts(f func(key, value interface{}) bool)
func RemoveHost ¶
func RemoveHost(host string)
func SetLicense ¶ added in v0.8.6
func SetLicense(v bool)
func SetStorageLimit ¶ added in v0.6.4
func SetStorageLimit(limit int64)
func SetTargetedPods ¶ added in v0.6.0
func UpdateWorkers ¶ added in v0.6.4
func UpdateWorkers() (err error)
func UpdateWorkersAsync ¶ added in v0.8.6
func UpdateWorkersAsync()
Types ¶
type PostLicense ¶ added in v0.8.6
type PostLicense struct {
License bool `json:"license"`
}
type PostStorageLimit ¶ added in v0.5.0
type PostStorageLimit struct {
Limit int64 `json:"limit"`
}
Click to show internal directories.
Click to hide internal directories.