88 "sort"
99
1010 "github.com/ipfs/go-cid"
11- core_iface "github.com/ipfs/interface-go-ipfs- core"
11+ coreiface "github.com/ipfs/kubo/ core/coreiface "
1212 "github.com/multiformats/go-multibase"
1313
1414 "berty.tech/go-ipfs-log/errmsg"
@@ -134,7 +134,7 @@ func (e *Entry) SetAdditionalDataValue(key string, value string) {
134134 e .AdditionalData [key ] = value
135135}
136136
137- func CreateEntry (ctx context.Context , ipfsInstance core_iface .CoreAPI , identity * identityprovider.Identity , data * Entry , opts * iface.CreateEntryOptions ) (iface.IPFSLogEntry , error ) {
137+ func CreateEntry (ctx context.Context , ipfsInstance coreiface .CoreAPI , identity * identityprovider.Identity , data * Entry , opts * iface.CreateEntryOptions ) (iface.IPFSLogEntry , error ) {
138138 io , err := cbor .IO (& Entry {}, & LamportClock {})
139139 if err != nil {
140140 return nil , err
@@ -144,7 +144,7 @@ func CreateEntry(ctx context.Context, ipfsInstance core_iface.CoreAPI, identity
144144}
145145
146146// CreateEntryWithIO creates an Entry.
147- func CreateEntryWithIO (ctx context.Context , ipfsInstance core_iface .CoreAPI , identity * identityprovider.Identity , data iface.IPFSLogEntry , opts * iface.CreateEntryOptions , io iface.IO ) (iface.IPFSLogEntry , error ) {
147+ func CreateEntryWithIO (ctx context.Context , ipfsInstance coreiface .CoreAPI , identity * identityprovider.Identity , data iface.IPFSLogEntry , opts * iface.CreateEntryOptions , io iface.IO ) (iface.IPFSLogEntry , error ) {
148148 if ipfsInstance == nil {
149149 return nil , errmsg .ErrIPFSNotDefined
150150 }
@@ -394,7 +394,7 @@ func (e *Entry) Verify(identity identityprovider.Interface, io iface.IO) error {
394394}
395395
396396// ToMultihash gets the multihash of an Entry.
397- func (e * Entry ) ToMultihash (ctx context.Context , ipfsInstance core_iface .CoreAPI , opts * iface.CreateEntryOptions ) (cid.Cid , error ) {
397+ func (e * Entry ) ToMultihash (ctx context.Context , ipfsInstance coreiface .CoreAPI , opts * iface.CreateEntryOptions ) (cid.Cid , error ) {
398398 io , err := cbor .IO (& Entry {}, & LamportClock {})
399399 if err != nil {
400400 return cid .Undef , err
@@ -404,7 +404,7 @@ func (e *Entry) ToMultihash(ctx context.Context, ipfsInstance core_iface.CoreAPI
404404}
405405
406406// ToMultihashWithIO gets the multihash of an Entry.
407- func ToMultihashWithIO (ctx context.Context , e iface.IPFSLogEntry , ipfsInstance core_iface .CoreAPI , opts * iface.CreateEntryOptions , io iface.IO ) (cid.Cid , error ) {
407+ func ToMultihashWithIO (ctx context.Context , e iface.IPFSLogEntry , ipfsInstance coreiface .CoreAPI , opts * iface.CreateEntryOptions , io iface.IO ) (cid.Cid , error ) {
408408 if opts == nil {
409409 opts = & iface.CreateEntryOptions {}
410410 }
@@ -468,7 +468,7 @@ func Normalize(e iface.IPFSLogEntry, opts *normalizeEntryOpts) *Entry {
468468}
469469
470470// FromMultihash creates an Entry from a hash.
471- func FromMultihash (ctx context.Context , ipfs core_iface .CoreAPI , hash cid.Cid , provider identityprovider.Interface ) (iface.IPFSLogEntry , error ) {
471+ func FromMultihash (ctx context.Context , ipfs coreiface .CoreAPI , hash cid.Cid , provider identityprovider.Interface ) (iface.IPFSLogEntry , error ) {
472472 io , err := cbor .IO (& Entry {}, & LamportClock {})
473473 if err != nil {
474474 return nil , err
@@ -478,7 +478,7 @@ func FromMultihash(ctx context.Context, ipfs core_iface.CoreAPI, hash cid.Cid, p
478478}
479479
480480// FromMultihashWithIO creates an Entry from a hash.
481- func FromMultihashWithIO (ctx context.Context , ipfs core_iface .CoreAPI , hash cid.Cid , provider identityprovider.Interface , io iface.IO ) (iface.IPFSLogEntry , error ) {
481+ func FromMultihashWithIO (ctx context.Context , ipfs coreiface .CoreAPI , hash cid.Cid , provider identityprovider.Interface , io iface.IO ) (iface.IPFSLogEntry , error ) {
482482 if ipfs == nil {
483483 return nil , errmsg .ErrIPFSNotDefined
484484 }
0 commit comments