Documentation
¶
Index ¶
- Constants
- func Labels(project, backend string) map[string]string
- func Name(project string, parts ...string) string
- func ProjectLabels(project string) map[string]string
- func WaitReady(ctx context.Context, engine Engine, id string, within time.Duration, ...) error
- type Container
- type Engine
- type ExecFailed
- type Exited
- type OpenFunc
- type Spec
- type Unreachable
Constants ¶
View Source
const ( LabelProject = "dev.ocel.project" LabelBackend = "dev.ocel.backend" )
View Source
const (
StopsWithin = stopGrace + 3*time.Second
)
Variables ¶
This section is empty.
Functions ¶
func ProjectLabels ¶
Types ¶
type Engine ¶
type Engine interface {
Run(ctx context.Context, spec Spec) (Container, error)
ReadExit(ctx context.Context, id string) (*Exited, error)
Exec(ctx context.Context, id string, argv ...string) (string, error)
ExecInput(ctx context.Context, id, input string, argv ...string) (string, error)
Stop(ctx context.Context, id string) error
Wipe(ctx context.Context, labels map[string]string) error
Close() error
}
type ExecFailed ¶
func (*ExecFailed) Error ¶
func (e *ExecFailed) Error() string
type Unreachable ¶
func (*Unreachable) Error ¶
func (u *Unreachable) Error() string
func (*Unreachable) Unwrap ¶
func (u *Unreachable) Unwrap() error
Click to show internal directories.
Click to hide internal directories.