MCPcopy Create free account
hub / github.com/auth0/auth0-cli / makeLogStreamView

Function makeLogStreamView

internal/display/log_streams.go:107–127  ·  view source on GitHub ↗
(logs *management.LogStream)

Source from the content-addressed store, hash-verified

105}
106
107func makeLogStreamView(logs *management.LogStream) (*logStreamView, error) {
108 config, err := toJSONString(logs.GetPIIConfig())
109 if err != nil {
110 return nil, err
111 }
112
113 filters, err := toJSONString(logs.GetFilters())
114 if err != nil {
115 return nil, err
116 }
117
118 return &logStreamView{
119 ID: ansi.Faint(logs.GetID()),
120 Name: logs.GetName(),
121 Type: logs.GetType(),
122 Status: logs.GetStatus(),
123 PIIConfig: config,
124 Filters: filters,
125 raw: logs,
126 }, nil
127}

Callers 4

LogStreamListMethod · 0.85
LogStreamShowMethod · 0.85
LogStreamCreateMethod · 0.85
LogStreamUpdateMethod · 0.85

Calls 3

FaintFunction · 0.92
toJSONStringFunction · 0.85
GetNameMethod · 0.65

Tested by

no test coverage detected