summaryrefslogtreecommitdiff
path: root/dryad
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2018-07-13 16:46:15 +0200
committerMaciej Wereski <m.wereski@partner.samsung.com>2018-09-05 14:24:58 +0200
commit7f48124ddcec310cc44488b20055fa41f04f2a1d (patch)
tree4027d83bd2ea88ff177f12450c8fc441b3219593 /dryad
parente50de051fc526e2d68698fd3abd39725a72bd7f8 (diff)
downloadboruta-7f48124ddcec310cc44488b20055fa41f04f2a1d.tar.gz
boruta-7f48124ddcec310cc44488b20055fa41f04f2a1d.tar.bz2
boruta-7f48124ddcec310cc44488b20055fa41f04f2a1d.zip
Get rid of dot imports of boruta package
Using dot imports should be avoided. Such imports were left only in some tests. Change-Id: I1d4db1e2b89e2fd8475c8c657ea72b70bba32c5b Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Diffstat (limited to 'dryad')
-rw-r--r--dryad/conf/conf.go6
-rw-r--r--dryad/rusalka.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/dryad/conf/conf.go b/dryad/conf/conf.go
index d8b37cd..3c32c1d 100644
--- a/dryad/conf/conf.go
+++ b/dryad/conf/conf.go
@@ -24,7 +24,7 @@ import (
"github.com/BurntSushi/toml"
- . "git.tizen.org/tools/boruta"
+ "git.tizen.org/tools/boruta"
)
// DefaultRPCPort is a port that should be used as default parameter
@@ -39,7 +39,7 @@ func NewConf() *General {
return &General{
Address: fmt.Sprintf(":%d", DefaultRPCPort),
SSHAdress: fmt.Sprintf(":%d", DefaultSSHPort),
- Caps: Capabilities(map[string]string{}),
+ Caps: boruta.Capabilities(map[string]string{}),
User: &User{
Name: "boruta-user",
Groups: []string{},
@@ -70,7 +70,7 @@ type General struct {
//
// TODO(amistewicz): This field should be removed when
// it will be possible to read it from hardware.
- Caps Capabilities `toml:"caps"`
+ Caps boruta.Capabilities `toml:"caps"`
// User refers information necessary to create the user.
User *User `toml:"user"`
// SDcard is a base path to block device of sdcard.
diff --git a/dryad/rusalka.go b/dryad/rusalka.go
index e4af51c..7ce3731 100644
--- a/dryad/rusalka.go
+++ b/dryad/rusalka.go
@@ -23,7 +23,7 @@ import (
"context"
"fmt"
- . "git.tizen.org/tools/boruta"
+ "git.tizen.org/tools/boruta"
"git.tizen.org/tools/muxpi/sw/nanopi/stm"
"golang.org/x/crypto/ssh"
)
@@ -31,14 +31,14 @@ import (
// Rusalka implements Dryad interface. It is intended to be used on NanoPi connected to MuxPi.
// It is not safe for concurrent use.
type Rusalka struct {
- Dryad
+ boruta.Dryad
dryadUser *borutaUser
stm *stmHelper
cancelMaintenance context.CancelFunc
}
// NewRusalka returns Dryad interface to Rusalka.
-func NewRusalka(stmConn stm.Interface, username string, groups []string) Dryad {
+func NewRusalka(stmConn stm.Interface, username string, groups []string) boruta.Dryad {
return &Rusalka{
dryadUser: newBorutaUser(username, groups),
stm: &stmHelper{stmConn},