res

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyResult

type ApplyResult struct {
	LocalDef  interface{} `json:"local"`
	RemoteDef interface{} `json:"remote"`
	Data      interface{} `json:"data"`
	Diff      string      `json:"diff"`
	Err       string      `json:"error"`
	Applied   bool        `json:"applied"`
}

An apply result

func (ApplyResult) GetErr

func (a ApplyResult) GetErr() error

Return the error of an apply

func (ApplyResult) HasUnappliedChanges

func (a ApplyResult) HasUnappliedChanges() bool

Determine if the apply has unapplied changes

type ApplyResults

type ApplyResults []*ApplyResult

A slice of ApplyResult pointers

func (ApplyResults) ContainsErr

func (a ApplyResults) ContainsErr() bool

Determine if any apply result has an error

func (ApplyResults) ContainsUnappliedChanges

func (a ApplyResults) ContainsUnappliedChanges() bool

Determine if any apply result has unapplied changes

func (ApplyResults) JSON

func (a ApplyResults) JSON() (string, error)

Convert apply results to JSON

type ExportResult

type ExportResult struct {
	// TODO: Change Id to name?
	Id   string      `json:"id"`
	Type string      `json:"type,omitempty"`
	Def  interface{} `json:"definition"`
}

An export result

type ExportResults

type ExportResults []ExportResult

A slice of ExportResult

func (ExportResults) Defs

func (e ExportResults) Defs() []interface{}

A slice of the definitions

func (ExportResults) Ids

func (e ExportResults) Ids() []string

A slice of the IDs

func (ExportResults) JSON

func (e ExportResults) JSON() (string, error)

Convert export results to JSON

func (ExportResults) Sort

func (e ExportResults) Sort()

Sort by ID

type TopicApplyResultData

type TopicApplyResultData struct {
	PartitionReassignments []meta.PartitionReassignment `json:"partitionReassignments"`
}

Misc data for a topic apply result

Jump to

Keyboard shortcuts

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