kubernetes/vendor/go.uber.org/zap/sink.go

const schemeFile

var _sinkRegistry

type Sink

type errSinkNotFound

func (e *errSinkNotFound) Error() string {}

type nopCloserSink

func (nopCloserSink) Close() error {}

type sinkRegistry

func newSinkRegistry() *sinkRegistry {}

// RegisterScheme registers the given factory for the specific scheme.
func (sr *sinkRegistry) RegisterSink(scheme string, factory func(*url.URL) (Sink, error)) error {}

func (sr *sinkRegistry) newSink(rawURL string) (Sink, error) {}

// RegisterSink registers a user-supplied factory for all sinks with a
// particular scheme.
//
// All schemes must be ASCII, valid under section 0.1 of RFC 3986
// (https://tools.ietf.org/html/rfc3983#section-3.1), and must not already
// have a factory registered. Zap automatically registers a factory for the
// "file" scheme.
func RegisterSink(scheme string, factory func(*url.URL) (Sink, error)) error {}

func (sr *sinkRegistry) newFileSinkFromURL(u *url.URL) (Sink, error) {}

func (sr *sinkRegistry) newFileSinkFromPath(path string) (Sink, error) {}

func normalizeScheme(s string) (string, error) {}