Documentation ¶
Overview ¶
Copyright 2019 The OpenSDS Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type Meta
- func (m *Meta) Close()
- func (m *Meta) CompleteParts(uploadId uint64, parts []*types.PartInfo) error
- func (m *Meta) DeleteGcObjects(objects ...*types.GcObject) error
- func (m *Meta) DeleteParts(uploadId uint64) error
- func (m *Meta) GetCluster(fsid, poolName string) (types.Cluster, error)
- func (m *Meta) GetGcObjects(marker int64, limit int) ([]*types.GcObject, error)
- func (m *Meta) ListParts(uploadId uint64) ([]*types.PartInfo, error)
- func (m *Meta) PutGcObjects(objects ...*types.GcObject) error
- func (m *Meta) PutPart(partInfo *types.PartInfo) error
- func (m *Meta) PutPartsInGc(parts []*types.PartInfo) error
- type MetaConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg MetaConfig) (*Meta, error)
func (*Meta) CompleteParts ¶
func (*Meta) DeleteGcObjects ¶
delete gc objects meta.
func (*Meta) DeleteParts ¶
func (*Meta) GetGcObjects ¶
get gc objects by marker and limit
type MetaConfig ¶
type MetaConfig struct {
Dbcfg config.DatabaseConfig
}
Click to show internal directories.
Click to hide internal directories.