restserver

package
v1.0.18-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Success                      = 0
	UnsupportedNetworkType       = 1
	InvalidParameter             = 2
	UnsupportedEnvironment       = 3
	UnreachableHost              = 4
	ReservationNotFound          = 5
	MalformedSubnet              = 8
	UnreachableDockerDaemon      = 9
	UnspecifiedNetworkName       = 10
	NotFound                     = 14
	AddressUnavailable           = 15
	NetworkContainerNotSpecified = 16
	CallToHostFailed             = 17
	UnknownContainerID           = 18
	UnsupportedOrchestratorType  = 19
	DockerContainerNotSpecified  = 20
	UnexpectedError              = 99
)

Container Network Service remote API Contract.

Variables

This section is empty.

Functions

func ReturnCodeToString added in v1.0.16

func ReturnCodeToString(returnCode int) (s string)

Types

type HTTPRestService

type HTTPRestService struct {
	*cns.Service
	// contains filtered or unexported fields
}

HTTPRestService represents http listener for CNS - Container Networking Service.

func (*HTTPRestService) GetPartitionKey

func (service *HTTPRestService) GetPartitionKey() (dncPartitionKey string)

Get dnc/service partition key

func (*HTTPRestService) Start

func (service *HTTPRestService) Start(config *common.ServiceConfig) error

Start starts the CNS listener.

func (*HTTPRestService) Stop

func (service *HTTPRestService) Stop()

Stop stops the CNS.

type HTTPService added in v1.0.0

type HTTPService interface {
	common.ServiceAPI
}

HTTPService describes the min API interface that every service should have.

func NewHTTPRestService

func NewHTTPRestService(config *common.ServiceConfig) (HTTPService, error)

NewHTTPRestService creates a new HTTP Service object.

Jump to

Keyboard shortcuts

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