installer

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 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 驗證收到的資料,確保請求中已傳遞所有必要欄位。 呼叫 Execute() 之前應手動先執行此函式。

func (*Installer) Server

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

Server 回傳此伺服器實例。

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