dispatcher

package
v0.0.0-...-73e0568 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeDispatcherMessage

func ComposeDispatcherMessage(events []message.AnsibleRunnerJobEventYaml, returnURL string, responseTo string) (*pb.Data, error)

Create the message with event data to send back to Dispatcher

func CreateMessage

func CreateMessage(events []message.AnsibleRunnerJobEventYaml) ([]byte, error)

Types

type AnsibleDispatcher

type AnsibleDispatcher struct {
	// contains filtered or unexported fields
}

Event-generating functions for the Playbook Dispatcher

func NewAnsibleDispatcher

func NewAnsibleDispatcher(deviceIDParam string) *AnsibleDispatcher

func (*AnsibleDispatcher) AddEvent

func (*AnsibleDispatcher) AddRunnerJobEvent

TODO: Implement this function

func (*AnsibleDispatcher) ExecutorOnFailed

func (d *AnsibleDispatcher) ExecutorOnFailed(correlationID string, stdout string, errorCode string, errorDetails string) message.AnsibleRunnerJobEventYaml

required event for cloud connector

func (*AnsibleDispatcher) ExecutorOnStart

func (d *AnsibleDispatcher) ExecutorOnStart(correlationID string, stdout string) message.AnsibleRunnerJobEventYaml

required event for cloud connector

func (*AnsibleDispatcher) GetMsgList

func (*AnsibleDispatcher) RunnerOnFailed

func (d *AnsibleDispatcher) RunnerOnFailed(
	runnerID string,
	playbookFilename string,
	playbookUUID string,
	msgCounter int,
	host *string,
	tasks *results.AnsiblePlaybookJSONResultsPlayTaskItem,
	hosts *results.AnsiblePlaybookJSONResultsPlayTaskHostsItem) *message.AnsibleRunnerJobEventYaml

func (*AnsibleDispatcher) RunnerOnOk

func (*AnsibleDispatcher) RunnerOnSkipped

func (d *AnsibleDispatcher) RunnerOnSkipped(
	runnerID string,
	playbookFilename string,
	playbookUUID string,
	msgCounter int,
	host *string,
	tasks *results.AnsiblePlaybookJSONResultsPlayTaskItem,
	hosts *results.AnsiblePlaybookJSONResultsPlayTaskHostsItem) *message.AnsibleRunnerJobEventYaml

Jump to

Keyboard shortcuts

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