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) PrintBillingIssues(errs []*adminv1.BillingIssue)
- func (p *Printer) PrintData(v interface{})
- func (p *Printer) PrintDataWithTitle(v interface{}, title string)
- func (p *Printer) PrintInvites(invites []*adminv1.UserInvite)
- func (p *Printer) PrintMagicAuthTokens(tkns []*adminv1.MagicAuthToken)
- func (p *Printer) PrintMemberUsergroups(members []*adminv1.MemberUsergroup)
- func (p *Printer) PrintMemberUsers(members []*adminv1.MemberUser)
- func (p *Printer) PrintModelPartitions(partitions []*runtimev1.ModelPartition)
- func (p *Printer) PrintOrgs(orgs []*adminv1.Organization, defaultOrg string)
- func (p *Printer) PrintPlans(plans []*adminv1.BillingPlan)
- func (p *Printer) PrintProjects(projs []*adminv1.Project)
- func (p *Printer) PrintServiceTokens(sts []*adminv1.ServiceToken)
- func (p *Printer) PrintServices(svcs []*adminv1.Service)
- func (p *Printer) PrintSubscriptions(subs []*adminv1.Subscription)
- func (p *Printer) PrintUsergroupMembers(members []*adminv1.MemberUser)
- 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) PrintBillingIssues ¶ added in v0.50.0
func (p *Printer) PrintBillingIssues(errs []*adminv1.BillingIssue)
func (*Printer) PrintDataWithTitle ¶ added in v0.46.0
func (*Printer) PrintInvites ¶ added in v0.42.0
func (p *Printer) PrintInvites(invites []*adminv1.UserInvite)
func (*Printer) PrintMagicAuthTokens ¶ added in v0.47.0
func (p *Printer) PrintMagicAuthTokens(tkns []*adminv1.MagicAuthToken)
func (*Printer) PrintMemberUsergroups ¶ added in v0.47.2
func (p *Printer) PrintMemberUsergroups(members []*adminv1.MemberUsergroup)
func (*Printer) PrintMemberUsers ¶ added in v0.47.2
func (p *Printer) PrintMemberUsers(members []*adminv1.MemberUser)
func (*Printer) PrintModelPartitions ¶ added in v0.51.0
func (p *Printer) PrintModelPartitions(partitions []*runtimev1.ModelPartition)
func (*Printer) PrintOrgs ¶ added in v0.42.0
func (p *Printer) PrintOrgs(orgs []*adminv1.Organization, defaultOrg string)
func (*Printer) PrintPlans ¶ added in v0.47.0
func (p *Printer) PrintPlans(plans []*adminv1.BillingPlan)
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) PrintSubscriptions ¶ added in v0.47.0
func (p *Printer) PrintSubscriptions(subs []*adminv1.Subscription)
func (*Printer) PrintUsergroupMembers ¶ added in v0.47.2
func (p *Printer) PrintUsergroupMembers(members []*adminv1.MemberUser)
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.