package app

import "github.com/mesos/mesos-go/api/v1/cmd/example-scheduler/app"

Index

Constants

const AuthModeBasic = "basic"

Variables

var (
	RegistrationMinBackoff = 1 * time.Second
	RegistrationMaxBackoff = 15 * time.Second
)

Functions

func Run

func Run(cfg Config) error

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() Config

func (*Config) AddFlags

func (cfg *Config) AddFlags(fs *flag.FlagSet)

type IDStore

type IDStore interface {
	Get() string
	Set(string)
}

IDStore is a thread-safe abstraction to load and store a stringified ID.

func NewInMemoryIDStore

func NewInMemoryIDStore() IDStore

type IDStoreAdapter

type IDStoreAdapter struct {
	GetFunc func() string
	SetFunc func(string)
}

func (IDStoreAdapter) Get

func (a IDStoreAdapter) Get() string

func (IDStoreAdapter) Set

func (a IDStoreAdapter) Set(s string)

type Labels

type Labels []mesos.Label

func (*Labels) Set

func (labels *Labels) Set(value string) error

func (Labels) String

func (labels Labels) String() string

type StateError

type StateError string

StateError is returned when the system encounters an unresolvable state transition error and should likely exit.

func (StateError) Error

func (err StateError) Error() string

type URL

type URL struct{ url.URL }

func (*URL) Set

func (u *URL) Set(value string) error

Source Files

app.go config.go control.go env.go flags.go metrics.go server.go state.go store.go

Directories

PathSynopsis
api/v1/cmd/example-scheduler/app/metrics
Version
v0.0.3
Published
Jun 19, 2017
Platform
js/wasm
Imports
30 packages
Last checked
50 minutes ago

Tools for package owners.