container

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CID

type CID = refs.CID

CID is a type alias of CID.

type Container

type Container = container.Container

Container is a type alias of Container.

type DeleteParams

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

DeleteParams is a group of parameters for container removal operation.

func (DeleteParams) CID

func (s DeleteParams) CID() CID

CID is a container ID getter.

func (DeleteParams) Context

func (s DeleteParams) Context() context.Context

Context is a context getter.

func (DeleteParams) OwnerID

func (s DeleteParams) OwnerID() OwnerID

OwnerID is an owner ID getter.

func (*DeleteParams) SetCID

func (s *DeleteParams) SetCID(v CID)

SetCID is a container ID getter.

func (*DeleteParams) SetContext

func (s *DeleteParams) SetContext(v context.Context)

SetContext is a context setter.

func (*DeleteParams) SetOwnerID

func (s *DeleteParams) SetOwnerID(v OwnerID)

SetOwnerID is an owner ID setter.

type DeleteResult

type DeleteResult struct{}

DeleteResult is a group of values returned by container removal operation.

type GetParams

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

GetParams is a group of parameters for container receiving operation.

func (GetParams) CID

func (s GetParams) CID() CID

CID is a container ID getter.

func (GetParams) Context

func (s GetParams) Context() context.Context

Context is a context getter.

func (*GetParams) SetCID

func (s *GetParams) SetCID(v CID)

SetCID is a container ID getter.

func (*GetParams) SetContext

func (s *GetParams) SetContext(v context.Context)

SetContext is a context setter.

type GetResult

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

GetResult is a group of values returned by container receiving operation.

func (GetResult) Container

func (s GetResult) Container() *Container

Container is a container getter.

func (*GetResult) SetContainer

func (s *GetResult) SetContainer(v *Container)

SetContainer is a container setter.

type ListParams

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

ListParams is a group of parameters for container listing operation.

func (ListParams) Context

func (s ListParams) Context() context.Context

Context is a context getter.

func (ListParams) OwnerIDList

func (s ListParams) OwnerIDList() []OwnerID

OwnerIDList is an owner ID list getter.

func (*ListParams) SetContext

func (s *ListParams) SetContext(v context.Context)

SetContext is a context setter.

func (*ListParams) SetOwnerIDList

func (s *ListParams) SetOwnerIDList(v ...OwnerID)

SetOwnerIDList is an owner ID list setter.

type ListResult

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

ListResult is a group of values returned by container listing operation.

func (ListResult) CIDList

func (s ListResult) CIDList() []CID

CIDList is a container ID list getter.

func (*ListResult) SetCIDList

func (s *ListResult) SetCIDList(v []CID)

SetCIDList is a container ID list setter.

type OwnerID

type OwnerID = refs.OwnerID

OwnerID is a type alias of OwnerID.

type PutParams

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

PutParams is a group of parameters for container storing operation.

func (PutParams) Container

func (s PutParams) Container() *Container

Container is a container getter.

func (PutParams) Context

func (s PutParams) Context() context.Context

Context is a context getter.

func (*PutParams) SetContainer

func (s *PutParams) SetContainer(v *Container)

SetContainer is a container setter.

func (*PutParams) SetContext

func (s *PutParams) SetContext(v context.Context)

SetContext is a context setter.

type PutResult

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

PutResult is a group of values returned by container storing operation.

func (PutResult) CID

func (s PutResult) CID() CID

CID is a container ID getter.

func (*PutResult) SetCID

func (s *PutResult) SetCID(v CID)

SetCID is a container ID getter.

type Storage

type Storage interface {
	GetContainer(GetParams) (*GetResult, error)
	PutContainer(PutParams) (*PutResult, error)
	DeleteContainer(DeleteParams) (*DeleteResult, error)
	ListContainers(ListParams) (*ListResult, error)
}

Storage is an interface of the storage of NeoFS containers.

Jump to

Keyboard shortcuts

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