exec

package
v0.0.0-...-4b98c26 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCmd

func CreateCmd(cmdStr, workDir string) *exec.Cmd

CreateCmd creates an exec.Cmd.

func KillCmd

func KillCmd(c *exec.Cmd) error

KillCmd sends a KILL signal to the command.

Types

type KonnectorMessage

type KonnectorMessage struct {
	Account        string `json:"account"`        // Account is the identifier of the account
	Konnector      string `json:"konnector"`      // Konnector is the slug of the konnector
	FolderToSave   string `json:"folder_to_save"` // FolderToSave is the identifier of the folder
	BIWebhook      bool   `json:"bi_webhook,omitempty"`
	AccountDeleted bool   `json:"account_deleted,omitempty"`
	// contains filtered or unexported fields
}

KonnectorMessage is the message structure sent to the konnector worker.

func (*KonnectorMessage) ToJSON

func (m *KonnectorMessage) ToJSON() string

ToJSON returns a JSON reprensation of the KonnectorMessage

type ServiceOptions

type ServiceOptions struct {
	Slug string `json:"slug"`
	Name string `json:"name"`
	File string `json:"service_file"`

	Message *ServiceOptions `json:"message"`
}

ServiceOptions contains the options to execute a service.

Jump to

Keyboard shortcuts

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