MCPcopy Create free account
hub / github.com/Mirantis/cri-dockerd / ParseDockerTimestamp

Function ParseDockerTimestamp

libdocker/helpers.go:40–43  ·  view source on GitHub ↗

ParseDockerTimestamp parses the timestamp returned by DockerClientInterface from string to time.Time

(s string)

Source from the content-addressed store, hash-verified

38
39// ParseDockerTimestamp parses the timestamp returned by DockerClientInterface from string to time.Time
40func 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

Callers 2

getContainerTimestampsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…