Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcs
dfss
Commits
db3d8512
Commit
db3d8512
authored
May 26, 2016
by
Axel
Browse files
Unifomrizing imports
parent
3ee03370
Pipeline
#2311
passed with stage
Changes
28
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dfssc/security/files.go
View file @
db3d8512
...
...
@@ -7,12 +7,13 @@ import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"dfss/auth"
"dfss/dfssc/common"
"encoding/base64"
"fmt"
"io"
"strings"
"dfss/auth"
"dfss/dfssc/common"
)
// GetCertificate return the Certificate stored on the disk
...
...
dfssc/security/request.go
View file @
db3d8512
...
...
@@ -3,10 +3,10 @@ package security
import
(
"crypto/rsa"
"dfss/auth"
"dfss/dfssc/common"
"fmt"
"dfss/auth"
"dfss/dfssc/common"
"github.com/spf13/viper"
)
...
...
dfssc/security/security_test.go
View file @
db3d8512
package
security
import
(
"dfss/dfssc/common"
"fmt"
"os"
"path/filepath"
"testing"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
...
...
dfssc/sign/create_test.go
View file @
db3d8512
...
...
@@ -10,7 +10,6 @@ import (
"dfss/auth"
"dfss/mockp/server"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
...
...
dfssc/user/authentication.go
View file @
db3d8512
package
user
import
(
"errors"
"io/ioutil"
"regexp"
"time"
"github.com/spf13/viper"
"dfss/dfssc/common"
"dfss/dfssc/security"
pb
"dfss/dfssp/api"
"dfss/net"
"errors"
"github.com/spf13/viper"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
...
...
dfssc/user/authentication_test.go
View file @
db3d8512
package
user
import
(
"dfss/dfssc/common"
"fmt"
"os"
"testing"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
...
...
dfssc/user/client.go
View file @
db3d8512
...
...
@@ -6,7 +6,6 @@ import (
"dfss/dfssc/security"
pb
"dfss/dfssp/api"
"dfss/net"
"github.com/spf13/viper"
)
...
...
dfssc/user/config.go
View file @
db3d8512
package
user
import
(
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"encoding/json"
"fmt"
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"github.com/spf13/viper"
)
...
...
dfssc/user/config_test.go
View file @
db3d8512
package
user
import
(
"dfss/dfssc/common"
"dfss/dfssc/security"
"fmt"
"os"
"path/filepath"
"testing"
"dfss/dfssc/common"
"dfss/dfssc/security"
"github.com/stretchr/testify/assert"
)
...
...
dfssc/user/register_test.go
View file @
db3d8512
package
user
import
(
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/mockp/server"
"fmt"
"os"
"path/filepath"
"testing"
"time"
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/mockp/server"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
...
...
dfssc/user/unregister.go
View file @
db3d8512
...
...
@@ -3,11 +3,10 @@ package user
import
(
"errors"
"golang.org/x/net/context"
"google.golang.org/grpc"
pb
"dfss/dfssp/api"
"dfss/net"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
// Unregister a user from the platform
...
...
dfssp/authority/rootCA.go
View file @
db3d8512
...
...
@@ -8,9 +8,8 @@ import (
"os"
"path/filepath"
"github.com/spf13/viper"
"dfss/auth"
"github.com/spf13/viper"
)
// PlatformID contains platform private key and root certificate
...
...
dfssp/contract/contract_test.go
View file @
db3d8512
...
...
@@ -11,7 +11,6 @@ import (
"dfss/dfssp/server"
"dfss/mgdb"
"dfss/net"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"gopkg.in/mgo.v2/bson"
...
...
dfssp/contract/sequence_test.go
View file @
db3d8512
package
contract_test
import
(
"testing"
"dfss/dfssp/contract"
"github.com/stretchr/testify/assert"
"testing"
)
var
refSeq
=
[]
uint32
{
0
,
1
,
2
,
0
,
1
,
2
,
0
,
1
,
2
}
// for n = 3
...
...
dfssp/entities/contract.go
View file @
db3d8512
...
...
@@ -2,9 +2,9 @@
package
entities
import
(
"dfss/mgdb"
"time"
"dfss/mgdb"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
...
...
dfssp/entities/user.go
View file @
db3d8512
package
entities
import
(
"dfss/mgdb"
"time"
"dfss/mgdb"
"gopkg.in/mgo.v2/bson"
)
...
...
dfssp/user/auth_test.go
View file @
db3d8512
package
user_test
import
(
"dfss/dfssp/api"
"testing"
"time"
"dfss/dfssp/api"
"dfss/dfssp/entities"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
...
...
dfssp/user/create_test.go
View file @
db3d8512
package
user_test
import
(
"dfss/dfssp/api"
"testing"
"time"
"dfss/dfssp/api"
"dfss/dfssp/entities"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
...
...
dfsst/entities/archivesManager.go
View file @
db3d8512
...
...
@@ -4,7 +4,6 @@ package entities
import
(
cAPI
"dfss/dfssc/api"
"dfss/mgdb"
"gopkg.in/mgo.v2/bson"
)
...
...
dfsst/entities/archivesManager_test.go
View file @
db3d8512
package
entities
import
(
"crypto/sha512"
"fmt"
"os"
"testing"
"crypto/sha512"
cAPI
"dfss/dfssc/api"
"dfss/mgdb"
"github.com/stretchr/testify/assert"
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment