MCPcopy
hub / github.com/nektos/act / parseLoggingOpts

Function parseLoggingOpts

pkg/container/docker_cli.go:927–933  ·  view source on GitHub ↗
(loggingDriver string, loggingOpts []string)

Source from the content-addressed store, hash-verified

925}
926
927func parseLoggingOpts(loggingDriver string, loggingOpts []string) (map[string]string, error) {
928 loggingOptsMap := opts.ConvertKVStringsToMap(loggingOpts)
929 if loggingDriver == "none" && len(loggingOpts) > 0 {
930 return map[string]string{}, fmt.Errorf("invalid logging opts for driver %s", loggingDriver)
931 }
932 return loggingOptsMap, nil
933}
934
935// takes a local seccomp daemon, reads the file contents for sending to the daemon
936func 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…