app

package
v2.1.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package app provides functionality for managing applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDetachMode

func IsDetachMode(command string) bool

func ParseDockerCmd

func ParseDockerCmd(cmd string) (string, string, error)

Types

type App

type App struct {
	EnableTesting bool
	Mode          models.Mode
	// contains filtered or unexported fields
}

func NewApp

func NewApp(logger *zap.Logger, id uint64, cmd string, opts Options) *App

func (*App) ContainerIPv4Addr

func (a *App) ContainerIPv4Addr() string

func (*App) KeployIPv4Addr

func (a *App) KeployIPv4Addr() string

func (*App) Kind

func (a *App) Kind(_ context.Context) utils.CmdType

func (*App) Run

func (a *App) Run(ctx context.Context, inodeChan chan uint64) models.AppError

func (*App) Setup

func (a *App) Setup(_ context.Context) error

func (*App) SetupCompose

func (a *App) SetupCompose() error

func (*App) SetupDocker

func (a *App) SetupDocker() error

type Options

type Options struct {
	// canExit disables any error returned if the app exits by itself.
	//CanExit       bool
	Container     string
	DockerDelay   time.Duration
	DockerNetwork string
}

Directories

Path Synopsis
Package docker provides functionality for working with Docker containers.
Package docker provides functionality for working with Docker containers.

Jump to

Keyboard shortcuts

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