Documentation

Overview

Package bootstrapResult defines a common way to express the result of bootstrapping a command via JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	// ReturnCode is the process' return code.
	ReturnCode int `json:"return_code"`
	// Command, is present, is the bootstrapped command that was run.
	Command []string `json:"command,omitempty"`
}

Result is the bootstrap result data.

func (*Result) WriteJSON

func (r *Result) WriteJSON(path string) error

WriteJSON writes Result as a JSON document to the specified path.

Source Files