meta

package
Version: v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

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) Close

func (m *Meta) Close()

func (*Meta) CompleteParts

func (m *Meta) CompleteParts(uploadId uint64, parts []*types.PartInfo) error

func (*Meta) DeleteGcObjects

func (m *Meta) DeleteGcObjects(objects ...*types.GcObject) error

delete gc objects meta.

func (*Meta) DeleteParts

func (m *Meta) DeleteParts(uploadId uint64) error

func (*Meta) GetCluster

func (m *Meta) GetCluster(fsid, poolName string) (types.Cluster, error)

func (*Meta) GetGcObjects

func (m *Meta) GetGcObjects(marker int64, limit int) ([]*types.GcObject, error)

get gc objects by marker and limit

func (*Meta) ListParts

func (m *Meta) ListParts(uploadId uint64) ([]*types.PartInfo, error)

func (*Meta) PutGcObjects

func (m *Meta) PutGcObjects(objects ...*types.GcObject) error

func (*Meta) PutPart

func (m *Meta) PutPart(partInfo *types.PartInfo) error

func (*Meta) PutPartsInGc

func (m *Meta) PutPartsInGc(parts []*types.PartInfo) error

delete multipart uploaded part objects and put them into gc

type MetaConfig

type MetaConfig struct {
	Dbcfg config.DatabaseConfig
}

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL