state

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerURLMismatch = errors.New("the account provided is for a different server; it must match the server for this deployment")

Functions

This section is empty.

Types

type LocalDeploymentID

type LocalDeploymentID string

func NewLocalID

func NewLocalID() (LocalDeploymentID, error)

type State

type State struct {
	Dir         util.AbsolutePath
	AccountName string
	ConfigName  string
	TargetName  string
	SaveName    string
	Account     *accounts.Account
	Config      *config.Config
	Target      *deployment.Deployment
	LocalID     LocalDeploymentID
}

func Empty

func Empty() *State

func New

func New(path util.AbsolutePath, accountName, configName, targetName string, saveName string, accountList accounts.AccountList) (*State, error)

Jump to

Keyboard shortcuts

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