storagegroup

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSGPrm

type GetSGPrm struct {
	Context context.Context

	OID oid.ID
	CID cid.ID

	NetMap    netmap.NetMap
	Container [][]netmap.NodeInfo
}

GetSGPrm groups parameter of GetSG operation.

type SGSource

type SGSource interface {
	// ListSG must list storage group objects in the container. Formed list must be written to destination.
	//
	// Must return any error encountered which did not allow to form the list.
	ListSG(*SearchSGDst, SearchSGPrm) error

	// GetSG must return storage group object for the provided CID, OID,
	// container and netmap state.
	GetSG(GetSGPrm) (*storagegroup.StorageGroup, error)
}

SGSource is a storage group information source interface.

type SearchSGDst

type SearchSGDst struct {
	Objects []oid.ID
}

SearchSGDst groups the target values which Processor expects from SG searching to process.

type SearchSGPrm

type SearchSGPrm struct {
	Context context.Context

	Container cid.ID

	NodeInfo client.NodeInfo
}

SearchSGPrm groups the parameters which are formed by Processor to search the storage group objects.

type StorageGroup

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

StorageGroup combines storage group object ID and its structure.

func (StorageGroup) ID

func (s StorageGroup) ID() oid.ID

ID returns object ID of the storage group.

func (*StorageGroup) SetID

func (s *StorageGroup) SetID(id oid.ID)

SetID sets an object ID of the storage group.

func (*StorageGroup) SetStorageGroup

func (s *StorageGroup) SetStorageGroup(sg storagegroup.StorageGroup)

SetStorageGroup sets a storage group descriptor.

func (StorageGroup) StorageGroup

func (s StorageGroup) StorageGroup() storagegroup.StorageGroup

StorageGroup returns the storage group descriptor.

Jump to

Keyboard shortcuts

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