app

package
v2.2.0-alpha28 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package app provides functionality for managing applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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, client docker.Client, 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) SetContainerIPv4Addr

func (a *App) SetContainerIPv4Addr(ipAddr string)

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   uint64
	DockerNetwork string
}

Jump to

Keyboard shortcuts

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