MCPcopy Index your code
hub / github.com/docker/cli / parseLoggingOpts

Function parseLoggingOpts

cli/command/container/opts.go:920–926  ·  view source on GitHub ↗
(loggingDriver string, loggingOpts []string)

Source from the content-addressed store, hash-verified

918}
919
920func parseLoggingOpts(loggingDriver string, loggingOpts []string) (map[string]string, error) {
921 loggingOptsMap := opts.ConvertKVStringsToMap(loggingOpts)
922 if loggingDriver == "none" && len(loggingOpts) > 0 {
923 return map[string]string{}, fmt.Errorf("invalid logging opts for driver %s", loggingDriver)
924 }
925 return loggingOptsMap, nil
926}
927
928// takes a local seccomp daemon, reads the file contents for sending to the daemon
929func parseSecurityOpts(securityOpts []string) ([]string, error) {

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…