Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Json marshals the data into json, with indents included Json = iota // JsonCompact marshals the data into json, but without indents JsonCompact // Yaml marshals the data into yaml Yaml )
Variables ¶
This section is empty.
Functions ¶
func RunAdminServer ¶
func RunAdminServer(ctx context.Context, setupOpts *controller.SetupOpts)
Types ¶
type OutputFormat ¶
type OutputFormat int
OutputFormat identifies the format to output an object
func (OutputFormat) String ¶
func (f OutputFormat) String() string
type SnapshotResponseData ¶
SnapshotResponseData is the data that is returned by Getter methods on the History object It allows us to encapsulate data and errors together, so that if an issue occurs during the request, we can get access to all the relevant information
func (SnapshotResponseData) Format ¶
func (r SnapshotResponseData) Format(format OutputFormat) ([]byte, error)
func (SnapshotResponseData) MarshalJSON ¶
func (r SnapshotResponseData) MarshalJSON() ([]byte, error)
func (SnapshotResponseData) MarshalJSONString ¶
func (r SnapshotResponseData) MarshalJSONString() string
Click to show internal directories.
Click to hide internal directories.