Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfig = `` /* 1703-byte string literal not displayed */
View Source
const ServiceTag = "svc-pg-worker"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHConnector ¶ added in v0.3.0
type SSHConnector struct { Credentials []*ent.Credential // contains filtered or unexported fields }
SSHConnector is used to establish ssh connections for the worker's task execution environment.
func (*SSHConnector) Close ¶ added in v0.3.0
func (conn *SSHConnector) Close() error
func (*SSHConnector) Connect ¶ added in v0.3.0
func (conn *SSHConnector) Connect(host string, filter func([]ssh.ClientConfig) []ssh.ClientConfig) (*ssh.Client, error)
type Worker ¶
func (*Worker) ExecTargetTask ¶
func (*Worker) HandleTaskQueued ¶
func (w *Worker) HandleTaskQueued(ctx context.Context, info event.TaskQueued)
Click to show internal directories.
Click to hide internal directories.