Documentation ¶
Index ¶
- Constants
- func MakeClient(ctx context.Context, config coretypes.Config, ...) (engine.API, error)
- type Engine
- func (e *Engine) BuildContent(context.Context, coresource.Source, *enginetypes.BuildContentOptions) (dir string, reader io.Reader, err error)
- func (e *Engine) BuildRefs(context.Context, *enginetypes.BuildRefOptions) (refs []string)
- func (e *Engine) ExecExitCode(_ context.Context, _, _ string) (execCode int, err error)
- func (e *Engine) ExecResize(_ context.Context, _ string, _, _ uint) (err error)
- func (e *Engine) Execute(_ context.Context, _ string, _ *enginetypes.ExecConfig) (execID string, stdout io.ReadCloser, stderr io.ReadCloser, ...)
- func (e *Engine) GetParams() *enginetypes.Params
- func (e *Engine) NetworkConnect(_ context.Context, _, _, _, _ string) (subnets []string, err error)
- func (e *Engine) NetworkDisconnect(_ context.Context, _, _ string, _ bool) (err error)
- func (e *Engine) NetworkList(_ context.Context, _ []string) (networks []*enginetypes.Network, err error)
- func (e *Engine) VirtualizationAttach(_ context.Context, _ string, _, _ bool) (stdout, stderr io.ReadCloser, writer io.WriteCloser, err error)
- func (e *Engine) VirtualizationCreate(ctx context.Context, opts *enginetypes.VirtualizationCreateOptions) (*enginetypes.VirtualizationCreated, error)
- func (e *Engine) VirtualizationLogs(_ context.Context, _ *enginetypes.VirtualizationLogStreamOptions) (stdout io.ReadCloser, stderr io.ReadCloser, err error)
- func (e *Engine) VirtualizationResize(_ context.Context, _ string, _, _ uint) (err error)
- func (e *Engine) VirtualizationUpdateResource(context.Context, string, resourcetypes.Resources) (err error)
- func (e *Engine) VirtualizationWait(_ context.Context, _, _ string) (res *enginetypes.VirtualizationWaitResult, err error)
Constants ¶
View Source
const TCPPrefix = "systemd://"
TCPPrefix is engine endpoint prefix
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
Engine is engine for systemd
func (*Engine) BuildContent ¶
func (e *Engine) BuildContent(context.Context, coresource.Source, *enginetypes.BuildContentOptions) (dir string, reader io.Reader, err error)
BuildContent builds image content
func (*Engine) BuildRefs ¶
func (e *Engine) BuildRefs(context.Context, *enginetypes.BuildRefOptions) (refs []string)
BuildRefs builds images refs
func (*Engine) ExecExitCode ¶
ExecExitCode fetches exceuction exit code
func (*Engine) ExecResize ¶
ExecResize resize the terminal size
func (*Engine) Execute ¶
func (e *Engine) Execute(_ context.Context, _ string, _ *enginetypes.ExecConfig) (execID string, stdout io.ReadCloser, stderr io.ReadCloser, writer io.WriteCloser, err error)
Execute executes a cmd and attaches stdio
func (*Engine) GetParams ¶
func (e *Engine) GetParams() *enginetypes.Params
func (*Engine) NetworkConnect ¶
NetworkConnect connects target netloc
func (*Engine) NetworkDisconnect ¶
NetworkDisconnect disconnects target netloc
func (*Engine) NetworkList ¶
func (e *Engine) NetworkList(_ context.Context, _ []string) (networks []*enginetypes.Network, err error)
NetworkList lists networks
func (*Engine) VirtualizationAttach ¶
func (e *Engine) VirtualizationAttach(_ context.Context, _ string, _, _ bool) (stdout, stderr io.ReadCloser, writer io.WriteCloser, err error)
VirtualizationAttach attaches a service's stdio
func (*Engine) VirtualizationCreate ¶
func (e *Engine) VirtualizationCreate(ctx context.Context, opts *enginetypes.VirtualizationCreateOptions) (*enginetypes.VirtualizationCreated, error)
VirtualizationCreate create a workload
func (*Engine) VirtualizationLogs ¶
func (e *Engine) VirtualizationLogs(_ context.Context, _ *enginetypes.VirtualizationLogStreamOptions) (stdout io.ReadCloser, stderr io.ReadCloser, err error)
VirtualizationLogs fetches service logs
func (*Engine) VirtualizationResize ¶
VirtualizationResize resizes a terminal window
func (*Engine) VirtualizationUpdateResource ¶
func (e *Engine) VirtualizationUpdateResource(context.Context, string, resourcetypes.Resources) (err error)
VirtualizationUpdateResource updates service resource limits
func (*Engine) VirtualizationWait ¶
func (e *Engine) VirtualizationWait(_ context.Context, _, _ string) (res *enginetypes.VirtualizationWaitResult, err error)
VirtualizationWait waits for service finishing
Click to show internal directories.
Click to hide internal directories.