start

package
v0.9.2-95-g22545bcf Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

func Start

func Start(ctx context.Context, opts *StartOptions, machineNames ...string) error

Start a set of machines by name.

Types

type StartOptions

type StartOptions struct {
	All      bool   `long:"all" usage:"Start all machines"`
	Detach   bool   `long:"detach" short:"d" usage:"Run in background"`
	NoPrefix bool   `long:"no-prefix" usage:"When starting multiple machines, do not prefix each log line with the name"`
	Platform string `noattribute:"true"`
	Remove   bool   `long:"rm" usage:"Automatically remove the unikernel when it shutsdown"`
}

func (*StartOptions) Pre

func (opts *StartOptions) Pre(cmd *cobra.Command, args []string) error

func (*StartOptions) Run

func (opts *StartOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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