installer

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidationError

func IsValidationError(err error) bool

func NewValidationError

func NewValidationError(msg string) error

Types

type Installer

type Installer struct {
	StartOnCompletion bool
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, manager *server.Manager, details ServerDetails) (*Installer, error)

New validates the received data to ensure that all the required fields have been passed along in the request. This should be manually run before calling Execute().

func (*Installer) Server

func (i *Installer) Server() *server.Server

Server returns the server instance.

type ServerDetails

type ServerDetails struct {
	UUID              string `json:"uuid"`
	StartOnCompletion bool   `json:"start_on_completion"`
}

Jump to

Keyboard shortcuts

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