mesos_maintenance

package
v0.20.12 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mesos_maintenance is a generated protocol buffer package.

It is generated from these files:

maintenance.proto

It has these top-level messages:

Window
Schedule
ClusterStatus

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStatus

type ClusterStatus struct {
	DrainingMachines []*ClusterStatus_DrainingMachine `protobuf:"bytes,1,rep,name=draining_machines,json=drainingMachines" json:"draining_machines,omitempty"`
	DownMachines     []*mesos.MachineID               `protobuf:"bytes,2,rep,name=down_machines,json=downMachines" json:"down_machines,omitempty"`
	XXX_unrecognized []byte                           `json:"-"`
}

* Represents the maintenance status of each machine in the cluster. The lists correspond to the `MachineInfo.Mode` enumeration.

func (*ClusterStatus) Descriptor

func (*ClusterStatus) Descriptor() ([]byte, []int)

func (*ClusterStatus) GetDownMachines

func (m *ClusterStatus) GetDownMachines() []*mesos.MachineID

func (*ClusterStatus) GetDrainingMachines

func (m *ClusterStatus) GetDrainingMachines() []*ClusterStatus_DrainingMachine

func (*ClusterStatus) ProtoMessage

func (*ClusterStatus) ProtoMessage()

func (*ClusterStatus) Reset

func (m *ClusterStatus) Reset()

func (*ClusterStatus) String

func (m *ClusterStatus) String() string

type ClusterStatus_DrainingMachine

type ClusterStatus_DrainingMachine struct {
	Id *mesos.MachineID `protobuf:"bytes,1,req,name=id" json:"id,omitempty"`
	// A list of the most recent responses to inverse offers from frameworks
	// running on this draining machine.
	Statuses         []*mesos_allocator.InverseOfferStatus `protobuf:"bytes,2,rep,name=statuses" json:"statuses,omitempty"`
	XXX_unrecognized []byte                                `json:"-"`
}

func (*ClusterStatus_DrainingMachine) Descriptor

func (*ClusterStatus_DrainingMachine) Descriptor() ([]byte, []int)

func (*ClusterStatus_DrainingMachine) GetId

func (*ClusterStatus_DrainingMachine) GetStatuses

func (*ClusterStatus_DrainingMachine) ProtoMessage

func (*ClusterStatus_DrainingMachine) ProtoMessage()

func (*ClusterStatus_DrainingMachine) Reset

func (m *ClusterStatus_DrainingMachine) Reset()

func (*ClusterStatus_DrainingMachine) String

type Schedule

type Schedule struct {
	Windows          []*Window `protobuf:"bytes,1,rep,name=windows" json:"windows,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

* A list of maintenance windows. For example, this may represent a rolling restart of agents.

func (*Schedule) Descriptor

func (*Schedule) Descriptor() ([]byte, []int)

func (*Schedule) GetWindows

func (m *Schedule) GetWindows() []*Window

func (*Schedule) ProtoMessage

func (*Schedule) ProtoMessage()

func (*Schedule) Reset

func (m *Schedule) Reset()

func (*Schedule) String

func (m *Schedule) String() string

type Window

type Window struct {
	// Machines affected by this maintenance window.
	MachineIds []*mesos.MachineID `protobuf:"bytes,1,rep,name=machine_ids,json=machineIds" json:"machine_ids,omitempty"`
	// Interval during which this set of machines is expected to be down.
	Unavailability   *mesos.Unavailability `protobuf:"bytes,2,req,name=unavailability" json:"unavailability,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

* A set of machines scheduled to go into maintenance in the same `unavailability`.

func (*Window) Descriptor

func (*Window) Descriptor() ([]byte, []int)

func (*Window) GetMachineIds

func (m *Window) GetMachineIds() []*mesos.MachineID

func (*Window) GetUnavailability

func (m *Window) GetUnavailability() *mesos.Unavailability

func (*Window) ProtoMessage

func (*Window) ProtoMessage()

func (*Window) Reset

func (m *Window) Reset()

func (*Window) String

func (m *Window) String() string

Jump to

Keyboard shortcuts

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