output

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRows added in v0.0.9

func GetRows(v any, cols config.Columns, explode bool) ([][]string, error)

Types

type Default

type Default = JSON

type JQ

type JQ struct {
	// contains filtered or unexported fields
}

func NewJQ

func NewJQ(s string) (*JQ, error)

func (JQ) Content added in v0.0.7

func (j JQ) Content(ctx context.Context, v any) error

func (JQ) Error added in v0.0.7

func (JQ) Error(ctx context.Context, v any) error

type JSON

type JSON struct{}

func (JSON) Content added in v0.0.7

func (JSON) Content(ctx context.Context, v any) error

func (JSON) Error added in v0.0.7

func (j JSON) Error(ctx context.Context, v any) error

type None added in v0.0.7

type None struct {
}

func (None) Content added in v0.0.7

func (t None) Content(ctx context.Context, v any) error

func (None) Error added in v0.0.7

func (t None) Error(ctx context.Context, v any) error

type Output

type Output interface {
	Content(ctx context.Context, v any) error
	Error(ctx context.Context, v any) error
}

func NewFromFlags

func NewFromFlags(fs *pflag.FlagSet, out, contentField string, cols config.Columns, explode bool) (Output, error)

type Table

type Table struct {
	Explode bool
	Columns config.Columns
}

func (Table) Content

func (t Table) Content(ctx context.Context, v any) error

func (Table) Error added in v0.0.7

func (Table) Error(ctx context.Context, v any) error

type YAML

type YAML struct{}

func (YAML) Content

func (YAML) Content(ctx context.Context, v any) error

func (YAML) Error added in v0.0.7

func (y YAML) Error(ctx context.Context, v any) error

Jump to

Keyboard shortcuts

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