rpc

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnounceIntermediateResult added in v1.26.0

AnnounceIntermediateResult executes ReputationService.AnnounceIntermediateResult RPC.

func AnnounceLocalTrust added in v1.26.0

AnnounceLocalTrust executes ReputationService.AnnounceLocalTrust RPC.

func AnnounceUsedSpace

func AnnounceUsedSpace(
	cli *client.Client,
	req *container.AnnounceUsedSpaceRequest,
	opts ...client.CallOption,
) (*container.PutResponse, error)

AnnounceUsedSpace executes ContainerService.AnnounceUsedSpace RPC.

func Balance

Balance executes AccountingService.Balance RPC.

func CreateSession

func CreateSession(
	cli *client.Client,
	req *session.CreateRequest,
	opts ...client.CallOption,
) (*session.CreateResponse, error)

func DeleteContainer

func DeleteContainer(
	cli *client.Client,
	req *container.DeleteRequest,
	opts ...client.CallOption,
) (*container.PutResponse, error)

DeleteContainer executes ContainerService.Delete RPC.

func DeleteObject

func DeleteObject(
	cli *client.Client,
	req *object.DeleteRequest,
	opts ...client.CallOption,
) (*object.DeleteResponse, error)

DeleteObject executes ObjectService.Delete RPC.

func GetContainer

func GetContainer(
	cli *client.Client,
	req *container.GetRequest,
	opts ...client.CallOption,
) (*container.GetResponse, error)

GetContainer executes ContainerService.Get RPC.

func GetEACL

GetEACL executes ContainerService.GetExtendedACL RPC.

func HashObjectRange

func HashObjectRange(
	cli *client.Client,
	req *object.GetRangeHashRequest,
	opts ...client.CallOption,
) (*object.GetRangeHashResponse, error)

HashObjectRange executes ObjectService.GetRangeHash RPC.

func HeadObject

func HeadObject(
	cli *client.Client,
	req *object.HeadRequest,
	opts ...client.CallOption,
) (*object.HeadResponse, error)

HeadObject executes ObjectService.Head RPC.

func ListContainers

func ListContainers(
	cli *client.Client,
	req *container.ListRequest,
	opts ...client.CallOption,
) (*container.ListResponse, error)

ListContainers executes ContainerService.List RPC.

func LocalNodeInfo

LocalNodeInfo executes NetmapService.LocalNodeInfo RPC.

func NetworkInfo

func NetworkInfo(
	cli *client.Client,
	req *netmap.NetworkInfoRequest,
	opts ...client.CallOption,
) (*netmap.NetworkInfoResponse, error)

NetworkInfo executes NetmapService.NetworkInfo RPC.

func PutContainer

func PutContainer(
	cli *client.Client,
	req *container.PutRequest,
	opts ...client.CallOption,
) (*container.PutResponse, error)

PutContainer executes ContainerService.Put RPC.

func SetEACL

SetEACL executes ContainerService.SetExtendedACL RPC.

Types

type GetResponseReader

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

GetResponseReader is an object.GetResponse stream reader.

func GetObject

func GetObject(
	cli *client.Client,
	req *object.GetRequest,
	opts ...client.CallOption,
) (*GetResponseReader, error)

GetObject executes ObjectService.Get RPC.

func (*GetResponseReader) Read

func (r *GetResponseReader) Read(resp *object.GetResponse) error

Read reads response from the stream.

Returns io.EOF of streaming is finished.

type ObjectRangeResponseReader

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

GetResponseReader is an object.GetRangeResponse stream reader.

func GetObjectRange

func GetObjectRange(
	cli *client.Client,
	req *object.GetRangeRequest,
	opts ...client.CallOption,
) (*ObjectRangeResponseReader, error)

GetObjectRange executes ObjectService.GetRange RPC.

func (*ObjectRangeResponseReader) Read

Read reads response from the stream.

Returns io.EOF of streaming is finished.

type PutRequestWriter

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

PutRequestWriter is an object.PutRequest message streaming component.

func PutObject

func PutObject(
	cli *client.Client,
	resp *object.PutResponse,
	opts ...client.CallOption,
) (*PutRequestWriter, error)

PutObject executes ObjectService.Put RPC.

func (*PutRequestWriter) Close

func (w *PutRequestWriter) Close() error

Close closes the stream.

func (*PutRequestWriter) Write

func (w *PutRequestWriter) Write(req *object.PutRequest) error

Write writes req to the stream.

type SearchResponseReader

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

GetResponseReader is an object.SearchResponse stream reader.

func SearchObjects

func SearchObjects(
	cli *client.Client,
	req *object.SearchRequest,
	opts ...client.CallOption,
) (*SearchResponseReader, error)

SearchObjects executes ObjectService.Search RPC.

func (*SearchResponseReader) Read

Read reads response from the stream.

Returns io.EOF of streaming is finished.

Jump to

Keyboard shortcuts

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