protocol

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintFailed

func PrintFailed(msg string)

PrintFailed prints a fail message to stdout in JSON format

func PrintSuccess

func PrintSuccess(msg string)

PrintSuccess prints a message to stdout in JSON format

func PrintfFailed

func PrintfFailed(format string, a ...interface{})

PrintfFailed prints a formatted fail message to stdout in JSON format

func PrintfSuccess

func PrintfSuccess(format string, a ...interface{})

PrintfSuccess prints a formatted message to stdout in JSON format

func ReadParametersFromFile added in v0.0.3

func ReadParametersFromFile(path string, v interface{}) error

ReadParametersFromFile reads the Ansible parameter file and unmarshalls

Types

type Response

type Response struct {
	Msg     string `json:"msg"`
	Changed bool   `json:"changed"`
	Failed  bool   `json:"failed"`
}

Response object that needs to report back to Ansible

Jump to

Keyboard shortcuts

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