utils

package
v0.0.0-...-34c5bf1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmDeployment

func ConfirmDeployment(d *Deployment) (bool, error)

ConfirmDeployment prompts the user to confirm deployment of a service

func SCP

func SCP(src, username, host, dst string) error

SCP initiates an scp transfer from src to dst

Types

type Deployment

type Deployment struct {
	ServiceName string
	ServicePath string
	TargetName  string
	TargetHost  string

	// CurrentRevision is the long git hash of the currently deployed revision.
	// This should be the empty string if the service hasn't been deployed yet.
	CurrentRevision string

	// NewRevision is the long git hash of the revision that is to be deployed
	NewRevision string
}

Deployment describes a service deployment

Jump to

Keyboard shortcuts

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