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 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

Directories

PathSynopsis
api/v1/cmd/example-scheduler/app/metrics
Version
v0.0.11 (latest)
Published
May 15, 2020
Platform
linux/amd64
Imports
34 packages
Last checked
8 hours ago

Tools for package owners.