container

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProcessDescription

func GetProcessDescription(ctx context.Context, dockerClient *dockerclient.Client, component api.ComponentDescription) (api.ProcessDescription, error)

Types

type Container

type Container struct {
	docker.ComponentBase

	State State

	SyslogPort uint
}

func (*Container) Build

func (c *Container) Build(ctx context.Context, input *api.BuildInput) (*api.BuildOutput, error)

func (*Container) Dependencies

func (c *Container) Dependencies(ctx context.Context, input *core.DependenciesInput) (*core.DependenciesOutput, error)

func (*Container) Dispose

func (c *Container) Dispose(ctx context.Context, input *core.DisposeInput) (*core.DisposeOutput, error)

func (*Container) InitResource

func (c *Container) InitResource() error

func (*Container) Initialize

func (c *Container) Initialize(ctx context.Context, input *core.InitializeInput) (output *core.InitializeOutput, err error)

func (*Container) MarshalState

func (c *Container) MarshalState() (state string, err error)

func (*Container) ProjectName

func (c *Container) ProjectName() string

func (*Container) Refresh

func (c *Container) Refresh(ctx context.Context, input *core.RefreshInput) (*core.RefreshOutput, error)

func (*Container) Restart

func (c *Container) Restart(ctx context.Context, input *core.RestartInput) (*core.RestartOutput, error)

func (*Container) Signal

func (c *Container) Signal(ctx context.Context, input *core.SignalInput) (*core.SignalOutput, error)

func (*Container) Start

func (c *Container) Start(ctx context.Context, input *core.StartInput) (*core.StartOutput, error)

func (*Container) Stop

func (c *Container) Stop(ctx context.Context, input *core.StopInput) (*core.StopOutput, error)

type ImageState

type ImageState struct {
	ID         string            `json:"id"`
	Spec       string            `json:"spec"`
	Command    strslice.StrSlice `json:"command"`
	WorkingDir string            `json:"workingDir"`
	Entrypoint strslice.StrSlice `json:"entrypoint"`
	Shell      []string          `json:"shell"`
}

type Spec

type Spec = compose.Service

type State

type State struct {
	ContainerID string     `json:"containerId"`
	Running     bool       `json:"running"`
	Image       ImageState `json:"image"`
}

Jump to

Keyboard shortcuts

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