Browse Source

expose internal/pb packages.

we shouldn't use internal packages.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
pull/2/head
Juan Batiz-Benet 9 years ago
parent
commit
cbbbda109a
  1. 2
      crypto/key.go
  2. 2
      crypto/pb/Makefile
  3. 4
      crypto/pb/crypto.pb.go
  4. 0
      crypto/pb/crypto.proto
  5. 2
      crypto/rsa.go
  6. 0
      crypto/secio/pb/Makefile
  7. 0
      crypto/secio/pb/spipe.pb.go
  8. 0
      crypto/secio/pb/spipe.proto
  9. 2
      crypto/secio/protocol.go

2
crypto/key.go

@ -21,7 +21,7 @@ import (
proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
pb "github.com/ipfs/go-ipfs/p2p/crypto/internal/pb"
pb "github.com/ipfs/go-ipfs/p2p/crypto/pb"
u "github.com/ipfs/go-ipfs/util"
)

2
crypto/secio/internal/pb/Makefile → crypto/pb/Makefile

@ -4,7 +4,7 @@ GO = $(PB:.proto=.pb.go)
all: $(GO)
%.pb.go: %.proto
protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $<
protoc --go_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $<
clean:
rm *.pb.go

4
crypto/internal/pb/crypto.pb.go → crypto/pb/crypto.pb.go

@ -1,4 +1,4 @@
// Code generated by protoc-gen-gogo.
// Code generated by protoc-gen-go.
// source: crypto.proto
// DO NOT EDIT!
@ -14,7 +14,7 @@ It has these top-level messages:
*/
package crypto_pb
import proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
import proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/golang/protobuf/proto"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.

0
crypto/internal/pb/crypto.proto → crypto/pb/crypto.proto

2
crypto/rsa.go

@ -10,7 +10,7 @@ import (
proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
pb "github.com/ipfs/go-ipfs/p2p/crypto/internal/pb"
pb "github.com/ipfs/go-ipfs/p2p/crypto/pb"
)
type RsaPrivateKey struct {

0
crypto/internal/pb/Makefile → crypto/secio/pb/Makefile

0
crypto/secio/internal/pb/spipe.pb.go → crypto/secio/pb/spipe.pb.go

0
crypto/secio/internal/pb/spipe.proto → crypto/secio/pb/spipe.proto

2
crypto/secio/protocol.go

@ -12,7 +12,7 @@ import (
msgio "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-msgio"
context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
ci "github.com/ipfs/go-ipfs/p2p/crypto"
pb "github.com/ipfs/go-ipfs/p2p/crypto/secio/internal/pb"
pb "github.com/ipfs/go-ipfs/p2p/crypto/secio/pb"
peer "github.com/ipfs/go-ipfs/p2p/peer"
eventlog "github.com/ipfs/go-ipfs/thirdparty/eventlog"
u "github.com/ipfs/go-ipfs/util"

Loading…
Cancel
Save