-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy pathfname.go
52 lines (42 loc) · 1.48 KB
/
fname.go
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
51
52
// Package fname contains filename constants and common system directories
/*
* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
*/
package fname
// See also: api/env for common environment variables
const (
HomeConfigsDir = ".config" // join(cos.HomeDir(), HomeConfigsDir)
HomeAIS = "ais" // join(cos.HomeDir(), HomeConfigsDir, HomeAisDir)
HomeCLI = "cli" // ditto
HomeAuthN = "authn"
)
const (
// plain-text initial configs (NOTE: read-only, never change)
PlainGlobalConfig = "ais.json"
PlainLocalConfig = "ais_local.json"
// versioned, replicated, and checksum-protected
GlobalConfig = ".ais.conf"
OverrideConfig = ".ais.override_config"
// proxy aisnode ID
ProxyID = ".ais.proxy_id"
// metadata
Smap = ".ais.smap" // Smap persistent file basename
Rmd = ".ais.rmd" // rmd persistent file basename
Bmd = ".ais.bmd" // bmd persistent file basename
BmdPrevious = Bmd + ".prev" // bmd previous version
Vmd = ".ais.vmd" // vmd persistent file basename
Emd = ".ais.emd" // emd persistent file basename
// CLI config
CliConfig = "cli.json" // see jsp/app.go
// AuthN: config and DB
AuthNConfig = "authn.json"
AuthNDB = "authn.db"
// Token
Token = "auth.token"
// Markers: per mountpath
MarkersDir = ".ais.markers"
ResilverMarker = "resilver"
RebalanceMarker = "rebalance"
NodeRestartedMarker = "node_restarted"
NodeRestartedPrev = "node_restarted.prev"
)