Documentation
¶
Overview ¶
Package res implements structures handling the result of operations.
Package res implements structures handling the result of operations.
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"` }
ApplyResult represents an apply result.
func (ApplyResult) GetErr ¶
func (a ApplyResult) GetErr() error
GetErr returns the error of an apply.
func (ApplyResult) HasUnappliedChanges ¶
func (a ApplyResult) HasUnappliedChanges() bool
HasUnappliedChanges determines if the apply has unapplied changes.
type ApplyResults ¶
type ApplyResults []*ApplyResult
ApplyResults represents a slice of ApplyResult pointers.
func (ApplyResults) ContainsErr ¶
func (a ApplyResults) ContainsErr() bool
ContainsErr determines if any apply result has an error.
func (ApplyResults) ContainsUnappliedChanges ¶
func (a ApplyResults) ContainsUnappliedChanges() bool
ContainsUnappliedChanges determines if any apply result has unapplied changes.
func (ApplyResults) JSON ¶
func (a ApplyResults) JSON() (string, error)
JSON converts apply results to JSON.
type ExportResult ¶
type ExportResult struct { ID string `json:"id"` Type string `json:"type,omitempty"` Def interface{} `json:"definition"` }
ExportResult represents an export result.
type ExportResults ¶
type ExportResults []ExportResult
ExportResults represents a slice of ExportResult.
func (ExportResults) Defs ¶
func (e ExportResults) Defs() []interface{}
Defs returns a slice of the definitions.
func (ExportResults) IDs ¶ added in v0.1.0
func (e ExportResults) IDs() []string
IDs returns a slice of the IDs.
func (ExportResults) JSON ¶
func (e ExportResults) JSON() (string, error)
JSON converts export results to JSON.
type TopicApplyResultData ¶
type TopicApplyResultData struct {
PartitionReassignments []meta.PartitionReassignment `json:"partitionReassignments"`
}
TopicApplyResultData represents misc data for a topic apply result.