diff options
author | 2016-04-28 11:07:44 -0700 | |
---|---|---|
committer | 2016-04-28 19:07:44 +0100 | |
commit | e34280e7af517443a8f95e76247cf614c37fdbf6 (patch) | |
tree | f911eb03ff8e71d7f4c245e0694d3b47e2198734 /core/helpers.go | |
parent | bba63f776518347f53697160fce638419c3fe813 (diff) | |
download | coredns-e34280e7af517443a8f95e76247cf614c37fdbf6.tar.gz coredns-e34280e7af517443a8f95e76247cf614c37fdbf6.tar.zst coredns-e34280e7af517443a8f95e76247cf614c37fdbf6.zip |
Clean up remove caddy refs (#139)
* Changed reference to Caddy over to CoreDNS
* Removing references to caddy
* Fixed misleading error message to reference coredns
* Cleaning up references to caddy
* Adding clean and deps targets
Muscle memory is resulting in "make clean" commands.
* Adding test target to makefile
* More "Caddy" cleanup
Diffstat (limited to 'core/helpers.go')
-rw-r--r-- | core/helpers.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/helpers.go b/core/helpers.go index 8ef6a54cd..82a0150af 100644 --- a/core/helpers.go +++ b/core/helpers.go @@ -57,24 +57,24 @@ func signalSuccessToParent() { // signaled once; doing so more than once breaks whatever socket is // at fd 4 (the reason for this is still unclear - to reproduce, // call Stop() and Start() in succession at least once after a -// restart, then try loading first host of Caddyfile in the browser). +// restart, then try loading first host of Corefile in the browser). // Do not use this directly - call signalSuccessToParent instead. var signalParentOnce sync.Once -// caddyfileGob maps bind address to index of the file descriptor +// corefileGob maps bind address to index of the file descriptor // in the Files array passed to the child process. It also contains -// the caddyfile contents and other state needed by the new process. +// the corefile contents and other state needed by the new process. // Used only during graceful restarts where a new process is spawned. -type caddyfileGob struct { +type corefileGob struct { ListenerFds map[string]uintptr - Caddyfile Input + Corefile Input OnDemandTLSCertsIssued int32 } // IsRestart returns whether this process is, according // to env variables, a fork as part of a graceful restart. func IsRestart() bool { - return os.Getenv("CADDY_RESTART") == "true" + return os.Getenv("COREDNS_RESTART") == "true" } // writePidFile writes the process ID to the file at PidFile, if specified. @@ -83,20 +83,20 @@ func writePidFile() error { return ioutil.WriteFile(PidFile, pid, 0644) } -// CaddyfileInput represents a Caddyfile as input +// CorefileInput represents a Corefile as input // and is simply a convenient way to implement // the Input interface. -type CaddyfileInput struct { +type CorefileInput struct { Filepath string Contents []byte RealFile bool } // Body returns c.Contents. -func (c CaddyfileInput) Body() []byte { return c.Contents } +func (c CorefileInput) Body() []byte { return c.Contents } // Path returns c.Filepath. -func (c CaddyfileInput) Path() string { return c.Filepath } +func (c CorefileInput) Path() string { return c.Filepath } // IsFile returns true if the original input was a real file on the file system. -func (c CaddyfileInput) IsFile() bool { return c.RealFile } +func (c CorefileInput) IsFile() bool { return c.RealFile } |