mesos

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2015 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	Authenticate       string `json:"authenticate"`
	AuthenticateSlaves string `json:"authenticate_slaves"`
}

type Framework

type Framework struct {
	Name   string `json:"name"`
	ID     string `json:"id"`
	Active bool   `json:"active"`
}

type Mesos

type Mesos struct {
	Principal string
	Secret    string
	// contains filtered or unexported fields
}

func NewMesos

func NewMesos(url string, principal string, secret string, noVerifySsl bool) (*Mesos, error)

func (Mesos) FindFramework

func (m Mesos) FindFramework(name string) (*Framework, error)

func (Mesos) FindFrameworks

func (m Mesos) FindFrameworks(name string) ([]*Framework, error)

func (Mesos) Frameworks

func (m Mesos) Frameworks() ([]*Framework, error)

func (Mesos) RequiresAuthentication

func (m Mesos) RequiresAuthentication() (bool, error)

func (Mesos) Shutdown

func (m Mesos) Shutdown(frameworkId string) error

func (Mesos) ShutdownFrameworkByName

func (m Mesos) ShutdownFrameworkByName(name string) error

type State

type State struct {
	CompletedFrameworks    []*Framework `json:"completed_frameworks"`
	Frameworks             []*Framework `json:"frameworks"`
	UnregisteredFrameworks []*Framework `json:"unregistered_frameworks"`
	Flags                  Flags        `json:"flags"`
}

Jump to

Keyboard shortcuts

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