systemd

package
v0.0.0-...-ff909ee Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TCPPrefix = "systemd://"

TCPPrefix is engine endpoint prefix

Variables

This section is empty.

Functions

func MakeClient

func MakeClient(ctx context.Context, config coretypes.Config, nodename, endpoint, ca, cert, key string) (engine.API, error)

MakeClient make systemd cli

Types

type Engine

type Engine struct {
	engine.API
	// contains filtered or unexported fields
}

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

func (e *Engine) ExecExitCode(_ context.Context, _, _ string) (execCode int, err error)

ExecExitCode fetches exceuction exit code

func (*Engine) ExecResize

func (e *Engine) ExecResize(_ context.Context, _ string, _, _ uint) (err error)

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

func (e *Engine) NetworkConnect(_ context.Context, _, _, _, _ string) (subnets []string, err error)

NetworkConnect connects target netloc

func (*Engine) NetworkDisconnect

func (e *Engine) NetworkDisconnect(_ context.Context, _, _ string, _ bool) (err error)

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

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

func (e *Engine) VirtualizationResize(_ context.Context, _ string, _, _ uint) (err error)

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

Jump to

Keyboard shortcuts

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