-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
84 lines (71 loc) · 1.51 KB
/
const.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package main
const cVERSION = "2.7.0"
const cCODE = "Unguarded Clover"
const cOK = "ok"
const cOP = "LOG"
const cINC = "VARS"
const cHOSTS0 = ".ssh/config"
const cHOSTS1 = "ssh_config"
const cHOSTS2 = "HOSTS"
const cLOG = "LOG"
const cREPAIRED = "__REPAIRED__"
const cCHANGED = "changed=true"
const cRUN = "script"
const cPRE = "script.pre"
const cPOST = "script.post"
const cINTERP = "shell"
const cDOC = "readme"
const cTIME = "02 Jan 06 15:04"
const cSTDOUT = " ┌─ stdout"
const cSTDERR = " ┌─ stderr"
const cSTDDBG = " ┌─ debug"
const cFOOTER = " └─"
const cANSI = "\x1b[1G\x1b[0036m%s\x1b[0000m %s"
// Output
const (
cJson = iota
cTerm = iota
cPlain = iota
)
// Call
const (
cDefault = iota
cDump = iota
cLog = iota
cTeleport = iota
)
// Sudo?
const (
cNoSudo = iota
cSudo = iota
)
// Sudo password?
const (
cNoSudoPasswd = iota
cSudoPasswd = iota
)
// Override hostname
const (
cPhaseMain = iota
cPhasePrelude = iota
cPhaseEpilogue = iota
)
// Arg mode
const (
cArgNone = iota
cArgLocalSolo = iota
cArgLocalHier = iota
cArgRemoteSolo = iota
cArgRemoteHier = iota
)
const cTARC = "--no-same-owner --no-same-permissions"
const cTARX = "--no-same-owner --no-same-permissions --no-overwrite-dir --no-acls --no-selinux --no-xattrs --touch"
const eUNSPECIFIED = "You must specify the `namespace:script`"
const cPmodes = `rr = local or ssh
rrs = ssh + sudo
rru = ssh + sudo + nopasswd
rrt = teleport
rro = teleport + sudo
rrd = dump
rrv = forced verbose
rrl = report`