cmd

package
v0.0.0-...-7ec35f1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(ctx context.Context, region Region) error

func Logs

func Logs(ctx context.Context, region Region, id types.TaskID) error

func ParseEnvFile

func ParseEnvFile(filename string, env map[string]string) (map[string]string, error)

func ParseEnvLine

func ParseEnvLine(line string) (key string, value string)

func ParseMemory

func ParseMemory(memory string) uint64

func PrintInfo

func PrintInfo(ctx context.Context, region Region, id types.TaskID) error

func Run

func Run(ctx context.Context, args RunContainerArgs) error

func Stop

func Stop(ctx context.Context, region Region, id types.TaskID) error

Types

type Color

type Color string
const (
	ColorAuto   Color = "auto"
	ColorAlways Color = "always"
	ColorNever  Color = "never"
	ColorRaw    Color = "raw"
)

func ParseColor

func ParseColor(color string) Color

type DriverOption

type DriverOption func(types.Driver) error

type Region

type Region = aws.Region

type RunContainerArgs

type RunContainerArgs struct {
	Region   Region
	Image    string
	Memory   uint64
	Args     []string
	Env      map[string]string
	Platform string
	VpcID    string
	SubnetID string
}

Jump to

Keyboard shortcuts

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