summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimportd/ctrlTelnet.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-05 14:45:56 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-05 14:45:56 (GMT)
commitff149324fb78e2cb0ae2484c79c052f38c27d4d2 (patch)
treeeaf95faf61be86ef278cdbcaf6701f0a400cb65a /src/helsinki.at/rhimportd/ctrlTelnet.go
parentf390aaa79bef626f69ced73b3eeb1f1ffea93c6d (diff)
removed Import prefix of some types
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlTelnet.go')
-rw-r--r--src/helsinki.at/rhimportd/ctrlTelnet.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlTelnet.go b/src/helsinki.at/rhimportd/ctrlTelnet.go
index 5cc578e..3b703dd 100644
--- a/src/helsinki.at/rhimportd/ctrlTelnet.go
+++ b/src/helsinki.at/rhimportd/ctrlTelnet.go
@@ -151,13 +151,13 @@ func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, rddb *rhim
return false
}
- var ctx *rhimport.ImportContext
+ var ctx *rhimport.Context
if c.UserData == nil {
- c.UserData = rhimport.NewImportContext(conf, rddb, "")
- ctx = c.UserData.(*rhimport.ImportContext)
+ c.UserData = rhimport.NewContext(conf, rddb, "")
+ ctx = c.UserData.(*rhimport.Context)
ctx.Trusted = false
} else {
- ctx = c.UserData.(*rhimport.ImportContext)
+ ctx = c.UserData.(*rhimport.Context)
}
switch strings.ToLower(args[1]) {
case "username":
@@ -209,7 +209,7 @@ func telnetShow(c *telgo.Client, args []string, conf *rhimport.Config, rddb *rhi
}
if c.UserData != nil {
- ctx := c.UserData.(*rhimport.ImportContext)
+ ctx := c.UserData.(*rhimport.Context)
c.Sayln(" UserName: %q", ctx.UserName)
c.Sayln(" Password: %q", ctx.Password)
c.Sayln(" SourceUri: %q", ctx.SourceUri)
@@ -240,7 +240,7 @@ func telnetRun(c *telgo.Client, args []string, conf *rhimport.Config, rddb *rhim
c.Sayln("context is empty please set at least one option")
return false
}
- ctx := c.UserData.(*rhimport.ImportContext)
+ ctx := c.UserData.(*rhimport.Context)
if err := ctx.SanityCheck(); err != nil {
c.Sayln("sanity check for import context returned: %s", err)
return false