2020-08-28 07:27:41 +00:00
|
|
|
package container
|
|
|
|
|
|
|
|
import (
|
2021-05-24 16:31:58 +00:00
|
|
|
cid "github.com/nspcc-dev/neofs-api-go/pkg/container/id"
|
2020-08-28 07:27:41 +00:00
|
|
|
)
|
|
|
|
|
2020-09-10 09:57:29 +00:00
|
|
|
// ID represents v2-compatible container identifier.
|
2021-05-24 16:31:58 +00:00
|
|
|
//
|
|
|
|
// Deprecated: use cid.ID instead.
|
|
|
|
type ID = cid.ID
|
2020-10-14 19:02:01 +00:00
|
|
|
|
2020-09-10 09:57:29 +00:00
|
|
|
// NewIDFromV2 wraps v2 ContainerID message to ID.
|
2021-05-24 16:31:58 +00:00
|
|
|
//
|
|
|
|
// Deprecated: use cid.NewFromV2 instead.
|
|
|
|
var NewIDFromV2 = cid.NewFromV2
|
2020-09-10 09:57:29 +00:00
|
|
|
|
|
|
|
// NewID creates and initializes blank ID.
|
|
|
|
//
|
|
|
|
// Works similar to NewIDFromV2(new(ContainerID)).
|
2020-11-13 13:07:32 +00:00
|
|
|
//
|
2021-05-24 16:31:58 +00:00
|
|
|
// Deprecated: use cid.New instead.
|
|
|
|
var NewID = cid.New
|