display

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionVersionView

func ActionVersionView(version *management.ActionVersion) *actionVersionView

Types

type OutputFormat

type OutputFormat string
const (
	OutputFormatJSON OutputFormat = "json"
)

type Renderer

type Renderer struct {
	Tenant string

	// MessageWriter receives the renderer messages (typically os.Stderr)
	MessageWriter io.Writer

	// ResultWriter writes the final result of the commands (typically os.Stdout which can be piped to other commands)
	ResultWriter io.Writer

	// Format indicates how the results are rendered. Default (empty) will write as table
	Format OutputFormat
}

func NewRenderer

func NewRenderer() *Renderer

func (*Renderer) Action

func (r *Renderer) Action(action *management.Action)

func (*Renderer) ActionList

func (r *Renderer) ActionList(actions []*management.Action)

func (*Renderer) ActionTest

func (r *Renderer) ActionTest(payload management.Object)

func (*Renderer) ActionTriggersList

func (r *Renderer) ActionTriggersList(bindings []*management.ActionBinding)

func (*Renderer) ActionVersion

func (r *Renderer) ActionVersion(version *management.ActionVersion)

func (*Renderer) ActionVersionList

func (r *Renderer) ActionVersionList(list []*management.ActionVersion)

func (*Renderer) ApiCreate

func (r *Renderer) ApiCreate(api *management.ResourceServer)

func (*Renderer) ApiList

func (r *Renderer) ApiList(apis []*management.ResourceServer)

func (*Renderer) ApiShow

func (r *Renderer) ApiShow(api *management.ResourceServer)

func (*Renderer) ApiUpdate

func (r *Renderer) ApiUpdate(api *management.ResourceServer)

func (*Renderer) ApplicationCreate

func (r *Renderer) ApplicationCreate(client *management.Client, revealSecrets bool)

func (*Renderer) ApplicationList

func (r *Renderer) ApplicationList(clients []*management.Client)

func (*Renderer) ApplicationShow

func (r *Renderer) ApplicationShow(client *management.Client, revealSecrets bool)

func (*Renderer) ApplicationUpdate

func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bool)

func (*Renderer) Errorf

func (r *Renderer) Errorf(format string, a ...interface{})

func (*Renderer) GetToken

func (r *Renderer) GetToken(c *management.Client, t *authutil.TokenResponse)

func (*Renderer) Heading

func (r *Renderer) Heading(text ...string)

func (*Renderer) Infof

func (r *Renderer) Infof(format string, a ...interface{})

func (*Renderer) JSONResult

func (r *Renderer) JSONResult(data interface{})

func (*Renderer) LogList

func (r *Renderer) LogList(logs []*management.Log, ch <-chan []*management.Log, api auth0.ActionExecutionAPI, noColor, silent bool)

func (*Renderer) Newline

func (r *Renderer) Newline()

func (*Renderer) Result

func (r *Renderer) Result(data View)

func (*Renderer) Results

func (r *Renderer) Results(data []View)

func (*Renderer) ScopesList

func (r *Renderer) ScopesList(api string, scopes []*management.ResourceServerScope)

func (*Renderer) Stream

func (r *Renderer) Stream(data []View, ch <-chan View)

func (*Renderer) TryLogin

func (r *Renderer) TryLogin(u *authutil.UserInfo, t *authutil.TokenResponse)

func (*Renderer) Warnf

func (r *Renderer) Warnf(format string, a ...interface{})

type View

type View interface {
	AsTableHeader() []string
	AsTableRow() []string
}

Jump to

Keyboard shortcuts

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