cli

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

package cli implements command line installer workflow

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// FieldLogger is the logger for the installer
	log.FieldLogger
	// Operator specifies the service operator
	ops.Operator
}

Config defines the installer configuration

type Engine

type Engine struct {
	// Config specifies the engine's configuration
	Config
}

Engine implements command line-driven installation workflow

func New

func New(config Config) (*Engine, error)

New returns a new installer that implements non-interactive installation workflow.

The installer can optionally run an agent to include the host node in the resulting cluster

func (*Engine) Execute

func (r *Engine) Execute(ctx context.Context, installer install.Interface, config install.Config) (dispatcher.Status, error)

Execute executes the installer steps. Implements installer.Engine

Jump to

Keyboard shortcuts

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