start

package
v0.30.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoftStarter

type LoftStarter struct {
	StartOptions
}

func NewLoftStarter

func NewLoftStarter(options StartOptions) *LoftStarter

func (*LoftStarter) Start

func (l *LoftStarter) Start(ctx context.Context) error

Start executes the functionality "loft start"

type Options

type Options struct {
	*flags.GlobalFlags
	// for logging
	CommandName string
	Log         log.Logger
	// Will be filled later
	KubeClient kubernetes.Interface
	RestConfig *rest.Config

	// cli options common to both start and destroy
	Context   string
	Namespace string
}

func (*Options) Prepare added in v0.22.0

func (l *Options) Prepare() error

Prepare initializes clients, verifies the existense of binaries, and ensures we are starting with the right kube context

type StartOptions added in v0.22.0

type StartOptions struct {
	Options
	// cli options
	Values           string
	LocalPort        string
	Version          string
	DockerImage      string
	Password         string
	Host             string
	Email            string
	ChartRepo        string
	Product          string
	ChartName        string
	ChartPath        string
	DockerArgs       []string
	Reset            bool
	NoPortForwarding bool
	NoTunnel         bool
	NoLogin          bool
	NoWait           bool
	Upgrade          bool
	ReuseValues      bool
}

StartOptions holds the cmd flags

Jump to

Keyboard shortcuts

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