installer

package
v1.11.12 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 2

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