Dimitri Mitropoulos 1 year ago
parent
commit
e0f7fccf02
1 changed files with 19 additions and 5 deletions
  1. 19
    5
      api/v6/api.go

+ 19
- 5
api/v6/api.go View File

@@ -22,12 +22,26 @@ type ImageStatus struct {
22 22
 // send.
23 23
 type ReadOnlyReason string
24 24
 
25
+// ReadOnlyOK signifies that the repo can be written to
26
+const ReadOnlyOK ReadOnlyReason = ""
27
+
28
+// ReadOnlyMissing it's in a cluster but not in the git repo
29
+const ReadOnlyMissing ReadOnlyReason = "NotInRepo"
30
+
31
+// ReadOnlySystem indicates that the repo is in control of kubernetes not by the repo
32
+const ReadOnlySystem ReadOnlyReason = "System"
33
+
34
+// ReadOnlyNoRepo indicates that the user has elected to not supply a git repo
35
+const ReadOnlyNoRepo ReadOnlyReason = "NoRepo"
36
+
37
+// ReadOnlyNotReady indicates that Flux hasn't booted up yet
38
+const ReadOnlyNotReady ReadOnlyReason = "NotReady"
39
+
25 40
 const (
26
-	ReadOnlyOK       ReadOnlyReason = ""
27
-	ReadOnlyMissing  ReadOnlyReason = "NotInRepo"
28
-	ReadOnlySystem   ReadOnlyReason = "System"
29
-	ReadOnlyNoRepo   ReadOnlyReason = "NoRepo"
30
-	ReadOnlyNotReady ReadOnlyReason = "NotReady"
41
+	// TestGoDoc is a test for Go Doc
42
+	TestGoDoc = "asdf"
43
+
44
+	SecondGoDocTest = "qwerty" // SecondGoDocTest tests an inline comment
31 45
 )
32 46
 
33 47
 type ControllerStatus struct {

Loading…
Cancel
Save