provision

package
v0.0.0-...-dae269f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInstanceAlreadyExists = errors.New("instance with provided slug already exists")

Functions

This section is empty.

Types

type Flags

type Flags struct {

	// Slug is the slug of the wisski instance
	Slug string

	// System is information about the system
	System models.System
}

Flags are flags for a new instance.

func (Flags) Profile

func (flags Flags) Profile() manager.Profile

Profile returns the profile belonging to this provision flags.

type Provision

type Provision struct {
	component.Base
	Dependencies struct {
		Instances     *instances.Instances
		Provisionable []component.Provisionable
	}
}

func (*Provision) Provision

func (pv *Provision) Provision(progress io.Writer, ctx context.Context, flags Flags) (*wisski.WissKI, error)

Provision provisions a new docker compose instance.

func (*Provision) Validate

func (pv *Provision) Validate(flags Flags) error

Jump to

Keyboard shortcuts

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