5d0816430f
* rename pkg/linksharing to linksharing * rename pkg/httpserver to linksharing/httpserver * rename pkg/eestream to uplink/eestream * rename pkg/stream to uplink/stream * rename pkg/metainfo/kvmetainfo to uplink/metainfo/kvmetainfo * rename pkg/auth/signing to pkg/signing * rename pkg/storage to uplink/storage * rename pkg/accounting to satellite/accounting * rename pkg/audit to satellite/audit * rename pkg/certdb to satellite/certdb * rename pkg/discovery to satellite/discovery * rename pkg/overlay to satellite/overlay * rename pkg/datarepair to satellite/repair
32 lines
930 B
Go
32 lines
930 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package kvmetainfo
|
|
|
|
import (
|
|
"storj.io/storj/pkg/storage/buckets"
|
|
"storj.io/storj/uplink/eestream"
|
|
"storj.io/storj/uplink/metainfo"
|
|
"storj.io/storj/uplink/storage/streams"
|
|
)
|
|
|
|
// Project implements project management operations
|
|
type Project struct {
|
|
buckets buckets.Store
|
|
streams streams.Store
|
|
encryptedBlockSize int32
|
|
redundancy eestream.RedundancyStrategy
|
|
segmentsSize int64
|
|
}
|
|
|
|
// NewProject constructs a *Project
|
|
func NewProject(streams streams.Store, encryptedBlockSize int32, redundancy eestream.RedundancyStrategy, segmentsSize int64, metainfoClient metainfo.Client) *Project {
|
|
return &Project{
|
|
buckets: buckets.NewStore(metainfoClient),
|
|
streams: streams,
|
|
encryptedBlockSize: encryptedBlockSize,
|
|
redundancy: redundancy,
|
|
segmentsSize: segmentsSize,
|
|
}
|
|
}
|