cmdmutate

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Opts) error

Types

type Mutation

type Mutation struct {
	// Fn is the name of the mutation function
	Fn string `json:"fn"`
	// Data contains mutation parameters as json
	Data interface{} `json:"data"`
}

type Opts

type Opts struct {
	cmdintegration.Opts
	Output   io.Writer
	Mutation Mutation
}

type Result

type Result struct {
	MutatedObjects rpcdef.MutatedObjects `json:"mutated_objects"`
	WebappResponse interface{}           `json:"webapp_response"`
	Success        bool                  `json:"success"`
	Error          string                `json:"error"`
	ErrorCode      string                `json:"error_code"`
}

Jump to

Keyboard shortcuts

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