printutils

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 104

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintGetterList

func PrintGetterList(data interface{}, columns []string)

func PrintGetterObject

func PrintGetterObject(obj interface{})

func PrintInterfaceList

func PrintInterfaceList(data interface{}, total, offset, limit int, columns []string)

func PrintInterfaceObject

func PrintInterfaceObject(obj interface{})

func PrintJSONBatchResults

func PrintJSONBatchResults(results []SubmitResult, columns []string)

func PrintJSONList

func PrintJSONList(list *ListResult, columns []string)

func PrintJSONObject

func PrintJSONObject(obj jsonutils.JSONObject)

func PrintJSONObjectRecursive

func PrintJSONObjectRecursive(obj jsonutils.JSONObject)

func PrintJSONObjectRecursiveEx

func PrintJSONObjectRecursiveEx(obj jsonutils.JSONObject, cb PrintJSONObjectRecursiveExFunc)

Types

type ListResult

type ListResult struct {
	Data []jsonutils.JSONObject `json:"data,allowempty"`

	Total  int `json:"total"`
	Limit  int `json:"limit"`
	Offset int `json:"offset"`

	Totals jsonutils.JSONObject `json:"totals"`

	NextMarker  string
	MarkerField string
	MarkerOrder string
}

type PrintJSONObjectFunc

type PrintJSONObjectFunc func(string)

type PrintJSONObjectRecursiveExFunc

type PrintJSONObjectRecursiveExFunc func(jsonutils.JSONObject)

type SubmitResult

type SubmitResult struct {
	Status int
	Id     interface{}
	Data   jsonutils.JSONObject
}

Jump to

Keyboard shortcuts

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