extended

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilTable = errors.New("eACL table is nil")

ErrNilTable is the error returned by functions that expect a non-nil eACL table, but received nil.

Functions

This section is empty.

Types

type CID

type CID = container.ID

CID represents the container identifier.

It is a type alias of github.com/nspcc-dev/neofs-node/pkg/core/container.ID.

type Group

type Group = eacl.Group

Group represents the enumeration of different authorization groups.

It is a type alias of github.com/nspcc-dev/neofs-api-go/acl/extended.Group. FIXME: target should be defined in core lib.

type Header = eacl.Header

Header is an interface that wraps methods of string key-value header.

It is a type alias of github.com/nspcc-dev/neofs-api-go/eacl.Header. FIXME: header should be defined in core lib.

type HeaderType

type HeaderType = eacl.HeaderType

HeaderType represents the enumeration of different types of header.

It is a type alias of github.com/nspcc-dev/neofs-api-go/eacl.HeaderType. FIXME: header type enum should be defined in core lib.

type OperationType

type OperationType = eacl.OperationType

OperationType represents the enumeration of different destination types of request.

It is a type alias of github.com/nspcc-dev/neofs-api-go/eacl.OperationType. FIXME: operation type should be defined in core lib.

type RequestInfo

type RequestInfo interface {
	TypedHeaderSource

	// CID returns container identifier from request context.
	CID() CID

	// Key returns the binary representation of
	// author's public key.
	//
	// Any problem encountered can be reflected
	// through an empty slice.
	//
	// Binary key format is dictated by implementation.
	Key() []byte

	// OperationType returns the type of request destination.
	//
	// Any problem encountered can be reflected
	// through OpTypeUnknown value. Caller should handle
	// OpTypeUnknown value according to its internal logic.
	OperationType() OperationType

	// Group returns the authority group type.
	//
	// Any problem encountered can be reflected
	// through GroupUnknown value. Caller should handle
	// TargetUnknown value according to its internal logic.
	Group() Group
}

RequestInfo is an interface that wraps request with authority methods.

type TypedHeaderSource

type TypedHeaderSource interface {
	// HeadersOfType returns the list of key-value headers
	// of particular type.
	//
	// It returns any problem encountered through the boolean
	// false value.
	HeadersOfType(HeaderType) ([]Header, bool)
}

TypedHeaderSource is the interface that wraps method for selecting typed headers by type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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