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

Method PrintServiceTokens

cli/pkg/printer/resources.go:360–369  ·  view source on GitHub ↗
(sts []*adminv1.ServiceToken)

Source from the content-addressed store, hash-verified

358}
359
360func (p *Printer) PrintServiceTokens(sts []*adminv1.ServiceToken) {
361 if len(sts) == 0 {
362 return
363 }
364 table := make([]*serviceToken, 0, len(sts))
365 for _, t := range sts {
366 table = append(table, toServiceTokenRow(t))
367 }
368 p.PrintData(table)
369}
370
371func toServiceTokenRow(s *adminv1.ServiceToken) *serviceToken {
372 var expiresOn string

Callers 1

ListCmdFunction · 0.80

Calls 2

PrintDataMethod · 0.95
toServiceTokenRowFunction · 0.85

Tested by

no test coverage detected