deploy

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StepMap = map[Step]string{
	UnsetStep:     "unset",
	InstallStep:   "install",
	ConfigureStep: "configure",
	SymlinkStep:   "symlink",
	ReportStep:    "report",
}

Functions

func RequiresAdministratorRights

func RequiresAdministratorRights(step Step, userScope bool) bool

RequiresAdministratorRights checks if the requested deploy command requires administrator privileges.

Types

type Deploy

type Deploy struct {
	// contains filtered or unexported fields
}

func NewDeploy

func NewDeploy(step Step, prime primeable) *Deploy

func (*Deploy) Run

func (d *Deploy) Run(params *Params) error

type Params

type Params struct {
	Namespace project.Namespaced
	Path      string
	Force     bool
	UserScope bool
}

type Report

type Report struct {
	BinaryDirectories []string
	Environment       map[string]string
}

type Step

type Step int

Step is the --step flag for the --deploy command, it implements captain.FlagMarshaler

const (
	UnsetStep Step = iota
	InstallStep
	ConfigureStep
	SymlinkStep
	ReportStep
)

func (*Step) Set

func (t *Step) Set(value string) error

func (Step) String

func (t Step) String() string

func (*Step) Type

func (t *Step) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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