MCPcopy Create free account
hub / github.com/rilldata/rill / PrintUserTokens

Method PrintUserTokens

cli/pkg/printer/resources.go:392–401  ·  view source on GitHub ↗
(uts []*adminv1.UserAuthToken)

Source from the content-addressed store, hash-verified

390}
391
392func (p *Printer) PrintUserTokens(uts []*adminv1.UserAuthToken) {
393 if len(uts) == 0 {
394 return
395 }
396 table := make([]*userToken, 0, len(uts))
397 for _, t := range uts {
398 table = append(table, toUserTokenRow(t))
399 }
400 p.PrintData(table)
401}
402
403func toUserTokenRow(u *adminv1.UserAuthToken) *userToken {
404 var expiresOn, usedOn string

Callers 1

ListCmdFunction · 0.80

Calls 2

PrintDataMethod · 0.95
toUserTokenRowFunction · 0.85

Tested by

no test coverage detected