local

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerName = "acorn-local-runtime"
)

Variables

This section is empty.

Functions

func ServerRun

func ServerRun(ctx context.Context) error

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(_ context.Context) (*Container, error)

func (*Container) Create

func (c *Container) Create(ctx context.Context) (string, error)

func (*Container) Delete

func (c *Container) Delete(ctx context.Context, data bool) error

func (*Container) DeletePorts

func (c *Container) DeletePorts(ctx context.Context) error

func (*Container) Ensure

func (c *Container) Ensure(ctx context.Context) (*rest.Config, error)

func (*Container) Logs

func (c *Container) Logs(ctx context.Context, opt LogOptions) error

func (*Container) Reset

func (c *Container) Reset(ctx context.Context, data bool) error

func (*Container) Start

func (c *Container) Start(ctx context.Context) error

func (*Container) Stop

func (c *Container) Stop(ctx context.Context) error

func (*Container) Upgrade

func (c *Container) Upgrade(ctx context.Context, ignoreLocal bool) (string, string, error)

func (*Container) Wait

func (c *Container) Wait(ctx context.Context) error

type LogOptions

type LogOptions struct {
	Tail   string `usage:"Number of lines to show from the end of the logs" default:"all" short:"n"`
	Follow bool   `usage:"Follow log output" short:"f"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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