Documentation ¶
Index ¶
- Variables
- type Format
- type Printer
- func (p *Printer) OverrideDataOutput(out io.Writer)
- func (p *Printer) OverrideHumanOutput(out io.Writer)
- func (p *Printer) Print(i ...interface{})
- func (p *Printer) PrintData(v interface{})
- func (p *Printer) PrintInvites(invites []*adminv1.UserInvite)
- func (p *Printer) PrintMembers(members []*adminv1.Member)
- func (p *Printer) PrintOrgs(orgs []*adminv1.Organization, defaultOrg string)
- func (p *Printer) PrintProjects(projs []*adminv1.Project)
- func (p *Printer) PrintServiceTokens(sts []*adminv1.ServiceToken)
- func (p *Printer) PrintServices(svcs []*adminv1.Service)
- func (p *Printer) PrintUsers(users []*adminv1.User)
- func (p *Printer) Printf(format string, i ...interface{})
- func (p *Printer) PrintfBold(str string, i ...interface{})
- func (p *Printer) PrintfError(str string, i ...interface{})
- func (p *Printer) PrintfSuccess(str string, i ...interface{})
- func (p *Printer) PrintfWarn(str string, i ...interface{})
- func (p *Printer) Println(i ...interface{})
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct { Format Format // contains filtered or unexported fields }
Printer is a helper for printing output in a specific format. It differentiates between human-readable and machine-readable output. Regular log messages are always produced as human-readable output. Human-readable output is discarded when the format is not FormatHuman.
func NewPrinter ¶
func (*Printer) OverrideDataOutput ¶ added in v0.42.0
func (*Printer) OverrideHumanOutput ¶ added in v0.42.0
func (*Printer) PrintInvites ¶ added in v0.42.0
func (p *Printer) PrintInvites(invites []*adminv1.UserInvite)
func (*Printer) PrintMembers ¶ added in v0.42.0
func (*Printer) PrintOrgs ¶ added in v0.42.0
func (p *Printer) PrintOrgs(orgs []*adminv1.Organization, defaultOrg string)
func (*Printer) PrintProjects ¶ added in v0.42.0
func (*Printer) PrintServiceTokens ¶ added in v0.42.0
func (p *Printer) PrintServiceTokens(sts []*adminv1.ServiceToken)
func (*Printer) PrintServices ¶ added in v0.42.0
func (*Printer) PrintUsers ¶ added in v0.42.0
func (*Printer) PrintfBold ¶ added in v0.42.0
func (*Printer) PrintfError ¶ added in v0.42.0
func (*Printer) PrintfSuccess ¶ added in v0.42.0
func (*Printer) PrintfWarn ¶ added in v0.42.0
Click to show internal directories.
Click to hide internal directories.