containerserver

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 16 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptTimeout

type InterceptTimeout interface {
	Reset()
	Channel() <-chan time.Time
	Error() error
}

type InterceptTimeoutError

type InterceptTimeoutError struct {
	// contains filtered or unexported fields
}

func (InterceptTimeoutError) Error

func (err InterceptTimeoutError) Error() string

type InterceptTimeoutFactory

type InterceptTimeoutFactory interface {
	NewInterceptTimeout() InterceptTimeout
}

func NewInterceptTimeoutFactory

func NewInterceptTimeoutFactory(duration time.Duration) InterceptTimeoutFactory

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	logger lager.Logger,
	workerClient worker.Client,
	variablesFactory creds.VariablesFactory,
	interceptTimeoutFactory InterceptTimeoutFactory,
	containerRepository db.ContainerRepository,
	destroyer gc.Destroyer,
) *Server

func (*Server) GetContainer

func (s *Server) GetContainer(team db.Team) http.Handler

func (*Server) HijackContainer

func (s *Server) HijackContainer(team db.Team) http.Handler

func (*Server) ListContainers

func (s *Server) ListContainers(team db.Team) http.Handler

func (*Server) ListDestroyingContainers

func (s *Server) ListDestroyingContainers(w http.ResponseWriter, r *http.Request)

func (*Server) ReportWorkerContainers

func (s *Server) ReportWorkerContainers(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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