diff --git a/cmd/diagnostics.go b/cmd/diagnostics.go index 94326a1..001b6c4 100644 --- a/cmd/diagnostics.go +++ b/cmd/diagnostics.go @@ -58,7 +58,7 @@ func newDiagnosticsCommand() *cobra.Command { return command } -// diagnosticsCmdRun collects diagnostics about wings, it's configuration and the node. +// diagnosticsCmdRun collects diagnostics about wings, its configuration and the node. // We collect: // - wings and docker versions // - relevant parts of daemon configuration diff --git a/cmd/root.go b/cmd/root.go index 12d2611..d1dac8e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -81,7 +81,7 @@ func init() { rootCommand.Flags().Bool("pprof", false, "if the pprof profiler should be enabled. The profiler will bind to localhost:6060 by default") rootCommand.Flags().Int("pprof-block-rate", 0, "enables block profile support, may have performance impacts") rootCommand.Flags().Int("pprof-port", 6060, "If provided with --pprof, the port it will run on") - rootCommand.Flags().Bool("auto-tls", false, "pass in order to have wings generate and manage it's own SSL certificates using Let's Encrypt") + rootCommand.Flags().Bool("auto-tls", false, "pass in order to have wings generate and manage its own SSL certificates using Let's Encrypt") rootCommand.Flags().String("tls-hostname", "", "required with --auto-tls, the FQDN for the generated SSL certificate") rootCommand.Flags().Bool("ignore-certificate-errors", false, "ignore certificate verification errors when executing API calls") @@ -162,7 +162,7 @@ func rootCmdRun(cmd *cobra.Command, _ []string) { ticker := time.NewTicker(time.Minute) // Every minute, write the current server states to the disk to allow for a more // seamless hard-reboot process in which wings will re-sync server states based - // on it's last tracked state. + // on its last tracked state. go func() { for { select { diff --git a/router/router_server.go b/router/router_server.go index 83fc078..4d41cb2 100644 --- a/router/router_server.go +++ b/router/router_server.go @@ -180,7 +180,7 @@ func postServerReinstall(c *gin.Context) { c.Status(http.StatusAccepted) } -// Deletes a server from the wings daemon and dissociate it's objects. +// Deletes a server from the wings daemon and dissociate its objects. func deleteServer(c *gin.Context) { s := middleware.ExtractServer(c) diff --git a/server/filesystem/archive.go b/server/filesystem/archive.go index ee6f3d6..49dffb5 100644 --- a/server/filesystem/archive.go +++ b/server/filesystem/archive.go @@ -148,7 +148,7 @@ func (a *Archive) withFilesCallback(tw *tar.Writer) func(path string, de *godirw // Adds a given file path to the final archive being created. func (a *Archive) addToArchive(p string, rp string, w *tar.Writer) error { // Lstat the file, this will give us the same information as Stat except that it will not - // follow a symlink to it's target automatically. This is important to avoid including + // follow a symlink to its target automatically. This is important to avoid including // files that exist outside the server root unintentionally in the backup. s, err := os.Lstat(p) if err != nil { diff --git a/server/filesystem/disk_space.go b/server/filesystem/disk_space.go index 3f21db4..2f66f36 100644 --- a/server/filesystem/disk_space.go +++ b/server/filesystem/disk_space.go @@ -71,7 +71,7 @@ func (fs *Filesystem) HasSpaceAvailable(allowStaleValue bool) bool { // If space is -1 or 0 just return true, means they're allowed unlimited. // // Technically we could skip disk space calculation because we don't need to check if the - // server exceeds it's limit but because this method caches the disk usage it would be best + // server exceeds its limit but because this method caches the disk usage it would be best // to calculate the disk usage and always return true. if fs.MaxDisk() == 0 { return true diff --git a/system/sink_pool.go b/system/sink_pool.go index 1c27cd7..38dab92 100644 --- a/system/sink_pool.go +++ b/system/sink_pool.go @@ -23,7 +23,7 @@ type SinkPool struct { } // NewSinkPool returns a new empty SinkPool. A sink pool generally lives with a -// server instance for it's full lifetime. +// server instance for its full lifetime. func NewSinkPool() *SinkPool { return &SinkPool{} }