Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mpcs
dfss
Commits
74dc3bc7
Commit
74dc3bc7
authored
May 26, 2016
by
Loïck Bonniot
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uniformize-imports-format-14' into 'master'
Unifomrizing imports Closes
#14
See merge request
!92
parents
61b77a63
db3d8512
Pipeline
#2319
failed with stages
Changes
28
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
37 additions
and
47 deletions
+37
-47
dfssc/security/files.go
dfssc/security/files.go
+3
-2
dfssc/security/request.go
dfssc/security/request.go
+2
-2
dfssc/security/security_test.go
dfssc/security/security_test.go
+1
-1
dfssc/sign/create_test.go
dfssc/sign/create_test.go
+0
-1
dfssc/user/authentication.go
dfssc/user/authentication.go
+2
-4
dfssc/user/authentication_test.go
dfssc/user/authentication_test.go
+1
-1
dfssc/user/client.go
dfssc/user/client.go
+0
-1
dfssc/user/config.go
dfssc/user/config.go
+3
-3
dfssc/user/config_test.go
dfssc/user/config_test.go
+2
-2
dfssc/user/register_test.go
dfssc/user/register_test.go
+4
-4
dfssc/user/unregister.go
dfssc/user/unregister.go
+2
-3
dfssp/authority/rootCA.go
dfssp/authority/rootCA.go
+1
-2
dfssp/contract/contract_test.go
dfssp/contract/contract_test.go
+0
-1
dfssp/contract/sequence_test.go
dfssp/contract/sequence_test.go
+2
-1
dfssp/entities/contract.go
dfssp/entities/contract.go
+1
-1
dfssp/entities/user.go
dfssp/entities/user.go
+1
-2
dfssp/user/auth_test.go
dfssp/user/auth_test.go
+1
-1
dfssp/user/create_test.go
dfssp/user/create_test.go
+1
-1
dfsst/entities/archivesManager.go
dfsst/entities/archivesManager.go
+0
-1
dfsst/entities/archivesManager_test.go
dfsst/entities/archivesManager_test.go
+1
-1
dfsst/entities/check_request.go
dfsst/entities/check_request.go
+1
-1
dfsst/resolve/resolve_test.go
dfsst/resolve/resolve_test.go
+1
-1
dfsst/server/server_test.go
dfsst/server/server_test.go
+1
-3
gui/userform/userform.go
gui/userform/userform.go
+0
-1
mgdb/manager_test.go
mgdb/manager_test.go
+2
-1
mockp/fixtures/authentication.go
mockp/fixtures/authentication.go
+3
-3
mockp/server/server.go
mockp/server/server.go
+0
-1
tests/impexp_test.go
tests/impexp_test.go
+1
-1
No files found.
dfssc/security/files.go
View file @
74dc3bc7
...
@@ -7,12 +7,13 @@ import (
...
@@ -7,12 +7,13 @@ import (
"crypto/rand"
"crypto/rand"
"crypto/rsa"
"crypto/rsa"
"crypto/x509"
"crypto/x509"
"dfss/auth"
"dfss/dfssc/common"
"encoding/base64"
"encoding/base64"
"fmt"
"fmt"
"io"
"io"
"strings"
"strings"
"dfss/auth"
"dfss/dfssc/common"
)
)
// GetCertificate return the Certificate stored on the disk
// GetCertificate return the Certificate stored on the disk
...
...
dfssc/security/request.go
View file @
74dc3bc7
...
@@ -3,10 +3,10 @@ package security
...
@@ -3,10 +3,10 @@ package security
import
(
import
(
"crypto/rsa"
"crypto/rsa"
"dfss/auth"
"dfss/dfssc/common"
"fmt"
"fmt"
"dfss/auth"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/spf13/viper"
)
)
...
...
dfssc/security/security_test.go
View file @
74dc3bc7
package
security
package
security
import
(
import
(
"dfss/dfssc/common"
"fmt"
"fmt"
"os"
"os"
"path/filepath"
"path/filepath"
"testing"
"testing"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
)
...
...
dfssc/sign/create_test.go
View file @
74dc3bc7
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"dfss/auth"
"dfss/auth"
"dfss/mockp/server"
"dfss/mockp/server"
"github.com/spf13/viper"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
)
...
...
dfssc/user/authentication.go
View file @
74dc3bc7
package
user
package
user
import
(
import
(
"errors"
"io/ioutil"
"io/ioutil"
"regexp"
"regexp"
"time"
"time"
"github.com/spf13/viper"
"dfss/dfssc/common"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/dfssc/security"
pb
"dfss/dfssp/api"
pb
"dfss/dfssp/api"
"dfss/net"
"dfss/net"
"errors"
"github.com/spf13/viper"
"golang.org/x/net/context"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc"
)
)
...
...
dfssc/user/authentication_test.go
View file @
74dc3bc7
package
user
package
user
import
(
import
(
"dfss/dfssc/common"
"fmt"
"fmt"
"os"
"os"
"testing"
"testing"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
)
...
...
dfssc/user/client.go
View file @
74dc3bc7
...
@@ -6,7 +6,6 @@ import (
...
@@ -6,7 +6,6 @@ import (
"dfss/dfssc/security"
"dfss/dfssc/security"
pb
"dfss/dfssp/api"
pb
"dfss/dfssp/api"
"dfss/net"
"dfss/net"
"github.com/spf13/viper"
"github.com/spf13/viper"
)
)
...
...
dfssc/user/config.go
View file @
74dc3bc7
package
user
package
user
import
(
import
(
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"github.com/spf13/viper"
"github.com/spf13/viper"
)
)
...
...
dfssc/user/config_test.go
View file @
74dc3bc7
package
user
package
user
import
(
import
(
"dfss/dfssc/common"
"dfss/dfssc/security"
"fmt"
"fmt"
"os"
"os"
"path/filepath"
"path/filepath"
"testing"
"testing"
"dfss/dfssc/common"
"dfss/dfssc/security"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
)
...
...
dfssc/user/register_test.go
View file @
74dc3bc7
package
user
package
user
import
(
import
(
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/mockp/server"
"fmt"
"fmt"
"os"
"os"
"path/filepath"
"path/filepath"
"testing"
"testing"
"time"
"time"
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/mockp/server"
"github.com/spf13/viper"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
)
...
...
dfssc/user/unregister.go
View file @
74dc3bc7
...
@@ -3,11 +3,10 @@ package user
...
@@ -3,11 +3,10 @@ package user
import
(
import
(
"errors"
"errors"
"golang.org/x/net/context"
"google.golang.org/grpc"
pb
"dfss/dfssp/api"
pb
"dfss/dfssp/api"
"dfss/net"
"dfss/net"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
)
// Unregister a user from the platform
// Unregister a user from the platform
...
...
dfssp/authority/rootCA.go
View file @
74dc3bc7
...
@@ -8,9 +8,8 @@ import (
...
@@ -8,9 +8,8 @@ import (
"os"
"os"
"path/filepath"
"path/filepath"
"github.com/spf13/viper"
"dfss/auth"
"dfss/auth"
"github.com/spf13/viper"
)
)
// PlatformID contains platform private key and root certificate
// PlatformID contains platform private key and root certificate
...
...
dfssp/contract/contract_test.go
View file @
74dc3bc7
...
@@ -11,7 +11,6 @@ import (
...
@@ -11,7 +11,6 @@ import (
"dfss/dfssp/server"
"dfss/dfssp/server"
"dfss/mgdb"
"dfss/mgdb"
"dfss/net"
"dfss/net"
"github.com/spf13/viper"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"gopkg.in/mgo.v2/bson"
"gopkg.in/mgo.v2/bson"
...
...
dfssp/contract/sequence_test.go
View file @
74dc3bc7
package
contract_test
package
contract_test
import
(
import
(
"testing"
"dfss/dfssp/contract"
"dfss/dfssp/contract"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"testing"
)
)
var
refSeq
=
[]
uint32
{
0
,
1
,
2
,
0
,
1
,
2
,
0
,
1
,
2
}
// for n = 3
var
refSeq
=
[]
uint32
{
0
,
1
,
2
,
0
,
1
,
2
,
0
,
1
,
2
}
// for n = 3
...
...
dfssp/entities/contract.go
View file @
74dc3bc7
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
package
entities
package
entities
import
(
import
(
"dfss/mgdb"
"time"
"time"
"dfss/mgdb"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"gopkg.in/mgo.v2/bson"
)
)
...
...
dfssp/entities/user.go
View file @
74dc3bc7
package
entities
package
entities
import
(
import
(
"dfss/mgdb"
"time"
"time"
"dfss/mgdb"
"gopkg.in/mgo.v2/bson"
"gopkg.in/mgo.v2/bson"
)
)
...
...
dfssp/user/auth_test.go
View file @
74dc3bc7
package
user_test
package
user_test
import
(
import
(
"dfss/dfssp/api"
"testing"
"testing"
"time"
"time"
"dfss/dfssp/api"
"dfss/dfssp/entities"
"dfss/dfssp/entities"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"golang.org/x/net/context"
...
...
dfssp/user/create_test.go
View file @
74dc3bc7
package
user_test
package
user_test
import
(
import
(
"dfss/dfssp/api"
"testing"
"testing"
"time"
"time"
"dfss/dfssp/api"
"dfss/dfssp/entities"
"dfss/dfssp/entities"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"golang.org/x/net/context"
...
...
dfsst/entities/archivesManager.go
View file @
74dc3bc7
...
@@ -4,7 +4,6 @@ package entities
...
@@ -4,7 +4,6 @@ package entities
import
(
import
(
cAPI
"dfss/dfssc/api"
cAPI
"dfss/dfssc/api"
"dfss/mgdb"
"dfss/mgdb"
"gopkg.in/mgo.v2/bson"
"gopkg.in/mgo.v2/bson"
)
)
...
...
dfsst/entities/archivesManager_test.go
View file @
74dc3bc7
package
entities
package
entities
import
(
import
(
"crypto/sha512"
"fmt"
"fmt"
"os"
"os"
"testing"
"testing"
"crypto/sha512"
cAPI
"dfss/dfssc/api"
cAPI
"dfss/dfssc/api"
"dfss/mgdb"
"dfss/mgdb"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
...
...
dfsst/entities/check_request.go
View file @
74dc3bc7
...
@@ -2,9 +2,9 @@ package entities
...
@@ -2,9 +2,9 @@ package entities
import
(
import
(
"bytes"
"bytes"
"crypto/sha512"
"errors"
"errors"
"crypto/sha512"
"dfss/auth"
"dfss/auth"
cAPI
"dfss/dfssc/api"
cAPI
"dfss/dfssc/api"
pAPI
"dfss/dfssp/api"
pAPI
"dfss/dfssp/api"
...
...
dfsst/resolve/resolve_test.go
View file @
74dc3bc7
package
resolve
package
resolve
import
(
import
(
"crypto/sha512"
"fmt"
"fmt"
"os"
"os"
"testing"
"testing"
"crypto/sha512"
cAPI
"dfss/dfssc/api"
cAPI
"dfss/dfssc/api"
"dfss/dfsst/entities"
"dfss/dfsst/entities"
"dfss/mgdb"
"dfss/mgdb"
...
...
dfsst/server/server_test.go
View file @
74dc3bc7
...
@@ -10,12 +10,10 @@ import (
...
@@ -10,12 +10,10 @@ import (
"path/filepath"
"path/filepath"
"testing"
"testing"
"github.com/spf13/viper"
"dfss/auth"
"dfss/auth"
"dfss/dfsst/entities"
"dfss/dfsst/entities"
"dfss/mgdb"
"dfss/mgdb"
"github.com/spf13/viper"
"gopkg.in/mgo.v2/bson"
"gopkg.in/mgo.v2/bson"
)
)
...
...
gui/userform/userform.go
View file @
74dc3bc7
...
@@ -7,7 +7,6 @@ import (
...
@@ -7,7 +7,6 @@ import (
"dfss/dfssc/user"
"dfss/dfssc/user"
"dfss/gui/common"
"dfss/gui/common"
"dfss/gui/config"
"dfss/gui/config"
"github.com/spf13/viper"
"github.com/spf13/viper"
"github.com/visualfc/goqt/ui"
"github.com/visualfc/goqt/ui"
)
)
...
...
mgdb/manager_test.go
View file @
74dc3bc7
...
@@ -2,9 +2,10 @@ package mgdb
...
@@ -2,9 +2,10 @@ package mgdb
import
(
import
(
"fmt"
"fmt"
"gopkg.in/mgo.v2/bson"
"os"
"os"
"testing"
"testing"
"gopkg.in/mgo.v2/bson"
)
)
type
card
struct
{
type
card
struct
{
...
...
mockp/fixtures/authentication.go
View file @
74dc3bc7
package
fixtures
package
fixtures
import
(
import
(
pb
"dfss/dfssp/api"
"dfss/dfssp/api"
)
)
// AuthFixture holds the fixture for the Auth route
// AuthFixture holds the fixture for the Auth route
var
AuthFixture
=
map
[
string
]
*
pb
.
RegisteredUser
{
var
AuthFixture
=
map
[
string
]
*
api
.
RegisteredUser
{
"default"
:
&
pb
.
RegisteredUser
{
ClientCert
:
"default"
},
"default"
:
&
api
.
RegisteredUser
{
ClientCert
:
"default"
},
}
}
mockp/server/server.go
View file @
74dc3bc7
...
@@ -9,7 +9,6 @@ import (
...
@@ -9,7 +9,6 @@ import (
"dfss/dfssp/api"
"dfss/dfssp/api"
"dfss/mockp/fixtures"
"dfss/mockp/fixtures"
"dfss/net"
"dfss/net"
"golang.org/x/net/context"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc"
)
)
...
...
tests/impexp_test.go
View file @
74dc3bc7
package
tests
package
tests
import
(
import
(
"dfss/dfssc/common"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
"os/exec"
...
@@ -9,6 +8,7 @@ import (
...
@@ -9,6 +8,7 @@ import (
"strings"
"strings"
"testing"
"testing"
"dfss/dfssc/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
)
...
...
Write
Preview
Markdown
is supported
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