docker

package
v0.0.0-...-240b47d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker interface {
	EnsureImage(context.Context, string) error
	GetContainerHostPath(context.Context, string, string) (string, error)
	Start(context.Context, *dockerlib.Container, string) (chan bool, error)
	ShutdownAll(ctx context.Context) error
}

type Function

type Function interface {
	Name() string
	EnvVars() []string
	HandlerCmd() []string
	AwsRuntime() aws.Runtime
	GetDestPath(cfg *settings.Config) string
	GetLayerDestPath(cfg *settings.Config) string
}

type IntPool

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

func NewIntPool

func NewIntPool(min int, max int) IntPool

func (IntPool) Get

func (pool IntPool) Get(ctx context.Context) (int, error)

func (IntPool) Put

func (pool IntPool) Put(value int)

type Manager

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

Manager is responsible for launching Docker containers hosting Lambda functions & their invocation

func NewManager

func NewManager(cfg *settings.Config) (*Manager, error)

func (*Manager) EnsureRuntime

func (m *Manager) EnsureRuntime(ctx context.Context, name aws.Runtime) error

func (Manager) Invoke

func (m Manager) Invoke(writer http.ResponseWriter, request *http.Request)

func (*Manager) ShutdownAll

func (m *Manager) ShutdownAll(ctx context.Context) error

func (Manager) StartFunction

func (m Manager) StartFunction(ctx context.Context, function Function) error

Jump to

Keyboard shortcuts

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