summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/engine_container.go
blob: e3c3b2dafac88a08a291db38b8c9dd72a92b8ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package entities

import (
	"context"
)

type ContainerEngine interface {
	ContainerDelete(ctx context.Context, opts ContainerDeleteOptions) (*ContainerDeleteReport, error)
	ContainerPrune(ctx context.Context) (*ContainerPruneReport, error)
	ContainerExists(ctx context.Context, nameOrId string) (*BoolReport, error)
	ContainerWait(ctx context.Context, namesOrIds []string, options WaitOptions) ([]WaitReport, error)
	PodDelete(ctx context.Context, opts PodPruneOptions) (*PodDeleteReport, error)
	PodExists(ctx context.Context, nameOrId string) (*BoolReport, error)
	PodPrune(ctx context.Context) (*PodPruneReport, error)
	VolumeDelete(ctx context.Context, opts VolumeDeleteOptions) (*VolumeDeleteReport, error)
	VolumePrune(ctx context.Context) (*VolumePruneReport, error)
}