Documentation
¶
Index ¶
- Constants
- type Attachment
- type ContainerID
- type Docker
- func (d *Docker) ActiveDockerSubnets(ctx context.Context) ([]netip.Prefix, error)
- func (d *Docker) Attach(ctx context.Context, id string, streams IO) (Attachment, error)
- func (d *Docker) CreateNetwork(ctx context.Context, p policy.Plan) (Resource, error)
- func (d *Docker) GatewayHealth(ctx context.Context, r Resource, token string) error
- func (d *Docker) ListOwned(ctx context.Context, o Ownership) ([]Resource, error)
- func (d *Docker) PullByDigest(ctx context.Context, ref string) error
- func (d *Docker) RemoveContainer(ctx context.Context, r Resource) error
- func (d *Docker) RemoveNetwork(ctx context.Context, r Resource) error
- func (d *Docker) Resize(ctx context.Context, id ContainerID, height, width uint) error
- func (d *Docker) Signal(ctx context.Context, id string, s os.Signal) error
- func (d *Docker) StartCommand(ctx context.Context, p policy.Plan, networkID string, tty bool) (Resource, error)
- func (d *Docker) StartGateway(ctx context.Context, s GatewaySpec) (Resource, error)
- func (d *Docker) Verify(ctx context.Context) error
- func (d *Docker) Wait(ctx context.Context, id string) (int, error)
- type Engine
- type GatewaySpec
- type IO
- type Ownership
- type Resource
Constants ¶
View Source
const ( ManagedLabel = "dev.dproxy.managed" ProjectLabel = "dev.dproxy.project" InvocationLabel = "dev.dproxy.invocation" RoleLabel = "dev.dproxy.role" CommandRole = "command" GatewayRole = "gateway" )
View Source
const MinimumAPIVersion = "1.40"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type ContainerID ¶
type ContainerID string
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) ActiveDockerSubnets ¶
func (*Docker) CreateNetwork ¶
func (*Docker) GatewayHealth ¶
func (*Docker) RemoveContainer ¶
func (*Docker) RemoveNetwork ¶
func (*Docker) StartCommand ¶
func (*Docker) StartGateway ¶
type Engine ¶
type Engine interface {
Verify(context.Context) error
PullByDigest(context.Context, string) error
CreateNetwork(context.Context, policy.Plan) (Resource, error)
StartGateway(context.Context, GatewaySpec) (Resource, error)
GatewayHealth(context.Context, Resource, string) error
StartCommand(context.Context, policy.Plan, string, bool) (Resource, error)
Attach(context.Context, string, IO) (Attachment, error)
Wait(context.Context, string) (int, error)
Resize(context.Context, ContainerID, uint, uint) error
Signal(context.Context, string, os.Signal) error
RemoveContainer(context.Context, Resource) error
RemoveNetwork(context.Context, Resource) error
ListOwned(context.Context, Ownership) ([]Resource, error)
}
Engine is the Docker-free execution boundary consumed by runtime and network policy.
type GatewaySpec ¶
Click to show internal directories.
Click to hide internal directories.