Skip to content

Commit f4db3f1

Browse files
committed
Fix golint warnings
Codes in specs should be decent, first of all should make golint happy. Signed-off-by: Qiang Huang <[email protected]>
1 parent 4066d59 commit f4db3f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

runtime_config_linux.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,11 @@ type Seccomp struct {
243243
Syscalls []*Syscall `json:"syscalls"`
244244
}
245245

246-
// Additional architectures permitted to be used for system calls
247-
// By default only the native architecture of the kernel is permitted
246+
// Arch used for additional architectures
248247
type Arch string
249248

249+
// Additional architectures permitted to be used for system calls
250+
// By default only the native architecture of the kernel is permitted
250251
const (
251252
ArchX86 Arch = "SCMP_ARCH_X86"
252253
ArchX86_64 Arch = "SCMP_ARCH_X86_64"
@@ -264,6 +265,7 @@ const (
264265
// Action taken upon Seccomp rule match
265266
type Action string
266267

268+
// Define actions for Seccomp rules
267269
const (
268270
ActKill Action = "SCMP_ACT_KILL"
269271
ActTrap Action = "SCMP_ACT_TRAP"
@@ -275,6 +277,7 @@ const (
275277
// Operator used to match syscall arguments in Seccomp
276278
type Operator string
277279

280+
// Define operators for syscall arguments in Seccomp
278281
const (
279282
OpNotEqual Operator = "SCMP_CMP_NE"
280283
OpLessThan Operator = "SCMP_CMP_LT"

0 commit comments

Comments
 (0)