Documentation ¶
Index ¶
- func GetCouchServiceFiles(service, designation, deviceType, deviceID string) (map[string][]byte, error)
- func GetServiceFromCouch(service, designation, deviceType, deviceID string) ([]file, bool, error)
- func MakeDockerRequest(serviceID, designation string) (map[string]interface{}, error)
- func MakeEnvironmentRequest(serviceID, designation string) (map[string]string, error)
- func NewSession(client *ssh.Client, output io.Writer) (*ssh.Session, *nerr.E)
- func RetrieveDockerCompose(deviceType, designation string) ([]byte, error)
- func SetToken(request *http.Request) error
- type DeployReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCouchServiceFiles ¶
func GetCouchServiceFiles(service, designation, deviceType, deviceID string) (map[string][]byte, error)
GetCouchServiceFiles .
func GetServiceFromCouch ¶
GetServiceFromCouch .
func MakeDockerRequest ¶
MakeDockerRequest .
func MakeEnvironmentRequest ¶
MakeEnvironmentRequest .
func NewSession ¶
NewSession opens a new session with the <client>, and writes stdout/err to a <output>
func RetrieveDockerCompose ¶
RetrieveDockerCompose .
Types ¶
type DeployReport ¶
type DeployReport struct { Address string `json:"address"` Timestamp string `json:"timestamp"` Message string `json:"msg"` Success bool `json:"success"` }
DeployReport is returned after attempting a deployment
func Deploy ¶
func Deploy(address string, output io.Writer, servicesToDeploy []string, files ...file) DeployReport
Deploy deploys to a single pi
func DeployByHostname ¶
func DeployByHostname(hostname string) (DeployReport, *nerr.E)
DeployByHostname deploys to one specific device with the corresponding hostname
func DeployToDevice ¶
DeployToDevice takes a device and gets all the data it needs to deploy
Click to show internal directories.
Click to hide internal directories.