-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathconst.go
More file actions
50 lines (42 loc) · 828 Bytes
/
const.go
File metadata and controls
50 lines (42 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Package apc: API control messages and constants
/*
* Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.
*/
package apc
import (
"time"
)
const (
Proxy = "proxy"
Target = "target"
)
// deployment types
const (
DeploymentK8s = "K8s"
DeploymentDev = "dev"
)
// [convention]
// reset features flags, log modules, slices inside cluster config, and more
// (see also: docs/cli.md "Special keywords")
const ResetToken = "none"
// in re: "Slowloris Attack"
const (
ReadHeaderTimeout = 16 * time.Second
EnvReadHeaderTimeout = "AIS_READ_HEADER_TIMEOUT"
)
// ulimits
const (
UlimitProxy = 16384
UlimitTarget = 262144
)
// timeouts for intra-cluster requests
const (
DefaultTimeout = time.Duration(-1)
LongTimeout = time.Duration(-2)
)
// locks
const (
LockNone = iota
LockRead
LockWrite
)