Documentation ¶
Index ¶
- type OutputFormat
- type Renderer
- func (r *Renderer) ApiCreate(api *management.ResourceServer)
- func (r *Renderer) ApiList(apis []*management.ResourceServer)
- func (r *Renderer) ApiShow(api *management.ResourceServer)
- func (r *Renderer) ApiUpdate(api *management.ResourceServer)
- func (r *Renderer) ApplicationCreate(client *management.Client, revealSecrets bool)
- func (r *Renderer) ApplicationList(clients []*management.Client)
- func (r *Renderer) ApplicationShow(client *management.Client, revealSecrets bool)
- func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bool)
- func (r *Renderer) Errorf(format string, a ...interface{})
- func (r *Renderer) GetToken(c *management.Client, t *authutil.TokenResponse)
- func (r *Renderer) Heading(text ...string)
- func (r *Renderer) Infof(format string, a ...interface{})
- func (r *Renderer) JSONResult(data interface{})
- func (r *Renderer) LogList(logs []*management.Log, ch <-chan []*management.Log, ...)
- func (r *Renderer) Newline()
- func (r *Renderer) Result(data View)
- func (r *Renderer) Results(data []View)
- func (r *Renderer) RuleCreate(rule *management.Rule)
- func (r *Renderer) RuleShow(rule *management.Rule)
- func (r *Renderer) RuleUpdate(rule *management.Rule)
- func (r *Renderer) RulesList(rules []*management.Rule)
- func (r *Renderer) ScopesList(api string, scopes []*management.ResourceServerScope)
- func (r *Renderer) ShowTenants(data []string)
- func (r *Renderer) Stream(data []View, ch <-chan View)
- func (r *Renderer) TryLogin(u *authutil.UserInfo, t *authutil.TokenResponse)
- func (r *Renderer) Warnf(format string, a ...interface{})
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) 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) GetToken ¶
func (r *Renderer) GetToken(c *management.Client, t *authutil.TokenResponse)
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) RuleCreate ¶ added in v0.3.0
func (r *Renderer) RuleCreate(rule *management.Rule)
func (*Renderer) RuleShow ¶ added in v0.3.0
func (r *Renderer) RuleShow(rule *management.Rule)
func (*Renderer) RuleUpdate ¶ added in v0.3.0
func (r *Renderer) RuleUpdate(rule *management.Rule)
func (*Renderer) RulesList ¶ added in v0.3.0
func (r *Renderer) RulesList(rules []*management.Rule)
func (*Renderer) ScopesList ¶
func (r *Renderer) ScopesList(api string, scopes []*management.ResourceServerScope)
func (*Renderer) ShowTenants ¶ added in v0.2.5
Click to show internal directories.
Click to hide internal directories.