server

package
v1.5.3-rc5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
}

Log - this struct abstracts the logging libraries into single interface.

func (Log) Error added in v1.5.3

func (l Log) Error(err error)

Error - log the messages to be error

func (Log) Errorf

func (l Log) Errorf(format string, args ...interface{})

Errorf - log the messages to be error messages and formatted.

func (Log) Info

func (l Log) Info(msg string)

Info - log the messages to be info

func (Log) Infof added in v1.5.3

func (l Log) Infof(format string, args ...interface{})

Infof - log the messages to be info messages and formatted.

type NMIResponse

type NMIResponse struct {
	Token    msiResponse `json:"token"`
	ClientID string      `json:"clientid"`
}

NMIResponse is the response returned to caller

type Server

type Server struct {
	KubeClient                         k8s.Client
	NMIPort                            string
	MetadataIP                         string
	MetadataPort                       string
	HostIP                             string
	NodeName                           string
	IPTableUpdateTimeIntervalInSeconds int
	IsNamespaced                       bool
	MICNamespace                       string
	Initialized                        bool

	ListPodIDsRetryAttemptsForCreated  int
	ListPodIDsRetryAttemptsForAssigned int
	ListPodIDsRetryIntervalInSeconds   int
}

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

func NewServer

func NewServer(isNamespaced bool, micNamespace string) *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