output

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: BSD-3-Clause Imports: 19 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRow

func GetRow(v any, cols config.Columns) ([]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) Output

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

type JSON

type JSON struct{}

func (JSON) Output

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

type Output

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

func NewFromFlags

func NewFromFlags(fs *pflag.FlagSet, c config.Call, e config.Entity) (Output, error)

type Table

type Table struct {
	Content string
	Columns config.Columns
}

func (Table) Output

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

type YAML

type YAML struct {
	Content string
}

func (YAML) Output

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

Jump to

Keyboard shortcuts

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