Versions in this module Expand all Collapse all v0 v0.2.1 Mar 12, 2019 Changes in this version + const ConfigurationAddPath + const ConfigurationDeletePath + const ConfigurationInfoPath + const ConfigurationListPath + const ConfigurationPath + const WebhookPath + const WebhookPostPath + func CopyFile(src string, dst string) error + func ExecuteScript(c Connector, conf executeConfiguration) error + func InitDB(dataSourceName string) (*sql.DB, error) + func RunsWithinContainer() bool + type API struct + Connector Connector + DB *sql.DB + DataDir string + HomeDir string + PrivateKeyFilename string + PublicKeyFilename string + QaasExternalPort string + QaasHost string + QaasInternalPort string + RelayNode string + RelayNodeTestUser string + RelayNodeTestUserPassword string + func (a *API) ConfigurationAddHandler(w http.ResponseWriter, req *http.Request) + func (a *API) ConfigurationDeleteHandler(w http.ResponseWriter, req *http.Request) + func (a *API) ConfigurationInfoHandler(w http.ResponseWriter, req *http.Request) + func (a *API) ConfigurationListHandler(w http.ResponseWriter, req *http.Request) + func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) + type ConfigurationDeleteResponse struct + Webhook string + type ConfigurationInfoResponse struct + Webhook Item + type ConfigurationListResponse struct + Webhooks []Item + type ConfigurationRequest struct + Description string + Groupname string + Hash string + Username string + type ConfigurationResponse struct + Webhook string + type Connector interface + CloseSession func(session *ssh.Session) error + CombinedOutput func(session *ssh.Session, command string) ([]byte, error) + NewClient func(remoteServer string, clientConfig *ssh.ClientConfig) (*ssh.Client, error) + NewSession func(client *ssh.Client) (*ssh.Session, error) + Run func(session *ssh.Session, command string) error + type Item struct + Created string + Description string + Groupname string + Hash string + ID int + URL string + Username string + type SSHConnector struct + Description string + func (c SSHConnector) CloseSession(session *ssh.Session) error + func (c SSHConnector) CombinedOutput(session *ssh.Session, command string) ([]byte, error) + func (c SSHConnector) NewClient(remoteServer string, clientConfig *ssh.ClientConfig) (*ssh.Client, error) + func (c SSHConnector) NewSession(client *ssh.Client) (*ssh.Session, error) + func (c SSHConnector) Run(session *ssh.Session, command string) error + type Webhook struct + Event string + ID string + Payload []byte + Signature string + WebhookID string v0.2.0 Mar 12, 2019 v0.1.0 Mar 7, 2019