backend

package
v1.3.23 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package backend contains implementation of various backend providers.

  • Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortMpt added in v1.3.22

func AbortMpt(*core.LOM, *http.Request, url.Values, string) (int, error)

func CompleteMpt added in v1.3.22

func NewAWS

func NewAWS(_ core.TargetPut) (core.Backend, error)

func NewAzure

func NewAzure(_ core.TargetPut) (core.Backend, error)

func NewDummyBackend

func NewDummyBackend(t core.TargetPut) (core.Backend, error)

func NewGCP

func NewGCP(_ core.TargetPut) (core.Backend, error)

func NewHTTP

func NewHTTP(t core.TargetPut, config *cmn.Config) core.Backend

func PutMptPart added in v1.3.22

func StartMpt added in v1.3.22

func StartMpt(*core.LOM, *http.Request, url.Values) (string, int, error)

Types

type AISbp added in v1.3.23

type AISbp struct {
	// contains filtered or unexported fields
}

func NewAIS

func NewAIS(t core.TargetPut) *AISbp

func (*AISbp) Apply added in v1.3.23

func (m *AISbp) Apply(v any, action string, cfg *cmn.ClusterConfig) (err error)

apply new or updated (attach, detach) cmn.BackendConfAIS configuration

func (*AISbp) CreateBucket added in v1.3.23

func (*AISbp) CreateBucket(_ *meta.Bck) (ecode int, err error)

func (*AISbp) DeleteObj added in v1.3.23

func (m *AISbp) DeleteObj(lom *core.LOM) (ecode int, err error)

func (*AISbp) GetBucketInv added in v1.3.23

func (b *AISbp) GetBucketInv(*meta.Bck, *core.LsoInvCtx) (int, error)

func (*AISbp) GetInfo added in v1.3.23

func (m *AISbp) GetInfo(clusterConf cmn.BackendConfAIS) (res meta.RemAisVec)

At the same time a cluster may have registered both types of remote AIS clusters(HTTP and HTTPS). So, the method must use both kinds of clients and select the correct one at the moment it sends a request. See also: GetInfoInternal() TODO: ditto

func (*AISbp) GetInfoInternal added in v1.3.23

func (m *AISbp) GetInfoInternal() (res meta.RemAisVec)

return (m.remote + m.alias) in-memory info wo/ connecting to remote cluster(s) (compare with GetInfo() below) TODO: caller to pass its cached version to optimize-out allocations

func (*AISbp) GetObj added in v1.3.23

func (m *AISbp) GetObj(_ context.Context, lom *core.LOM, owt cmn.OWT, _ *http.Request) (ecode int, err error)

func (*AISbp) GetObjReader added in v1.3.23

func (m *AISbp) GetObjReader(_ context.Context, lom *core.LOM, offset, length int64) (res core.GetReaderResult)

func (*AISbp) HeadBucket added in v1.3.23

func (m *AISbp) HeadBucket(_ context.Context, remoteBck *meta.Bck) (bckProps cos.StrKVs, ecode int, err error)

TODO: remote AIS clusters provide native frontend API with additional capabilities that, in particular, include `dontAddRemote` = (true | false). Here we have to hardcode the value to keep HeadBucket() consistent across all backends. For similar limitations, see also ListBuckets() below.

func (*AISbp) HeadObj added in v1.3.23

func (m *AISbp) HeadObj(_ context.Context, lom *core.LOM, _ *http.Request) (oa *cmn.ObjAttrs, ecode int, err error)

TODO: remote AIS clusters provide native frontend API with additional capabilities in part including apc.Flt* location specifier. Here, and elsewhere down below, we hardcode (the default) `apc.FltPresent` to, eesentially, keep HeadObj() consistent across backends.

func (*AISbp) ListBuckets added in v1.3.23

func (m *AISbp) ListBuckets(qbck cmn.QueryBcks) (bcks cmn.Bcks, ecode int, err error)

func (*AISbp) ListObjects added in v1.3.23

func (m *AISbp) ListObjects(remoteBck *meta.Bck, msg *apc.LsoMsg, lst *cmn.LsoRes) (ecode int, err error)

func (*AISbp) ListObjectsInv added in v1.3.23

func (b *AISbp) ListObjectsInv(*meta.Bck, *apc.LsoMsg, *cmn.LsoRes, *core.LsoInvCtx) error

func (*AISbp) Provider added in v1.3.23

func (b *AISbp) Provider() string

func (*AISbp) PutObj added in v1.3.23

func (m *AISbp) PutObj(r io.ReadCloser, lom *core.LOM, _ *http.Request) (ecode int, err error)

Jump to

Keyboard shortcuts

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