mesoshelper

package
v0.0.0-...-ac6a2c4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHostToMaintenanceSchedule

func AddHostToMaintenanceSchedule(
	mesosMasterClient mpb.MasterOperatorClient,
	hostname, IP string,
) error

AddHostToMaintenanceSchedule adds a host to the Mesos Master maintenance schedule

func IsHostAlreadyOnMaintenanceSchedule

func IsHostAlreadyOnMaintenanceSchedule(
	hostname string,
	schedule *mesos_maintenance.Schedule,
) bool

IsHostAlreadyOnMaintenanceSchedule returns whether a hostname is already part of the Mesos Master maintenance schedule

func IsHostPartOfDownMachines

func IsHostPartOfDownMachines(
	hostname string,
	downMachines []*mesos.MachineID,
) bool

IsHostPartOfDownMachines returns whether a host is registered as a down machine on Mesos Master

func RegisterHostAsDown

func RegisterHostAsDown(
	mesosMasterClient mpb.MasterOperatorClient,
	hostname, IP string,
) error

RegisterHostAsDown registers a host as down

func RegisterHostAsUp

func RegisterHostAsUp(
	mesosMasterClient mpb.MasterOperatorClient,
	hostname, IP string,
) error

RegisterHostAsUp registers a host as up

Types

This section is empty.

Jump to

Keyboard shortcuts

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