rob05c commented on a change in pull request #5247:
URL: https://github.com/apache/trafficcontrol/pull/5247#discussion_r518199960



##########
File path: lib/go-atscfg/atscfg.go
##########
@@ -22,16 +22,36 @@ package atscfg
 import (
        "encoding/json"
        "errors"
+       "fmt"
        "net"
        "sort"
        "strconv"
        "strings"
-       "time"
 
-       "github.com/apache/trafficcontrol/lib/go-log"
        "github.com/apache/trafficcontrol/lib/go-tc"
 )
 
+// ATSConfigFile is all the information necessary to create an ATS config 
file, including the file name, path, data, and metadata.

Review comment:
       Fixed

##########
File path: lib/go-atscfg/atscfg.go
##########
@@ -22,16 +22,36 @@ package atscfg
 import (
        "encoding/json"
        "errors"
+       "fmt"
        "net"
        "sort"
        "strconv"
        "strings"
-       "time"
 
-       "github.com/apache/trafficcontrol/lib/go-log"
        "github.com/apache/trafficcontrol/lib/go-tc"
 )
 
+// ATSConfigFile is all the information necessary to create an ATS config 
file, including the file name, path, data, and metadata.
+// This is provided as a convenience and unified structure for users. The 
lib/go-atscfg library doesn't actually use or return this. See 
ATSConfigFileData.
+type CfgFile struct {
+       Name string
+       Path string
+       Cfg
+}
+
+// ATSConfigFileData is the data and metadata for an ATS Config File.

Review comment:
       Fixed




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to