server

package
v0.0.0-...-7b4a977 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger

func ContextWithLogger(ctx context.Context, logger *logrus.Entry) context.Context

func LoggerFromContext

func LoggerFromContext(ctx context.Context) *logrus.Entry

Types

type HealthResponse

type HealthResponse struct {
	HostIP     string `json:"hostIP"`
	InstanceID string `json:"instanceId"`
}

HealthResponse represents a response for the health check.

type Server

type Server struct {
	KubeconfigFile        string
	KubernetesMaster      string
	AppPort               string
	DefaultServiceAccount string
	ServiceAccountKey     string
	MetadataAddress       string
	HostInterface         string
	HostIP                string
	NamespaceKey          string
	LogLevel              string
	AttributeWhitelist    []string
	AttributeWhitelistSet map[string]struct{}
	AddIPTablesRule       bool
	Debug                 bool
	Insecure              bool
	NamespaceRestriction  bool
	Verbose               bool
	Version               bool

	BackoffMaxElapsedTime time.Duration
	BackoffMaxInterval    time.Duration
	// contains filtered or unexported fields
}

Server encapsulates all of the parameters necessary for starting up the server. These can either be set via command line or directly.

func NewServer

func NewServer() *Server

NewServer will create a new Server with default values.

func (*Server) Run

func (s *Server) Run() error

Run runs the specified Server.

Jump to

Keyboard shortcuts

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