marathon

package
v2.0.0-alpha7+incompat... Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTemplateRule The default template for the default rule.
	DefaultTemplateRule = "Host(`{{ normalize .Name }}`)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	HTTPBasicAuthUser string `description:"Basic authentication User."`
	HTTPBasicPassword string `description:"Basic authentication Password."`
}

Basic holds basic authentication specific configurations

type Provider

type Provider struct {
	Constraints            string           `` /* 173-byte string literal not displayed */
	Trace                  bool             `description:"Display additional provider logs." export:"true"`
	Watch                  bool             `description:"Watch provider." export:"true"`
	Endpoint               string           `description:"Marathon server endpoint. You can also specify multiple endpoint for Marathon." export:"true"`
	DefaultRule            string           `description:"Default rule."`
	ExposedByDefault       bool             `description:"Expose Marathon apps by default." export:"true"`
	DCOSToken              string           `description:"DCOSToken for DCOS environment, This will override the Authorization header." export:"true"`
	TLS                    *types.ClientTLS `description:"Enable TLS support." export:"true"`
	DialerTimeout          types.Duration   `description:"Set a dialer timeout for Marathon." export:"true"`
	ResponseHeaderTimeout  types.Duration   `description:"Set a response header timeout for Marathon." export:"true"`
	TLSHandshakeTimeout    types.Duration   `description:"Set a TLS handshake timeout for Marathon." export:"true"`
	KeepAlive              types.Duration   `description:"Set a TCP Keep Alive time." export:"true"`
	ForceTaskHostname      bool             `description:"Force to use the task's hostname." export:"true"`
	Basic                  *Basic           `description:"Enable basic authentication." export:"true"`
	RespectReadinessChecks bool             `description:"Filter out tasks with non-successful readiness checks during deployments." export:"true"`
	// contains filtered or unexported fields
}

Provider holds configuration of the provider.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- config.Message, pool *safe.Pool) error

Provide allows the marathon provider to provide configurations to traefik using the given configuration channel.

func (*Provider) SetDefaults

func (p *Provider) SetDefaults()

SetDefaults sets the default values.

type TaskState

type TaskState string

TaskState denotes the Mesos state a task can have.

Directories

Path Synopsis
Package mocks Code generated by mockery v1.0.0.
Package mocks Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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