container

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContainerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "neo.fs.v2.container.ContainerService",
	HandlerType: (*ContainerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Put",
			Handler:    _ContainerService_Put_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ContainerService_Delete_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _ContainerService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ContainerService_List_Handler,
		},
		{
			MethodName: "SetExtendedACL",
			Handler:    _ContainerService_SetExtendedACL_Handler,
		},
		{
			MethodName: "GetExtendedACL",
			Handler:    _ContainerService_GetExtendedACL_Handler,
		},
		{
			MethodName: "AnnounceUsedSpace",
			Handler:    _ContainerService_AnnounceUsedSpace_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "container/grpc/service.proto",
}

ContainerService_ServiceDesc is the grpc.ServiceDesc for ContainerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_container_grpc_service_proto protoreflect.FileDescriptor
View Source
var File_container_grpc_types_proto protoreflect.FileDescriptor

Functions

func RegisterContainerServiceServer

func RegisterContainerServiceServer(s grpc.ServiceRegistrar, srv ContainerServiceServer)

Types

type AnnounceUsedSpaceRequest

type AnnounceUsedSpaceRequest struct {

	// Body of announce used space request message.
	Body *AnnounceUsedSpaceRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Announce container used space

func (*AnnounceUsedSpaceRequest) Descriptor deprecated

func (*AnnounceUsedSpaceRequest) Descriptor() ([]byte, []int)

Deprecated: Use AnnounceUsedSpaceRequest.ProtoReflect.Descriptor instead.

func (*AnnounceUsedSpaceRequest) GetBody

func (*AnnounceUsedSpaceRequest) GetMetaHeader

func (x *AnnounceUsedSpaceRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*AnnounceUsedSpaceRequest) GetVerifyHeader

func (*AnnounceUsedSpaceRequest) ProtoMessage

func (*AnnounceUsedSpaceRequest) ProtoMessage()

func (*AnnounceUsedSpaceRequest) ProtoReflect

func (x *AnnounceUsedSpaceRequest) ProtoReflect() protoreflect.Message

func (*AnnounceUsedSpaceRequest) Reset

func (x *AnnounceUsedSpaceRequest) Reset()

func (*AnnounceUsedSpaceRequest) SetBody

SetBody sets body of the request.

func (*AnnounceUsedSpaceRequest) SetMetaHeader

func (m *AnnounceUsedSpaceRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*AnnounceUsedSpaceRequest) SetVerifyHeader

SetVerifyHeader sets verification header of the request.

func (*AnnounceUsedSpaceRequest) String

func (x *AnnounceUsedSpaceRequest) String() string

type AnnounceUsedSpaceRequest_Body

type AnnounceUsedSpaceRequest_Body struct {

	// List of announcements. If nodes share several containers,
	// announcements are transferred in a batch.
	Announcements []*AnnounceUsedSpaceRequest_Body_Announcement `protobuf:"bytes,1,rep,name=announcements,proto3" json:"announcements,omitempty"`
	// contains filtered or unexported fields
}

Container used space announcement body.

func (*AnnounceUsedSpaceRequest_Body) Descriptor deprecated

func (*AnnounceUsedSpaceRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use AnnounceUsedSpaceRequest_Body.ProtoReflect.Descriptor instead.

func (*AnnounceUsedSpaceRequest_Body) GetAnnouncements

func (*AnnounceUsedSpaceRequest_Body) ProtoMessage

func (*AnnounceUsedSpaceRequest_Body) ProtoMessage()

func (*AnnounceUsedSpaceRequest_Body) ProtoReflect

func (*AnnounceUsedSpaceRequest_Body) Reset

func (x *AnnounceUsedSpaceRequest_Body) Reset()

func (*AnnounceUsedSpaceRequest_Body) SetAnnouncements

SetAnnouncements sets list of announcement for shared containers between nodes.

func (*AnnounceUsedSpaceRequest_Body) String

type AnnounceUsedSpaceRequest_Body_Announcement

type AnnounceUsedSpaceRequest_Body_Announcement struct {

	// Epoch number for which the container size estimation was produced.
	Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// Identifier of the container.
	ContainerId *grpc1.ContainerID `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// Used space is a sum of object payload sizes of a specified
	// container, stored in the node. It must not include inhumed objects.
	UsedSpace uint64 `protobuf:"varint,3,opt,name=used_space,json=usedSpace,proto3" json:"used_space,omitempty"`
	// contains filtered or unexported fields
}

Announcement contains used space information for a single container.

func (*AnnounceUsedSpaceRequest_Body_Announcement) Descriptor deprecated

Deprecated: Use AnnounceUsedSpaceRequest_Body_Announcement.ProtoReflect.Descriptor instead.

func (*AnnounceUsedSpaceRequest_Body_Announcement) GetContainerId

func (*AnnounceUsedSpaceRequest_Body_Announcement) GetEpoch

func (*AnnounceUsedSpaceRequest_Body_Announcement) GetUsedSpace

func (*AnnounceUsedSpaceRequest_Body_Announcement) ProtoMessage

func (*AnnounceUsedSpaceRequest_Body_Announcement) ProtoReflect

func (*AnnounceUsedSpaceRequest_Body_Announcement) Reset

func (*AnnounceUsedSpaceRequest_Body_Announcement) SetContainerId

SetContainerId sets identifier of the container.

func (*AnnounceUsedSpaceRequest_Body_Announcement) SetEpoch

SetEpoch sets epoch of the size estimation.

func (*AnnounceUsedSpaceRequest_Body_Announcement) SetUsedSpace

SetUsedSpace sets used space value of the container.

func (*AnnounceUsedSpaceRequest_Body_Announcement) String

type AnnounceUsedSpaceResponse

type AnnounceUsedSpaceResponse struct {

	// Body of announce used space response message.
	Body *AnnounceUsedSpaceResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Announce container used space

func (*AnnounceUsedSpaceResponse) Descriptor deprecated

func (*AnnounceUsedSpaceResponse) Descriptor() ([]byte, []int)

Deprecated: Use AnnounceUsedSpaceResponse.ProtoReflect.Descriptor instead.

func (*AnnounceUsedSpaceResponse) GetBody

func (*AnnounceUsedSpaceResponse) GetMetaHeader

func (*AnnounceUsedSpaceResponse) GetVerifyHeader

func (*AnnounceUsedSpaceResponse) ProtoMessage

func (*AnnounceUsedSpaceResponse) ProtoMessage()

func (*AnnounceUsedSpaceResponse) ProtoReflect

func (*AnnounceUsedSpaceResponse) Reset

func (x *AnnounceUsedSpaceResponse) Reset()

func (*AnnounceUsedSpaceResponse) SetBody

SetBody sets body of the response.

func (*AnnounceUsedSpaceResponse) SetMetaHeader

SetMetaHeader sets meta header of the response.

func (*AnnounceUsedSpaceResponse) SetVerifyHeader

SetVerifyHeader sets verification header of the response.

func (*AnnounceUsedSpaceResponse) String

func (x *AnnounceUsedSpaceResponse) String() string

type AnnounceUsedSpaceResponse_Body

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

`AnnounceUsedSpaceResponse` has an empty body because announcements are one way communication.

func (*AnnounceUsedSpaceResponse_Body) Descriptor deprecated

func (*AnnounceUsedSpaceResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use AnnounceUsedSpaceResponse_Body.ProtoReflect.Descriptor instead.

func (*AnnounceUsedSpaceResponse_Body) ProtoMessage

func (*AnnounceUsedSpaceResponse_Body) ProtoMessage()

func (*AnnounceUsedSpaceResponse_Body) ProtoReflect

func (*AnnounceUsedSpaceResponse_Body) Reset

func (x *AnnounceUsedSpaceResponse_Body) Reset()

func (*AnnounceUsedSpaceResponse_Body) String

type Container

type Container struct {

	// Container format version. Effectively, the version of API library used to
	// create the container.
	Version *grpc.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Identifier of the container owner
	OwnerId *grpc.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerID,proto3" json:"owner_id,omitempty"`
	// Nonce is a 16 byte UUIDv4, used to avoid collisions of `ContainerID`s
	Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// `BasicACL` contains access control rules for the owner, system and others groups,
	// as well as permission bits for `BearerToken` and `Extended ACL`
	BasicAcl uint32 `protobuf:"varint,4,opt,name=basic_acl,json=basicACL,proto3" json:"basic_acl,omitempty"`
	// Attributes represent immutable container's meta data
	Attributes []*Container_Attribute `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// Placement policy for the object inside the container
	PlacementPolicy *grpc1.PlacementPolicy `protobuf:"bytes,6,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"`
	// contains filtered or unexported fields
}

Container is a structure that defines object placement behaviour. Objects can be stored only within containers. They define placement rule, attributes and access control information. An ID of a container is a 32 byte long SHA256 hash of stable-marshalled container message.

func (*Container) Descriptor deprecated

func (*Container) Descriptor() ([]byte, []int)

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetAttributes

func (x *Container) GetAttributes() []*Container_Attribute

func (*Container) GetBasicAcl

func (x *Container) GetBasicAcl() uint32

func (*Container) GetNonce

func (x *Container) GetNonce() []byte

func (*Container) GetOwnerId

func (x *Container) GetOwnerId() *grpc.OwnerID

func (*Container) GetPlacementPolicy

func (x *Container) GetPlacementPolicy() *grpc1.PlacementPolicy

func (*Container) GetVersion

func (x *Container) GetVersion() *grpc.Version

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

func (x *Container) ProtoReflect() protoreflect.Message

func (*Container) Reset

func (x *Container) Reset()

func (*Container) SetAttributes

func (m *Container) SetAttributes(v []*Container_Attribute)

SetAttributes sets list of the container attributes.

func (*Container) SetBasicAcl

func (m *Container) SetBasicAcl(v uint32)

SetBasicAcl sets basic ACL of the container.

func (*Container) SetNonce

func (m *Container) SetNonce(v []byte)

SetNonce sets nonce of the container structure.

func (*Container) SetOwnerId

func (m *Container) SetOwnerId(v *refs.OwnerID)

SetOwnerId sets identifier of the container owner,

func (*Container) SetPlacementPolicy

func (m *Container) SetPlacementPolicy(v *netmap.PlacementPolicy)

SetPlacementPolicy sets placement policy of the container.

func (*Container) SetVersion

func (m *Container) SetVersion(v *refs.Version)

SetVersion sets version of the container.

func (*Container) String

func (x *Container) String() string

type ContainerServiceClient

type ContainerServiceClient interface {
	// `Put` invokes `Container` smart contract's `Put` method and returns
	// response immediately. After a new block is issued in sidechain, request is
	// verified by Inner Ring nodes. After one more block in sidechain, the container
	// is added into smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   request to save the container has been sent to the sidechain;
	// - Common failures (SECTION_FAILURE_COMMON).
	Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
	// `Delete` invokes `Container` smart contract's `Delete` method and returns
	// response immediately. After a new block is issued in sidechain, request is
	// verified by Inner Ring nodes. After one more block in sidechain, the container
	// is added into smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   request to remove the container has been sent to the sidechain;
	// - Common failures (SECTION_FAILURE_COMMON).
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// Returns container structure from `Container` smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   container has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON);
	// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
	//   requested container not found.
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	// Returns all owner's containers from 'Container` smart contract' storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   container list has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON).
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// Invokes 'SetEACL' method of 'Container` smart contract and returns response
	// immediately. After one more block in sidechain, changes in an Extended ACL are
	// added into smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   request to save container eACL has been sent to the sidechain;
	// - Common failures (SECTION_FAILURE_COMMON).
	SetExtendedACL(ctx context.Context, in *SetExtendedACLRequest, opts ...grpc.CallOption) (*SetExtendedACLResponse, error)
	// Returns Extended ACL table and signature from `Container` smart contract
	// storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   container eACL has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON);
	// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
	//   container not found;
	// - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
	//   eACL table not found.
	GetExtendedACL(ctx context.Context, in *GetExtendedACLRequest, opts ...grpc.CallOption) (*GetExtendedACLResponse, error)
	// Announces the space values used by the container for P2P synchronization.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   estimation of used space has been successfully announced;
	// - Common failures (SECTION_FAILURE_COMMON).
	AnnounceUsedSpace(ctx context.Context, in *AnnounceUsedSpaceRequest, opts ...grpc.CallOption) (*AnnounceUsedSpaceResponse, error)
}

ContainerServiceClient is the client API for ContainerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ContainerServiceServer

type ContainerServiceServer interface {
	// `Put` invokes `Container` smart contract's `Put` method and returns
	// response immediately. After a new block is issued in sidechain, request is
	// verified by Inner Ring nodes. After one more block in sidechain, the container
	// is added into smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   request to save the container has been sent to the sidechain;
	// - Common failures (SECTION_FAILURE_COMMON).
	Put(context.Context, *PutRequest) (*PutResponse, error)
	// `Delete` invokes `Container` smart contract's `Delete` method and returns
	// response immediately. After a new block is issued in sidechain, request is
	// verified by Inner Ring nodes. After one more block in sidechain, the container
	// is added into smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   request to remove the container has been sent to the sidechain;
	// - Common failures (SECTION_FAILURE_COMMON).
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// Returns container structure from `Container` smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   container has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON);
	// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
	//   requested container not found.
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// Returns all owner's containers from 'Container` smart contract' storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   container list has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON).
	List(context.Context, *ListRequest) (*ListResponse, error)
	// Invokes 'SetEACL' method of 'Container` smart contract and returns response
	// immediately. After one more block in sidechain, changes in an Extended ACL are
	// added into smart contract storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   request to save container eACL has been sent to the sidechain;
	// - Common failures (SECTION_FAILURE_COMMON).
	SetExtendedACL(context.Context, *SetExtendedACLRequest) (*SetExtendedACLResponse, error)
	// Returns Extended ACL table and signature from `Container` smart contract
	// storage.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   container eACL has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON);
	// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
	//   container not found;
	// - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
	//   eACL table not found.
	GetExtendedACL(context.Context, *GetExtendedACLRequest) (*GetExtendedACLResponse, error)
	// Announces the space values used by the container for P2P synchronization.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS): \
	//   estimation of used space has been successfully announced;
	// - Common failures (SECTION_FAILURE_COMMON).
	AnnounceUsedSpace(context.Context, *AnnounceUsedSpaceRequest) (*AnnounceUsedSpaceResponse, error)
}

ContainerServiceServer is the server API for ContainerService service. All implementations should embed UnimplementedContainerServiceServer for forward compatibility

type Container_Attribute

type Container_Attribute struct {

	// Attribute name key
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Attribute value
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

`Attribute` is a user-defined Key-Value metadata pair attached to the container. Container attributes are immutable. They are set at the moment of container creation and can never be added or updated.

Key name must be a container-unique valid UTF-8 string. Value can't be empty. Containers with duplicated attribute names or attributes with empty values will be considered invalid.

There are some "well-known" attributes affecting system behaviour:

  • __NEOFS__SUBNET \ String ID of a container's storage subnet. Any container can be attached to one subnet only.
  • __NEOFS__NAME \ String of a human-friendly container name registered as a domain in NNS contract.
  • __NEOFS__ZONE \ String of a zone for `__NEOFS__NAME`. Used as a TLD of a domain name in NNS contract. If no zone is specified, use default zone: `container`.
  • __NEOFS__DISABLE_HOMOMORPHIC_HASHING \ Disables homomorphic hashing for the container if the value equals "true" string. Any other values are interpreted as missing attribute. Container could be accepted in a NeoFS network only if the global network hashing configuration value corresponds with that attribute's value. After container inclusion, network setting is ignored.

And some well-known attributes used by applications only:

  • Name \ Human-friendly name
  • Timestamp \ User-defined local time of container creation in Unix Timestamp format

func (*Container_Attribute) Descriptor deprecated

func (*Container_Attribute) Descriptor() ([]byte, []int)

Deprecated: Use Container_Attribute.ProtoReflect.Descriptor instead.

func (*Container_Attribute) GetKey

func (x *Container_Attribute) GetKey() string

func (*Container_Attribute) GetValue

func (x *Container_Attribute) GetValue() string

func (*Container_Attribute) ProtoMessage

func (*Container_Attribute) ProtoMessage()

func (*Container_Attribute) ProtoReflect

func (x *Container_Attribute) ProtoReflect() protoreflect.Message

func (*Container_Attribute) Reset

func (x *Container_Attribute) Reset()

func (*Container_Attribute) SetKey

func (m *Container_Attribute) SetKey(v string)

SetKey sets key to the container attribute.

func (*Container_Attribute) SetValue

func (m *Container_Attribute) SetValue(v string)

SetValue sets value of the container attribute.

func (*Container_Attribute) String

func (x *Container_Attribute) String() string

type DeleteRequest

type DeleteRequest struct {

	// Body of container delete request message.
	Body *DeleteRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Container removal request

func (*DeleteRequest) Descriptor deprecated

func (*DeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetBody

func (x *DeleteRequest) GetBody() *DeleteRequest_Body

func (*DeleteRequest) GetMetaHeader

func (x *DeleteRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*DeleteRequest) GetVerifyHeader

func (x *DeleteRequest) GetVerifyHeader() *grpc.RequestVerificationHeader

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) SetBody

func (m *DeleteRequest) SetBody(v *DeleteRequest_Body)

SetBody sets body of the request.

func (*DeleteRequest) SetMetaHeader

func (m *DeleteRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*DeleteRequest) SetVerifyHeader

func (m *DeleteRequest) SetVerifyHeader(v *session.RequestVerificationHeader)

SetVerifyHeader sets verification header of the request.

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteRequest_Body

type DeleteRequest_Body struct {

	// Identifier of the container to delete from NeoFS
	ContainerId *grpc1.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// `ContainerID` signed with the container owner's key according to RFC-6979.
	Signature *grpc1.SignatureRFC6979 `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Container removal request body has signed `ContainerID` as a proof of the container owner's intent. The signature will be verified by `Container` smart contract, so signing algorithm must be supported by NeoVM.

func (*DeleteRequest_Body) Descriptor deprecated

func (*DeleteRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest_Body.ProtoReflect.Descriptor instead.

func (*DeleteRequest_Body) GetContainerId

func (x *DeleteRequest_Body) GetContainerId() *grpc1.ContainerID

func (*DeleteRequest_Body) GetSignature

func (x *DeleteRequest_Body) GetSignature() *grpc1.SignatureRFC6979

func (*DeleteRequest_Body) ProtoMessage

func (*DeleteRequest_Body) ProtoMessage()

func (*DeleteRequest_Body) ProtoReflect

func (x *DeleteRequest_Body) ProtoReflect() protoreflect.Message

func (*DeleteRequest_Body) Reset

func (x *DeleteRequest_Body) Reset()

func (*DeleteRequest_Body) SetContainerId

func (m *DeleteRequest_Body) SetContainerId(v *refs.ContainerID)

SetContainerId sets identifier of the container.

func (*DeleteRequest_Body) SetSignature

func (m *DeleteRequest_Body) SetSignature(v *refs.SignatureRFC6979)

SetSignature sets signature of the container identifier.

func (*DeleteRequest_Body) String

func (x *DeleteRequest_Body) String() string

type DeleteResponse

type DeleteResponse struct {

	// Body of container delete response message.
	Body *DeleteResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

`DeleteResponse` has an empty body because delete operation is asynchronous and done via consensus in Inner Ring nodes.

func (*DeleteResponse) Descriptor deprecated

func (*DeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetBody

func (x *DeleteResponse) GetBody() *DeleteResponse_Body

func (*DeleteResponse) GetMetaHeader

func (x *DeleteResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*DeleteResponse) GetVerifyHeader

func (x *DeleteResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) SetBody

func (m *DeleteResponse) SetBody(v *DeleteResponse_Body)

SetBody sets body of the response.

func (*DeleteResponse) SetMetaHeader

func (m *DeleteResponse) SetMetaHeader(v *session.ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*DeleteResponse) SetVerifyHeader

func (m *DeleteResponse) SetVerifyHeader(v *session.ResponseVerificationHeader)

SetVerifyHeader sets verification header of the response.

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type DeleteResponse_Body

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

`DeleteResponse` has an empty body because delete operation is asynchronous and done via consensus in Inner Ring nodes.

func (*DeleteResponse_Body) Descriptor deprecated

func (*DeleteResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse_Body.ProtoReflect.Descriptor instead.

func (*DeleteResponse_Body) ProtoMessage

func (*DeleteResponse_Body) ProtoMessage()

func (*DeleteResponse_Body) ProtoReflect

func (x *DeleteResponse_Body) ProtoReflect() protoreflect.Message

func (*DeleteResponse_Body) Reset

func (x *DeleteResponse_Body) Reset()

func (*DeleteResponse_Body) String

func (x *DeleteResponse_Body) String() string

type GetExtendedACLRequest

type GetExtendedACLRequest struct {

	// Body of get extended acl request message.
	Body *GetExtendedACLRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Get Extended ACL

func (*GetExtendedACLRequest) Descriptor deprecated

func (*GetExtendedACLRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetExtendedACLRequest.ProtoReflect.Descriptor instead.

func (*GetExtendedACLRequest) GetBody

func (*GetExtendedACLRequest) GetMetaHeader

func (x *GetExtendedACLRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*GetExtendedACLRequest) GetVerifyHeader

func (*GetExtendedACLRequest) ProtoMessage

func (*GetExtendedACLRequest) ProtoMessage()

func (*GetExtendedACLRequest) ProtoReflect

func (x *GetExtendedACLRequest) ProtoReflect() protoreflect.Message

func (*GetExtendedACLRequest) Reset

func (x *GetExtendedACLRequest) Reset()

func (*GetExtendedACLRequest) SetBody

SetBody sets body of the request.

func (*GetExtendedACLRequest) SetMetaHeader

func (m *GetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*GetExtendedACLRequest) SetVerifyHeader

SetVerifyHeader sets verification header of the request.

func (*GetExtendedACLRequest) String

func (x *GetExtendedACLRequest) String() string

type GetExtendedACLRequest_Body

type GetExtendedACLRequest_Body struct {

	// Identifier of the container having Extended ACL
	ContainerId *grpc1.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// contains filtered or unexported fields
}

Get Extended ACL request body

func (*GetExtendedACLRequest_Body) Descriptor deprecated

func (*GetExtendedACLRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use GetExtendedACLRequest_Body.ProtoReflect.Descriptor instead.

func (*GetExtendedACLRequest_Body) GetContainerId

func (x *GetExtendedACLRequest_Body) GetContainerId() *grpc1.ContainerID

func (*GetExtendedACLRequest_Body) ProtoMessage

func (*GetExtendedACLRequest_Body) ProtoMessage()

func (*GetExtendedACLRequest_Body) ProtoReflect

func (*GetExtendedACLRequest_Body) Reset

func (x *GetExtendedACLRequest_Body) Reset()

func (*GetExtendedACLRequest_Body) SetContainerId

func (m *GetExtendedACLRequest_Body) SetContainerId(v *refs.ContainerID)

SetContainerId sets identifier of the container.

func (*GetExtendedACLRequest_Body) String

func (x *GetExtendedACLRequest_Body) String() string

type GetExtendedACLResponse

type GetExtendedACLResponse struct {

	// Body of get extended acl response message.
	Body *GetExtendedACLResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Get Extended ACL

func (*GetExtendedACLResponse) Descriptor deprecated

func (*GetExtendedACLResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetExtendedACLResponse.ProtoReflect.Descriptor instead.

func (*GetExtendedACLResponse) GetBody

func (*GetExtendedACLResponse) GetMetaHeader

func (x *GetExtendedACLResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*GetExtendedACLResponse) GetVerifyHeader

func (*GetExtendedACLResponse) ProtoMessage

func (*GetExtendedACLResponse) ProtoMessage()

func (*GetExtendedACLResponse) ProtoReflect

func (x *GetExtendedACLResponse) ProtoReflect() protoreflect.Message

func (*GetExtendedACLResponse) Reset

func (x *GetExtendedACLResponse) Reset()

func (*GetExtendedACLResponse) SetBody

SetBody sets body of the response.

func (*GetExtendedACLResponse) SetMetaHeader

func (m *GetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*GetExtendedACLResponse) SetVerifyHeader

SetVerifyHeader sets verification header of the response.

func (*GetExtendedACLResponse) String

func (x *GetExtendedACLResponse) String() string

type GetExtendedACLResponse_Body

type GetExtendedACLResponse_Body struct {

	// Extended ACL requested, if available
	Eacl *grpc2.EACLTable `protobuf:"bytes,1,opt,name=eacl,proto3" json:"eacl,omitempty"`
	// Signature of stable-marshalled Extended ACL according to RFC-6979.
	Signature *grpc1.SignatureRFC6979 `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// Session token if Extended ACL was set within a session
	SessionToken *grpc.SessionToken `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// contains filtered or unexported fields
}

Get Extended ACL Response body can be empty if the requested container does not have Extended ACL Table attached or Extended ACL has not been allowed at the time of container creation.

func (*GetExtendedACLResponse_Body) Descriptor deprecated

func (*GetExtendedACLResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use GetExtendedACLResponse_Body.ProtoReflect.Descriptor instead.

func (*GetExtendedACLResponse_Body) GetEacl

func (*GetExtendedACLResponse_Body) GetSessionToken

func (x *GetExtendedACLResponse_Body) GetSessionToken() *grpc.SessionToken

func (*GetExtendedACLResponse_Body) GetSignature

func (*GetExtendedACLResponse_Body) ProtoMessage

func (*GetExtendedACLResponse_Body) ProtoMessage()

func (*GetExtendedACLResponse_Body) ProtoReflect

func (*GetExtendedACLResponse_Body) Reset

func (x *GetExtendedACLResponse_Body) Reset()

func (*GetExtendedACLResponse_Body) SetEacl

func (m *GetExtendedACLResponse_Body) SetEacl(v *acl.EACLTable)

SetEacl sets eACL table structure.

func (*GetExtendedACLResponse_Body) SetSessionToken

func (m *GetExtendedACLResponse_Body) SetSessionToken(v *session.SessionToken)

SetSessionToken sets token of the session within which requested eACl table was set.

func (*GetExtendedACLResponse_Body) SetSignature

SetSignature sets signature of the eACL table structure.

func (*GetExtendedACLResponse_Body) String

func (x *GetExtendedACLResponse_Body) String() string

type GetRequest

type GetRequest struct {

	// Body of container get request message.
	Body *GetRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Get container structure

func (*GetRequest) Descriptor deprecated

func (*GetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetBody

func (x *GetRequest) GetBody() *GetRequest_Body

func (*GetRequest) GetMetaHeader

func (x *GetRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*GetRequest) GetVerifyHeader

func (x *GetRequest) GetVerifyHeader() *grpc.RequestVerificationHeader

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

func (x *GetRequest) ProtoReflect() protoreflect.Message

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) SetBody

func (m *GetRequest) SetBody(v *GetRequest_Body)

SetBody sets body of the request.

func (*GetRequest) SetMetaHeader

func (m *GetRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*GetRequest) SetVerifyHeader

func (m *GetRequest) SetVerifyHeader(v *session.RequestVerificationHeader)

SetVerifyHeader sets verification header of the request.

func (*GetRequest) String

func (x *GetRequest) String() string

type GetRequest_Body

type GetRequest_Body struct {

	// Identifier of the container to get
	ContainerId *grpc1.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// contains filtered or unexported fields
}

Get container structure request body.

func (*GetRequest_Body) Descriptor deprecated

func (*GetRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest_Body.ProtoReflect.Descriptor instead.

func (*GetRequest_Body) GetContainerId

func (x *GetRequest_Body) GetContainerId() *grpc1.ContainerID

func (*GetRequest_Body) ProtoMessage

func (*GetRequest_Body) ProtoMessage()

func (*GetRequest_Body) ProtoReflect

func (x *GetRequest_Body) ProtoReflect() protoreflect.Message

func (*GetRequest_Body) Reset

func (x *GetRequest_Body) Reset()

func (*GetRequest_Body) SetContainerId

func (m *GetRequest_Body) SetContainerId(v *refs.ContainerID)

SetContainerId sets identifier of the container.

func (*GetRequest_Body) String

func (x *GetRequest_Body) String() string

type GetResponse

type GetResponse struct {

	// Body of container get response message.
	Body *GetResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Get container structure

func (*GetResponse) Descriptor deprecated

func (*GetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetBody

func (x *GetResponse) GetBody() *GetResponse_Body

func (*GetResponse) GetMetaHeader

func (x *GetResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*GetResponse) GetVerifyHeader

func (x *GetResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

func (x *GetResponse) ProtoReflect() protoreflect.Message

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) SetBody

func (m *GetResponse) SetBody(v *GetResponse_Body)

SetBody sets body of the response.

func (*GetResponse) SetMetaHeader

func (m *GetResponse) SetMetaHeader(v *session.ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*GetResponse) SetVerifyHeader

func (m *GetResponse) SetVerifyHeader(v *session.ResponseVerificationHeader)

SetVerifyHeader sets verification header of the response.

func (*GetResponse) String

func (x *GetResponse) String() string

type GetResponse_Body

type GetResponse_Body struct {

	// Requested container structure
	Container *Container `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"`
	// Signature of a stable-marshalled container according to RFC-6979.
	Signature *grpc1.SignatureRFC6979 `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// Session token if the container has been created within the session
	SessionToken *grpc.SessionToken `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// contains filtered or unexported fields
}

Get container response body does not have container structure signature. It has been already verified upon container creation.

func (*GetResponse_Body) Descriptor deprecated

func (*GetResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse_Body.ProtoReflect.Descriptor instead.

func (*GetResponse_Body) GetContainer

func (x *GetResponse_Body) GetContainer() *Container

func (*GetResponse_Body) GetSessionToken

func (x *GetResponse_Body) GetSessionToken() *grpc.SessionToken

func (*GetResponse_Body) GetSignature

func (x *GetResponse_Body) GetSignature() *grpc1.SignatureRFC6979

func (*GetResponse_Body) ProtoMessage

func (*GetResponse_Body) ProtoMessage()

func (*GetResponse_Body) ProtoReflect

func (x *GetResponse_Body) ProtoReflect() protoreflect.Message

func (*GetResponse_Body) Reset

func (x *GetResponse_Body) Reset()

func (*GetResponse_Body) SetContainer

func (m *GetResponse_Body) SetContainer(v *Container)

SetContainer sets the container structure.

func (*GetResponse_Body) SetSessionToken

func (m *GetResponse_Body) SetSessionToken(v *session.SessionToken)

SetSessionToken sets token of the session within which requested container was created.

func (*GetResponse_Body) SetSignature

func (m *GetResponse_Body) SetSignature(v *refs.SignatureRFC6979)

SetSignature sets signature of the container structure.

func (*GetResponse_Body) String

func (x *GetResponse_Body) String() string

type ListRequest

type ListRequest struct {

	// Body of list containers request message
	Body *ListRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

List containers

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetBody

func (x *ListRequest) GetBody() *ListRequest_Body

func (*ListRequest) GetMetaHeader

func (x *ListRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*ListRequest) GetVerifyHeader

func (x *ListRequest) GetVerifyHeader() *grpc.RequestVerificationHeader

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) SetBody

func (m *ListRequest) SetBody(v *ListRequest_Body)

SetBody sets body of the request.

func (*ListRequest) SetMetaHeader

func (m *ListRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*ListRequest) SetVerifyHeader

func (m *ListRequest) SetVerifyHeader(v *session.RequestVerificationHeader)

SetVerifyHeader sets verification header of the request.

func (*ListRequest) String

func (x *ListRequest) String() string

type ListRequest_Body

type ListRequest_Body struct {

	// Identifier of the container owner
	OwnerId *grpc1.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// contains filtered or unexported fields
}

List containers request body.

func (*ListRequest_Body) Descriptor deprecated

func (*ListRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest_Body.ProtoReflect.Descriptor instead.

func (*ListRequest_Body) GetOwnerId

func (x *ListRequest_Body) GetOwnerId() *grpc1.OwnerID

func (*ListRequest_Body) ProtoMessage

func (*ListRequest_Body) ProtoMessage()

func (*ListRequest_Body) ProtoReflect

func (x *ListRequest_Body) ProtoReflect() protoreflect.Message

func (*ListRequest_Body) Reset

func (x *ListRequest_Body) Reset()

func (*ListRequest_Body) SetOwnerId

func (m *ListRequest_Body) SetOwnerId(v *refs.OwnerID)

SetOwnerId sets identifier of the container owner.

func (*ListRequest_Body) String

func (x *ListRequest_Body) String() string

type ListResponse

type ListResponse struct {

	// Body of list containers response message.
	Body *ListResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

List containers

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetBody

func (x *ListResponse) GetBody() *ListResponse_Body

func (*ListResponse) GetMetaHeader

func (x *ListResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*ListResponse) GetVerifyHeader

func (x *ListResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) SetBody

func (m *ListResponse) SetBody(v *ListResponse_Body)

SetBody sets body of the response.

func (*ListResponse) SetMetaHeader

func (m *ListResponse) SetMetaHeader(v *session.ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*ListResponse) SetVerifyHeader

func (m *ListResponse) SetVerifyHeader(v *session.ResponseVerificationHeader)

SetVerifyHeader sets verification header of the response.

func (*ListResponse) String

func (x *ListResponse) String() string

type ListResponse_Body

type ListResponse_Body struct {

	// List of `ContainerID`s belonging to the requested `OwnerID`
	ContainerIds []*grpc1.ContainerID `protobuf:"bytes,1,rep,name=container_ids,json=containerIds,proto3" json:"container_ids,omitempty"`
	// contains filtered or unexported fields
}

List containers response body.

func (*ListResponse_Body) Descriptor deprecated

func (*ListResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse_Body.ProtoReflect.Descriptor instead.

func (*ListResponse_Body) GetContainerIds

func (x *ListResponse_Body) GetContainerIds() []*grpc1.ContainerID

func (*ListResponse_Body) ProtoMessage

func (*ListResponse_Body) ProtoMessage()

func (*ListResponse_Body) ProtoReflect

func (x *ListResponse_Body) ProtoReflect() protoreflect.Message

func (*ListResponse_Body) Reset

func (x *ListResponse_Body) Reset()

func (*ListResponse_Body) SetContainerIds

func (m *ListResponse_Body) SetContainerIds(v []*refs.ContainerID)

SetContainerIds sets list of the container identifiers.

func (*ListResponse_Body) String

func (x *ListResponse_Body) String() string

type PutRequest

type PutRequest struct {

	// Body of container put request message.
	Body *PutRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

New NeoFS Container creation request

func (*PutRequest) Descriptor deprecated

func (*PutRequest) Descriptor() ([]byte, []int)

Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.

func (*PutRequest) GetBody

func (x *PutRequest) GetBody() *PutRequest_Body

func (*PutRequest) GetMetaHeader

func (x *PutRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*PutRequest) GetVerifyHeader

func (x *PutRequest) GetVerifyHeader() *grpc.RequestVerificationHeader

func (*PutRequest) ProtoMessage

func (*PutRequest) ProtoMessage()

func (*PutRequest) ProtoReflect

func (x *PutRequest) ProtoReflect() protoreflect.Message

func (*PutRequest) Reset

func (x *PutRequest) Reset()

func (*PutRequest) SetBody

func (m *PutRequest) SetBody(v *PutRequest_Body)

SetBody sets body of the request.

func (*PutRequest) SetMetaHeader

func (m *PutRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*PutRequest) SetVerifyHeader

func (m *PutRequest) SetVerifyHeader(v *session.RequestVerificationHeader)

SetVerifyHeader sets verification header of the request.

func (*PutRequest) String

func (x *PutRequest) String() string

type PutRequest_Body

type PutRequest_Body struct {

	// Container structure to register in NeoFS
	Container *Container `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"`
	// Signature of a stable-marshalled container according to RFC-6979.
	Signature *grpc1.SignatureRFC6979 `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Container creation request has container structure's signature as a separate field. It's not stored in sidechain, just verified on container creation by `Container` smart contract. `ContainerID` is a SHA256 hash of the stable-marshalled container strucutre, hence there is no need for additional signature checks.

func (*PutRequest_Body) Descriptor deprecated

func (*PutRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use PutRequest_Body.ProtoReflect.Descriptor instead.

func (*PutRequest_Body) GetContainer

func (x *PutRequest_Body) GetContainer() *Container

func (*PutRequest_Body) GetSignature

func (x *PutRequest_Body) GetSignature() *grpc1.SignatureRFC6979

func (*PutRequest_Body) ProtoMessage

func (*PutRequest_Body) ProtoMessage()

func (*PutRequest_Body) ProtoReflect

func (x *PutRequest_Body) ProtoReflect() protoreflect.Message

func (*PutRequest_Body) Reset

func (x *PutRequest_Body) Reset()

func (*PutRequest_Body) SetContainer

func (m *PutRequest_Body) SetContainer(v *Container)

SetContainer sets container of the request.

func (*PutRequest_Body) SetSignature

func (m *PutRequest_Body) SetSignature(v *refs.SignatureRFC6979)

SetSignature sets signature of the container structure.

func (*PutRequest_Body) String

func (x *PutRequest_Body) String() string

type PutResponse

type PutResponse struct {

	// Body of container put response message.
	Body *PutResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

New NeoFS Container creation response

func (*PutResponse) Descriptor deprecated

func (*PutResponse) Descriptor() ([]byte, []int)

Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.

func (*PutResponse) GetBody

func (x *PutResponse) GetBody() *PutResponse_Body

func (*PutResponse) GetMetaHeader

func (x *PutResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*PutResponse) GetVerifyHeader

func (x *PutResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader

func (*PutResponse) ProtoMessage

func (*PutResponse) ProtoMessage()

func (*PutResponse) ProtoReflect

func (x *PutResponse) ProtoReflect() protoreflect.Message

func (*PutResponse) Reset

func (x *PutResponse) Reset()

func (*PutResponse) SetBody

func (m *PutResponse) SetBody(v *PutResponse_Body)

SetBody sets body of the response.

func (*PutResponse) SetMetaHeader

func (m *PutResponse) SetMetaHeader(v *session.ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*PutResponse) SetVerifyHeader

func (m *PutResponse) SetVerifyHeader(v *session.ResponseVerificationHeader)

SetVerifyHeader sets verification header of the response.

func (*PutResponse) String

func (x *PutResponse) String() string

type PutResponse_Body

type PutResponse_Body struct {

	// Unique identifier of the newly created container
	ContainerId *grpc1.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// contains filtered or unexported fields
}

Container put response body contains information about the newly registered container as seen by `Container` smart contract. `ContainerID` can be calculated beforehand from the container structure and compared to the one returned here to make sure everything has been done as expected.

func (*PutResponse_Body) Descriptor deprecated

func (*PutResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use PutResponse_Body.ProtoReflect.Descriptor instead.

func (*PutResponse_Body) GetContainerId

func (x *PutResponse_Body) GetContainerId() *grpc1.ContainerID

func (*PutResponse_Body) ProtoMessage

func (*PutResponse_Body) ProtoMessage()

func (*PutResponse_Body) ProtoReflect

func (x *PutResponse_Body) ProtoReflect() protoreflect.Message

func (*PutResponse_Body) Reset

func (x *PutResponse_Body) Reset()

func (*PutResponse_Body) SetContainerId

func (m *PutResponse_Body) SetContainerId(v *refs.ContainerID)

SetContainerId sets identifier of the container.

func (*PutResponse_Body) String

func (x *PutResponse_Body) String() string

type SetExtendedACLRequest

type SetExtendedACLRequest struct {

	// Body of set extended acl request message.
	Body *SetExtendedACLRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries request meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries request verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Set Extended ACL

func (*SetExtendedACLRequest) Descriptor deprecated

func (*SetExtendedACLRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetExtendedACLRequest.ProtoReflect.Descriptor instead.

func (*SetExtendedACLRequest) GetBody

func (*SetExtendedACLRequest) GetMetaHeader

func (x *SetExtendedACLRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*SetExtendedACLRequest) GetVerifyHeader

func (*SetExtendedACLRequest) ProtoMessage

func (*SetExtendedACLRequest) ProtoMessage()

func (*SetExtendedACLRequest) ProtoReflect

func (x *SetExtendedACLRequest) ProtoReflect() protoreflect.Message

func (*SetExtendedACLRequest) Reset

func (x *SetExtendedACLRequest) Reset()

func (*SetExtendedACLRequest) SetBody

SetBody sets body of the request.

func (*SetExtendedACLRequest) SetMetaHeader

func (m *SetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*SetExtendedACLRequest) SetVerifyHeader

SetVerifyHeader sets verification header of the request.

func (*SetExtendedACLRequest) String

func (x *SetExtendedACLRequest) String() string

type SetExtendedACLRequest_Body

type SetExtendedACLRequest_Body struct {

	// Extended ACL table to set for the container
	Eacl *grpc2.EACLTable `protobuf:"bytes,1,opt,name=eacl,proto3" json:"eacl,omitempty"`
	// Signature of stable-marshalled Extended ACL table according to RFC-6979.
	Signature *grpc1.SignatureRFC6979 `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Set Extended ACL request body does not have separate `ContainerID` reference. It will be taken from `EACLTable.container_id` field.

func (*SetExtendedACLRequest_Body) Descriptor deprecated

func (*SetExtendedACLRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use SetExtendedACLRequest_Body.ProtoReflect.Descriptor instead.

func (*SetExtendedACLRequest_Body) GetEacl

func (*SetExtendedACLRequest_Body) GetSignature

func (*SetExtendedACLRequest_Body) ProtoMessage

func (*SetExtendedACLRequest_Body) ProtoMessage()

func (*SetExtendedACLRequest_Body) ProtoReflect

func (*SetExtendedACLRequest_Body) Reset

func (x *SetExtendedACLRequest_Body) Reset()

func (*SetExtendedACLRequest_Body) SetEacl

func (m *SetExtendedACLRequest_Body) SetEacl(v *acl.EACLTable)

SetEacl sets eACL table structure.

func (*SetExtendedACLRequest_Body) SetSignature

func (m *SetExtendedACLRequest_Body) SetSignature(v *refs.SignatureRFC6979)

SetSignature sets signature of the eACL table structure.

func (*SetExtendedACLRequest_Body) String

func (x *SetExtendedACLRequest_Body) String() string

type SetExtendedACLResponse

type SetExtendedACLResponse struct {

	// Body of set extended acl response message.
	Body *SetExtendedACLResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Carries response meta information. Header data is used only to regulate
	// message transport and does not affect request execution.
	MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
	// Carries response verification information. This header is used to
	// authenticate the nodes of the message route and check the correctness of
	// transmission.
	VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
	// contains filtered or unexported fields
}

Set Extended ACL

func (*SetExtendedACLResponse) Descriptor deprecated

func (*SetExtendedACLResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetExtendedACLResponse.ProtoReflect.Descriptor instead.

func (*SetExtendedACLResponse) GetBody

func (*SetExtendedACLResponse) GetMetaHeader

func (x *SetExtendedACLResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*SetExtendedACLResponse) GetVerifyHeader

func (*SetExtendedACLResponse) ProtoMessage

func (*SetExtendedACLResponse) ProtoMessage()

func (*SetExtendedACLResponse) ProtoReflect

func (x *SetExtendedACLResponse) ProtoReflect() protoreflect.Message

func (*SetExtendedACLResponse) Reset

func (x *SetExtendedACLResponse) Reset()

func (*SetExtendedACLResponse) SetBody

SetBody sets body of the response.

func (*SetExtendedACLResponse) SetMetaHeader

func (m *SetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*SetExtendedACLResponse) SetVerifyHeader

SetVerifyHeader sets verification header of the response.

func (*SetExtendedACLResponse) String

func (x *SetExtendedACLResponse) String() string

type SetExtendedACLResponse_Body

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

`SetExtendedACLResponse` has an empty body because the operation is asynchronous and the update should be reflected in `Container` smart contract's storage after next block is issued in sidechain.

func (*SetExtendedACLResponse_Body) Descriptor deprecated

func (*SetExtendedACLResponse_Body) Descriptor() ([]byte, []int)

Deprecated: Use SetExtendedACLResponse_Body.ProtoReflect.Descriptor instead.

func (*SetExtendedACLResponse_Body) ProtoMessage

func (*SetExtendedACLResponse_Body) ProtoMessage()

func (*SetExtendedACLResponse_Body) ProtoReflect

func (*SetExtendedACLResponse_Body) Reset

func (x *SetExtendedACLResponse_Body) Reset()

func (*SetExtendedACLResponse_Body) String

func (x *SetExtendedACLResponse_Body) String() string

type UnimplementedContainerServiceServer

type UnimplementedContainerServiceServer struct {
}

UnimplementedContainerServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedContainerServiceServer) AnnounceUsedSpace

func (UnimplementedContainerServiceServer) Delete

func (UnimplementedContainerServiceServer) Get

func (UnimplementedContainerServiceServer) GetExtendedACL

func (UnimplementedContainerServiceServer) List

func (UnimplementedContainerServiceServer) Put

func (UnimplementedContainerServiceServer) SetExtendedACL

type UnsafeContainerServiceServer

type UnsafeContainerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeContainerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContainerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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