File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func LogDriver() string {
69
69
return ""
70
70
}
71
71
72
- // DefineCreateDefault is used to initialize ctr create options before flag initialization
72
+ // DefineCreateDefaults is used to initialize ctr create options before flag initialization
73
73
func DefineCreateDefaults (opts * entities.ContainerCreateOptions ) {
74
74
opts .LogDriver = LogDriver ()
75
75
opts .CgroupsMode = cgroupConfig ()
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ func (l psReporter) ImageID() string {
340
340
return l .ListContainer .ImageID
341
341
}
342
342
343
- // Labels returns a map of the pod's labels
343
+ // Label returns a map of the pod's labels
344
344
func (l psReporter ) Label (name string ) string {
345
345
return l .ListContainer .Labels [name ]
346
346
}
Original file line number Diff line number Diff line change 28
28
domainRegexp = regexp .Delayed (`^(:?(:?[a-zA-Z0-9]|(:?[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]))(:?\.(:?[a-zA-Z0-9]|(:?[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])))*)\.?\s*$` )
29
29
)
30
30
31
- // validateExtraHost validates that the specified string is a valid extrahost and returns it.
31
+ // ValidateExtraHost validates that the specified string is a valid extrahost and returns it.
32
32
// ExtraHost is in the form of name1;name2;name3:ip where the ip has to be a valid ip (ipv4 or ipv6) or the special string HostGateway.
33
33
// for add-host flag
34
34
func ValidateExtraHost (val string ) (string , error ) {
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ func (c *Container) CheckpointPath() string {
136
136
return filepath .Join (c .bundlePath (), metadata .CheckpointDirectory )
137
137
}
138
138
139
- // PreCheckpointPath returns the path to the directory containing the pre-checkpoint-images
139
+ // PreCheckPointPath returns the path to the directory containing the pre-checkpoint-images
140
140
func (c * Container ) PreCheckPointPath () string {
141
141
return filepath .Join (c .bundlePath (), preCheckpointDir )
142
142
}
You can’t perform that action at this time.
0 commit comments