deployment

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeploymentPath

func GetDeploymentPath(base util.AbsolutePath, name string) util.AbsolutePath

func GetDeploymentsPath

func GetDeploymentsPath(base util.AbsolutePath) util.AbsolutePath

func ListDeploymentFiles

func ListDeploymentFiles(base util.AbsolutePath) ([]util.AbsolutePath, error)

func RenameDeployment

func RenameDeployment(base util.AbsolutePath, oldName, newName string) error

func SaveNameFromPath

func SaveNameFromPath(path util.AbsolutePath) string

func UntitledDeploymentName

func UntitledDeploymentName(base util.AbsolutePath) (string, error)

func ValidateFile

func ValidateFile(path util.AbsolutePath) error

Types

type Deployment

type Deployment struct {
	// Predeployment and full deployment fields
	Schema        string              `toml:"$schema" json:"$schema"`
	ServerType    accounts.ServerType `toml:"server_type" json:"serverType"`
	ServerURL     string              `toml:"server_url" json:"serverUrl"`
	ClientVersion string              `toml:"client_version" json:"-"`
	CreatedAt     string              `toml:"created_at" json:"createdAt"`
	Type          config.ContentType  `toml:"type" json:"type"`
	ConfigName    string              `toml:"configuration_name" json:"configurationName"`

	// Full deployment fields
	ID            types.ContentID   `toml:"id,omitempty" json:"id"`
	DeployedAt    string            `toml:"deployed_at,omitempty" json:"deployedAt"`
	BundleID      types.BundleID    `toml:"bundle_id,omitempty" json:"bundleId"`
	BundleURL     string            `toml:"bundle_url,omitempty" json:"bundleUrl"`
	DashboardURL  string            `toml:"dashboard_url,omitempty" json:"dashboardUrl"`
	DirectURL     string            `toml:"direct_url,omitempty" json:"directUrl"`
	Error         *types.AgentError `toml:"deployment_error,omitempty" json:"deploymentError"`
	Files         []string          `toml:"files,multiline,omitempty" json:"files"`
	Requirements  []string          `toml:"requirements,multiline,omitempty" json:"requirements"`
	Configuration *config.Config    `toml:"configuration,omitempty" json:"configuration"`
	Renv          *renv.Lockfile    `toml:"renv,omitempty" json:"renv"`
}

func FromFile

func FromFile(path util.AbsolutePath) (*Deployment, error)

func New

func New() *Deployment

func (*Deployment) Write

func (d *Deployment) Write(w io.Writer) error

func (*Deployment) WriteFile

func (d *Deployment) WriteFile(path util.AbsolutePath) error

Jump to

Keyboard shortcuts

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