container

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(container Container)

Serve is a convenience method to be called from the `main` runner for a container. It will attempt to cleanly shutdown the container on OS signal todo: maybe expose the status to the operator from here (admin http service or a monitoring service)

Types

type Container

type Container interface {
	Start() error
	Stop() error
}

Container is a Start-able server process that is expected to self-recover from any issues until Stop is called. In future it might expose methods like `Status()` for monitoring/interacting with the process.

Both EnclaveContainer and HostContainer implement Container.

This abstraction can be started from a main() or controlled from another go process (allowing us to puppet the node components in simulations)

Jump to

Keyboard shortcuts

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