MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / Format

Method Format

pkg/metadata/main.go:39–44  ·  view source on GitHub ↗
(entry *log.Entry)

Source from the content-addressed store, hash-verified

37}
38
39func (f *infoFormatter) Format(entry *log.Entry) ([]byte, error) {
40 if entry.Level == log.InfoLevel {
41 return append([]byte(entry.Message), '\n'), nil
42 }
43 return defaultLogFormatter.Format(entry)
44}
45
46// Provider is a generic interface for metadata/userdata providers.
47type Provider interface {

Callers 4

mainFunction · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected