style tweaks

This commit is contained in:
Michael Hobbs
2017-10-02 16:50:05 -07:00
parent b099d2c389
commit 8654783131
22 changed files with 101 additions and 134 deletions

View File

@@ -3,7 +3,7 @@ package main
import (
"flag"
network "github.com/dokku/dokku/plugins/network"
"github.com/dokku/dokku/plugins/network"
)
// rebuilds network settings for an app

View File

@@ -1,8 +1,8 @@
package main
import (
common "github.com/dokku/dokku/plugins/common"
network "github.com/dokku/dokku/plugins/network"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/network"
)
// rebuilds network settings for all apps

View File

@@ -3,8 +3,8 @@ package main
import (
"flag"
common "github.com/dokku/dokku/plugins/common"
network "github.com/dokku/dokku/plugins/network"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/network"
)
// set or clear a network property for an app
@@ -18,5 +18,5 @@ func main() {
value = "false"
}
common.CommandPropertySet("network", appName, property, value, network.ValidProperties)
common.CommandPropertySet("network", appName, property, value, network.DefaultProperties)
}

View File

@@ -3,14 +3,13 @@ package main
import (
"fmt"
common "github.com/dokku/dokku/plugins/common"
proxy "github.com/dokku/dokku/plugins/proxy"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/proxy"
)
// runs the install step for the network plugin
func main() {
err := common.PropertySetup("network")
if err != nil {
if err := common.PropertySetup("network"); err != nil {
common.LogFail(fmt.Sprintf("Unable to install the network plugin: %s", err.Error()))
}

View File

@@ -3,7 +3,7 @@ package main
import (
"flag"
network "github.com/dokku/dokku/plugins/network"
"github.com/dokku/dokku/plugins/network"
)
// rebuilds network settings for an app

View File

@@ -6,8 +6,8 @@ import (
"os"
"strings"
common "github.com/dokku/dokku/plugins/common"
config "github.com/dokku/dokku/plugins/config"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/config"
)
// computes the ports for a given app container

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
network "github.com/dokku/dokku/plugins/network"
"github.com/dokku/dokku/plugins/network"
)
// write the ipaddress to stdout for a given app container

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
network "github.com/dokku/dokku/plugins/network"
"github.com/dokku/dokku/plugins/network"
)
// write the ipaddress to stdout for a given app container

View File

@@ -1,13 +1,13 @@
package main
import (
"path/filepath"
"flag"
"fmt"
"os"
"path/filepath"
"strings"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
)
// returns the listeners (host:port combinations) for a given app container

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
network "github.com/dokku/dokku/plugins/network"
)

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
network "github.com/dokku/dokku/plugins/network"
)

View File

@@ -6,7 +6,7 @@ import (
"os"
"strings"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
)
// writes the ip to disk

View File

@@ -6,7 +6,7 @@ import (
"os"
"strings"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
)
// writes the port to disk

View File

@@ -3,7 +3,7 @@ package main
import (
"flag"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
)
// set bind-all-interfaces to false by default

View File

@@ -3,7 +3,7 @@ package main
import (
"flag"
common "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/common"
)
// write the port to stdout for a given app container