ParseDockerTimestamp parses the timestamp returned by DockerClientInterface from string to time.Time
(s string)
| 38 | |
| 39 | // ParseDockerTimestamp parses the timestamp returned by DockerClientInterface from string to time.Time |
| 40 | func ParseDockerTimestamp(s string) (time.Time, error) { |
| 41 | // Timestamp returned by Docker is in time.RFC3339Nano format. |
| 42 | return time.Parse(time.RFC3339Nano, s) |
| 43 | } |
| 44 | |
| 45 | // matchImageTagOrSHA checks if the given image specifier is a valid image ref, |
| 46 | // and that it matches the given image. It should fail on things like image IDs |
no outgoing calls
no test coverage detected
searching dependent graphs…