Documentation
¶
Index ¶
- func GetDeploymentPath(base util.AbsolutePath, name string) util.AbsolutePath
- func GetDeploymentsPath(base util.AbsolutePath) util.AbsolutePath
- func ListDeploymentFiles(base util.AbsolutePath) ([]util.AbsolutePath, error)
- func RenameDeployment(base util.AbsolutePath, oldName, newName string) error
- func SaveNameFromPath(path util.AbsolutePath) string
- func UntitledDeploymentName(base util.AbsolutePath) (string, error)
- func ValidateFile(path util.AbsolutePath) error
- type Deployment
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"`
ID types.ContentID `toml:"id,omitempty" json:"id"`
DashboardURL string `toml:"dashboard_url,omitempty" json:"dashboardUrl"`
DirectURL string `toml:"direct_url,omitempty" json:"directUrl"`
LogsURL string `toml:"logs_url,omitempty" json:"logsUrl"`
// Full deployment fields
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"`
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) WriteFile ¶
func (d *Deployment) WriteFile(path util.AbsolutePath) error
Click to show internal directories.
Click to hide internal directories.