state

package
v1.23.9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 10 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
	Secrets     map[string]string
	// RepoOptions carries IDE-controlled repository defaults (e.g. CRAN/PPM) for R.
	RepoOptions *renv.RepoOptions
}

func Empty

func Empty() *State

func New

func New(
	path util.AbsolutePath,
	accountName string,
	configName string,
	targetName string,
	saveName string,
	accountList accounts.AccountList,
	secrets map[string]string,
	insecure bool,
	rInterpreter interpreters.RInterpreter,
	pythonInterpreter interpreters.PythonInterpreter,
	log logging.Logger,
	repoOpts *renv.RepoOptions,
) (*State, error)

Jump to

Keyboard shortcuts

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