Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterContainerServiceServer(s grpc.ServiceRegistrar, srv ContainerServiceServer)
- type Container
- func (x *Container) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Container) GetAttributes() []Container_Attribute
- func (x *Container) GetBasicAcl() uint32
- func (x *Container) GetNonce() []byte
- func (x *Container) GetOwnerId() *grpc.OwnerID
- func (x *Container) GetPlacementPolicy() *grpc1.PlacementPolicy
- func (x *Container) GetVersion() *grpc.Version
- func (x *Container) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Container) MarshalJSON() ([]byte, error)
- func (x *Container) MarshalProtobuf(dst []byte) []byte
- func (x *Container) SetAttributes(v []Container_Attribute)
- func (x *Container) SetBasicAcl(v uint32)
- func (x *Container) SetNonce(v []byte)
- func (x *Container) SetOwnerId(v *grpc.OwnerID)
- func (x *Container) SetPlacementPolicy(v *grpc1.PlacementPolicy)
- func (x *Container) SetVersion(v *grpc.Version)
- func (x *Container) StableSize() (size int)
- func (x *Container) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Container) UnmarshalJSON(data []byte) error
- func (x *Container) UnmarshalProtobuf(src []byte) (err error)
- type ContainerServiceClient
- type ContainerServiceServer
- type Container_Attribute
- func (x *Container_Attribute) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Container_Attribute) GetKey() string
- func (x *Container_Attribute) GetValue() string
- func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Container_Attribute) MarshalJSON() ([]byte, error)
- func (x *Container_Attribute) MarshalProtobuf(dst []byte) []byte
- func (x *Container_Attribute) SetKey(v string)
- func (x *Container_Attribute) SetValue(v string)
- func (x *Container_Attribute) StableSize() (size int)
- func (x *Container_Attribute) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Container_Attribute) UnmarshalJSON(data []byte) error
- func (x *Container_Attribute) UnmarshalProtobuf(src []byte) (err error)
- type DeleteRequest
- func (x *DeleteRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *DeleteRequest) GetBody() *DeleteRequest_Body
- func (x *DeleteRequest) GetMetaHeader() *grpc1.RequestMetaHeader
- func (x *DeleteRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
- func (x *DeleteRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *DeleteRequest) MarshalJSON() ([]byte, error)
- func (x *DeleteRequest) MarshalProtobuf(dst []byte) []byte
- func (x *DeleteRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *DeleteRequest) SetBody(v *DeleteRequest_Body)
- func (x *DeleteRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
- func (x *DeleteRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
- func (x *DeleteRequest) SignedDataSize() int
- func (x *DeleteRequest) StableSize() (size int)
- func (x *DeleteRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *DeleteRequest) UnmarshalJSON(data []byte) error
- func (x *DeleteRequest) UnmarshalProtobuf(src []byte) (err error)
- type DeleteRequest_Body
- func (x *DeleteRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *DeleteRequest_Body) GetContainerId() *grpc.ContainerID
- func (x *DeleteRequest_Body) GetSignature() *grpc.SignatureRFC6979
- func (x *DeleteRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *DeleteRequest_Body) MarshalJSON() ([]byte, error)
- func (x *DeleteRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *DeleteRequest_Body) SetContainerId(v *grpc.ContainerID)
- func (x *DeleteRequest_Body) SetSignature(v *grpc.SignatureRFC6979)
- func (x *DeleteRequest_Body) StableSize() (size int)
- func (x *DeleteRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *DeleteRequest_Body) UnmarshalJSON(data []byte) error
- func (x *DeleteRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type DeleteResponse
- func (x *DeleteResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *DeleteResponse) GetBody() *DeleteResponse_Body
- func (x *DeleteResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
- func (x *DeleteResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
- func (x *DeleteResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *DeleteResponse) MarshalJSON() ([]byte, error)
- func (x *DeleteResponse) MarshalProtobuf(dst []byte) []byte
- func (x *DeleteResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *DeleteResponse) SetBody(v *DeleteResponse_Body)
- func (x *DeleteResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
- func (x *DeleteResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
- func (x *DeleteResponse) SignedDataSize() int
- func (x *DeleteResponse) StableSize() (size int)
- func (x *DeleteResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *DeleteResponse) UnmarshalJSON(data []byte) error
- func (x *DeleteResponse) UnmarshalProtobuf(src []byte) (err error)
- type DeleteResponse_Body
- func (x *DeleteResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *DeleteResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *DeleteResponse_Body) MarshalJSON() ([]byte, error)
- func (x *DeleteResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *DeleteResponse_Body) StableSize() (size int)
- func (x *DeleteResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *DeleteResponse_Body) UnmarshalJSON(data []byte) error
- func (x *DeleteResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type GetRequest
- func (x *GetRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *GetRequest) GetBody() *GetRequest_Body
- func (x *GetRequest) GetMetaHeader() *grpc1.RequestMetaHeader
- func (x *GetRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
- func (x *GetRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *GetRequest) MarshalJSON() ([]byte, error)
- func (x *GetRequest) MarshalProtobuf(dst []byte) []byte
- func (x *GetRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *GetRequest) SetBody(v *GetRequest_Body)
- func (x *GetRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
- func (x *GetRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
- func (x *GetRequest) SignedDataSize() int
- func (x *GetRequest) StableSize() (size int)
- func (x *GetRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *GetRequest) UnmarshalJSON(data []byte) error
- func (x *GetRequest) UnmarshalProtobuf(src []byte) (err error)
- type GetRequest_Body
- func (x *GetRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *GetRequest_Body) GetContainerId() *grpc.ContainerID
- func (x *GetRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *GetRequest_Body) MarshalJSON() ([]byte, error)
- func (x *GetRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *GetRequest_Body) SetContainerId(v *grpc.ContainerID)
- func (x *GetRequest_Body) StableSize() (size int)
- func (x *GetRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *GetRequest_Body) UnmarshalJSON(data []byte) error
- func (x *GetRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type GetResponse
- func (x *GetResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *GetResponse) GetBody() *GetResponse_Body
- func (x *GetResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
- func (x *GetResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
- func (x *GetResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *GetResponse) MarshalJSON() ([]byte, error)
- func (x *GetResponse) MarshalProtobuf(dst []byte) []byte
- func (x *GetResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *GetResponse) SetBody(v *GetResponse_Body)
- func (x *GetResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
- func (x *GetResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
- func (x *GetResponse) SignedDataSize() int
- func (x *GetResponse) StableSize() (size int)
- func (x *GetResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *GetResponse) UnmarshalJSON(data []byte) error
- func (x *GetResponse) UnmarshalProtobuf(src []byte) (err error)
- type GetResponse_Body
- func (x *GetResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *GetResponse_Body) GetContainer() *Container
- func (x *GetResponse_Body) GetSessionToken() *grpc1.SessionToken
- func (x *GetResponse_Body) GetSignature() *grpc.SignatureRFC6979
- func (x *GetResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *GetResponse_Body) MarshalJSON() ([]byte, error)
- func (x *GetResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *GetResponse_Body) SetContainer(v *Container)
- func (x *GetResponse_Body) SetSessionToken(v *grpc1.SessionToken)
- func (x *GetResponse_Body) SetSignature(v *grpc.SignatureRFC6979)
- func (x *GetResponse_Body) StableSize() (size int)
- func (x *GetResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *GetResponse_Body) UnmarshalJSON(data []byte) error
- func (x *GetResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type ListRequest
- func (x *ListRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ListRequest) GetBody() *ListRequest_Body
- func (x *ListRequest) GetMetaHeader() *grpc1.RequestMetaHeader
- func (x *ListRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
- func (x *ListRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ListRequest) MarshalJSON() ([]byte, error)
- func (x *ListRequest) MarshalProtobuf(dst []byte) []byte
- func (x *ListRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *ListRequest) SetBody(v *ListRequest_Body)
- func (x *ListRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
- func (x *ListRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
- func (x *ListRequest) SignedDataSize() int
- func (x *ListRequest) StableSize() (size int)
- func (x *ListRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ListRequest) UnmarshalJSON(data []byte) error
- func (x *ListRequest) UnmarshalProtobuf(src []byte) (err error)
- type ListRequest_Body
- func (x *ListRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ListRequest_Body) GetOwnerId() *grpc.OwnerID
- func (x *ListRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ListRequest_Body) MarshalJSON() ([]byte, error)
- func (x *ListRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *ListRequest_Body) SetOwnerId(v *grpc.OwnerID)
- func (x *ListRequest_Body) StableSize() (size int)
- func (x *ListRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ListRequest_Body) UnmarshalJSON(data []byte) error
- func (x *ListRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type ListResponse
- func (x *ListResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ListResponse) GetBody() *ListResponse_Body
- func (x *ListResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
- func (x *ListResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
- func (x *ListResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ListResponse) MarshalJSON() ([]byte, error)
- func (x *ListResponse) MarshalProtobuf(dst []byte) []byte
- func (x *ListResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *ListResponse) SetBody(v *ListResponse_Body)
- func (x *ListResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
- func (x *ListResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
- func (x *ListResponse) SignedDataSize() int
- func (x *ListResponse) StableSize() (size int)
- func (x *ListResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ListResponse) UnmarshalJSON(data []byte) error
- func (x *ListResponse) UnmarshalProtobuf(src []byte) (err error)
- type ListResponse_Body
- func (x *ListResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ListResponse_Body) GetContainerIds() []grpc.ContainerID
- func (x *ListResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ListResponse_Body) MarshalJSON() ([]byte, error)
- func (x *ListResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *ListResponse_Body) SetContainerIds(v []grpc.ContainerID)
- func (x *ListResponse_Body) StableSize() (size int)
- func (x *ListResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ListResponse_Body) UnmarshalJSON(data []byte) error
- func (x *ListResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type PutRequest
- func (x *PutRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *PutRequest) GetBody() *PutRequest_Body
- func (x *PutRequest) GetMetaHeader() *grpc1.RequestMetaHeader
- func (x *PutRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
- func (x *PutRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *PutRequest) MarshalJSON() ([]byte, error)
- func (x *PutRequest) MarshalProtobuf(dst []byte) []byte
- func (x *PutRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *PutRequest) SetBody(v *PutRequest_Body)
- func (x *PutRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
- func (x *PutRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
- func (x *PutRequest) SignedDataSize() int
- func (x *PutRequest) StableSize() (size int)
- func (x *PutRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *PutRequest) UnmarshalJSON(data []byte) error
- func (x *PutRequest) UnmarshalProtobuf(src []byte) (err error)
- type PutRequest_Body
- func (x *PutRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *PutRequest_Body) GetContainer() *Container
- func (x *PutRequest_Body) GetSignature() *grpc.SignatureRFC6979
- func (x *PutRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *PutRequest_Body) MarshalJSON() ([]byte, error)
- func (x *PutRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *PutRequest_Body) SetContainer(v *Container)
- func (x *PutRequest_Body) SetSignature(v *grpc.SignatureRFC6979)
- func (x *PutRequest_Body) StableSize() (size int)
- func (x *PutRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *PutRequest_Body) UnmarshalJSON(data []byte) error
- func (x *PutRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type PutResponse
- func (x *PutResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *PutResponse) GetBody() *PutResponse_Body
- func (x *PutResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
- func (x *PutResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
- func (x *PutResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *PutResponse) MarshalJSON() ([]byte, error)
- func (x *PutResponse) MarshalProtobuf(dst []byte) []byte
- func (x *PutResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *PutResponse) SetBody(v *PutResponse_Body)
- func (x *PutResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
- func (x *PutResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
- func (x *PutResponse) SignedDataSize() int
- func (x *PutResponse) StableSize() (size int)
- func (x *PutResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *PutResponse) UnmarshalJSON(data []byte) error
- func (x *PutResponse) UnmarshalProtobuf(src []byte) (err error)
- type PutResponse_Body
- func (x *PutResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *PutResponse_Body) GetContainerId() *grpc.ContainerID
- func (x *PutResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *PutResponse_Body) MarshalJSON() ([]byte, error)
- func (x *PutResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *PutResponse_Body) SetContainerId(v *grpc.ContainerID)
- func (x *PutResponse_Body) StableSize() (size int)
- func (x *PutResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *PutResponse_Body) UnmarshalJSON(data []byte) error
- func (x *PutResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type UnimplementedContainerServiceServer
- func (UnimplementedContainerServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedContainerServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedContainerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedContainerServiceServer) Put(context.Context, *PutRequest) (*PutResponse, error)
- type UnsafeContainerServiceServer
Constants ¶
const ( ContainerService_Put_FullMethodName = "/neo.fs.v2.container.ContainerService/Put" ContainerService_Delete_FullMethodName = "/neo.fs.v2.container.ContainerService/Delete" ContainerService_Get_FullMethodName = "/neo.fs.v2.container.ContainerService/Get" ContainerService_List_FullMethodName = "/neo.fs.v2.container.ContainerService/List" )
Variables ¶
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, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/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)
Functions ¶
func RegisterContainerServiceServer ¶
func RegisterContainerServiceServer(s grpc.ServiceRegistrar, srv ContainerServiceServer)
Types ¶
type Container ¶
type Container struct { Version *grpc.Version `json:"version"` OwnerId *grpc.OwnerID `json:"ownerID"` Nonce []byte `json:"nonce"` BasicAcl uint32 `json:"basicACL"` Attributes []Container_Attribute `json:"attributes"` PlacementPolicy *grpc1.PlacementPolicy `json:"placementPolicy"` }
func (*Container) EmitProtobuf ¶
func (x *Container) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Container) GetAttributes ¶
func (x *Container) GetAttributes() []Container_Attribute
func (*Container) GetBasicAcl ¶
func (*Container) GetOwnerId ¶
func (*Container) GetPlacementPolicy ¶
func (x *Container) GetPlacementPolicy() *grpc1.PlacementPolicy
func (*Container) GetVersion ¶
func (*Container) MarshalEasyJSON ¶
func (*Container) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Container) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Container) SetAttributes ¶
func (x *Container) SetAttributes(v []Container_Attribute)
func (*Container) SetBasicAcl ¶
func (*Container) SetOwnerId ¶
func (*Container) SetPlacementPolicy ¶
func (x *Container) SetPlacementPolicy(v *grpc1.PlacementPolicy)
func (*Container) SetVersion ¶
func (*Container) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Container) UnmarshalEasyJSON ¶
func (*Container) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Container) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
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); // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // container create access denied. 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); // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // container delete access denied. 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; // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // access to container is denied. 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); // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // container list access denied. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, 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.
func NewContainerServiceClient ¶
func NewContainerServiceClient(cc grpc.ClientConnInterface) ContainerServiceClient
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); // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // container create access denied. 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); // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // container delete access denied. 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; // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // access to container is denied. 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); // - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ // container list access denied. List(context.Context, *ListRequest) (*ListResponse, error) }
ContainerServiceServer is the server API for ContainerService service. All implementations should embed UnimplementedContainerServiceServer for forward compatibility
type Container_Attribute ¶
func (*Container_Attribute) EmitProtobuf ¶
func (x *Container_Attribute) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Container_Attribute) GetKey ¶
func (x *Container_Attribute) GetKey() string
func (*Container_Attribute) GetValue ¶
func (x *Container_Attribute) GetValue() string
func (*Container_Attribute) MarshalEasyJSON ¶
func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer)
func (*Container_Attribute) MarshalJSON ¶
func (x *Container_Attribute) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*Container_Attribute) MarshalProtobuf ¶
func (x *Container_Attribute) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Container_Attribute) SetKey ¶
func (x *Container_Attribute) SetKey(v string)
func (*Container_Attribute) SetValue ¶
func (x *Container_Attribute) SetValue(v string)
func (*Container_Attribute) StableSize ¶
func (x *Container_Attribute) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Container_Attribute) UnmarshalEasyJSON ¶
func (x *Container_Attribute) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*Container_Attribute) UnmarshalJSON ¶
func (x *Container_Attribute) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Container_Attribute) UnmarshalProtobuf ¶
func (x *Container_Attribute) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type DeleteRequest ¶
type DeleteRequest struct { Body *DeleteRequest_Body `json:"body"` MetaHeader *grpc1.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.RequestVerificationHeader `json:"verifyHeader"` }
func (*DeleteRequest) EmitProtobuf ¶
func (x *DeleteRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*DeleteRequest) GetBody ¶
func (x *DeleteRequest) GetBody() *DeleteRequest_Body
func (*DeleteRequest) GetMetaHeader ¶
func (x *DeleteRequest) GetMetaHeader() *grpc1.RequestMetaHeader
func (*DeleteRequest) GetVerifyHeader ¶
func (x *DeleteRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
func (*DeleteRequest) MarshalEasyJSON ¶
func (x *DeleteRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*DeleteRequest) MarshalJSON ¶
func (x *DeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*DeleteRequest) MarshalProtobuf ¶
func (x *DeleteRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*DeleteRequest) ReadSignedData ¶
func (x *DeleteRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*DeleteRequest) SetBody ¶
func (x *DeleteRequest) SetBody(v *DeleteRequest_Body)
func (*DeleteRequest) SetMetaHeader ¶
func (x *DeleteRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
func (*DeleteRequest) SetVerifyHeader ¶
func (x *DeleteRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
func (*DeleteRequest) SignedDataSize ¶
func (x *DeleteRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*DeleteRequest) StableSize ¶
func (x *DeleteRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*DeleteRequest) UnmarshalEasyJSON ¶
func (x *DeleteRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*DeleteRequest) UnmarshalJSON ¶
func (x *DeleteRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*DeleteRequest) UnmarshalProtobuf ¶
func (x *DeleteRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type DeleteRequest_Body ¶
type DeleteRequest_Body struct { ContainerId *grpc.ContainerID `json:"containerId"` Signature *grpc.SignatureRFC6979 `json:"signature"` }
func (*DeleteRequest_Body) EmitProtobuf ¶
func (x *DeleteRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*DeleteRequest_Body) GetContainerId ¶
func (x *DeleteRequest_Body) GetContainerId() *grpc.ContainerID
func (*DeleteRequest_Body) GetSignature ¶
func (x *DeleteRequest_Body) GetSignature() *grpc.SignatureRFC6979
func (*DeleteRequest_Body) MarshalEasyJSON ¶
func (x *DeleteRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*DeleteRequest_Body) MarshalJSON ¶
func (x *DeleteRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*DeleteRequest_Body) MarshalProtobuf ¶
func (x *DeleteRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*DeleteRequest_Body) SetContainerId ¶
func (x *DeleteRequest_Body) SetContainerId(v *grpc.ContainerID)
func (*DeleteRequest_Body) SetSignature ¶
func (x *DeleteRequest_Body) SetSignature(v *grpc.SignatureRFC6979)
func (*DeleteRequest_Body) StableSize ¶
func (x *DeleteRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*DeleteRequest_Body) UnmarshalEasyJSON ¶
func (x *DeleteRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*DeleteRequest_Body) UnmarshalJSON ¶
func (x *DeleteRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*DeleteRequest_Body) UnmarshalProtobuf ¶
func (x *DeleteRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type DeleteResponse ¶
type DeleteResponse struct { Body *DeleteResponse_Body `json:"body"` MetaHeader *grpc1.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.ResponseVerificationHeader `json:"verifyHeader"` }
func (*DeleteResponse) EmitProtobuf ¶
func (x *DeleteResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*DeleteResponse) GetBody ¶
func (x *DeleteResponse) GetBody() *DeleteResponse_Body
func (*DeleteResponse) GetMetaHeader ¶
func (x *DeleteResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
func (*DeleteResponse) GetVerifyHeader ¶
func (x *DeleteResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
func (*DeleteResponse) MarshalEasyJSON ¶
func (x *DeleteResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*DeleteResponse) MarshalJSON ¶
func (x *DeleteResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*DeleteResponse) MarshalProtobuf ¶
func (x *DeleteResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*DeleteResponse) ReadSignedData ¶
func (x *DeleteResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*DeleteResponse) SetBody ¶
func (x *DeleteResponse) SetBody(v *DeleteResponse_Body)
func (*DeleteResponse) SetMetaHeader ¶
func (x *DeleteResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
func (*DeleteResponse) SetVerifyHeader ¶
func (x *DeleteResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
func (*DeleteResponse) SignedDataSize ¶
func (x *DeleteResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*DeleteResponse) StableSize ¶
func (x *DeleteResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*DeleteResponse) UnmarshalEasyJSON ¶
func (x *DeleteResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*DeleteResponse) UnmarshalJSON ¶
func (x *DeleteResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*DeleteResponse) UnmarshalProtobuf ¶
func (x *DeleteResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type DeleteResponse_Body ¶
type DeleteResponse_Body struct { }
func (*DeleteResponse_Body) EmitProtobuf ¶
func (x *DeleteResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*DeleteResponse_Body) MarshalEasyJSON ¶
func (x *DeleteResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*DeleteResponse_Body) MarshalJSON ¶
func (x *DeleteResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*DeleteResponse_Body) MarshalProtobuf ¶
func (x *DeleteResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*DeleteResponse_Body) StableSize ¶
func (x *DeleteResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*DeleteResponse_Body) UnmarshalEasyJSON ¶
func (x *DeleteResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*DeleteResponse_Body) UnmarshalJSON ¶
func (x *DeleteResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*DeleteResponse_Body) UnmarshalProtobuf ¶
func (x *DeleteResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type GetRequest ¶
type GetRequest struct { Body *GetRequest_Body `json:"body"` MetaHeader *grpc1.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.RequestVerificationHeader `json:"verifyHeader"` }
func (*GetRequest) EmitProtobuf ¶
func (x *GetRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*GetRequest) GetBody ¶
func (x *GetRequest) GetBody() *GetRequest_Body
func (*GetRequest) GetMetaHeader ¶
func (x *GetRequest) GetMetaHeader() *grpc1.RequestMetaHeader
func (*GetRequest) GetVerifyHeader ¶
func (x *GetRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
func (*GetRequest) MarshalEasyJSON ¶
func (x *GetRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*GetRequest) MarshalJSON ¶
func (x *GetRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*GetRequest) MarshalProtobuf ¶
func (x *GetRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*GetRequest) ReadSignedData ¶
func (x *GetRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*GetRequest) SetBody ¶
func (x *GetRequest) SetBody(v *GetRequest_Body)
func (*GetRequest) SetMetaHeader ¶
func (x *GetRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
func (*GetRequest) SetVerifyHeader ¶
func (x *GetRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
func (*GetRequest) SignedDataSize ¶
func (x *GetRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*GetRequest) StableSize ¶
func (x *GetRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*GetRequest) UnmarshalEasyJSON ¶
func (x *GetRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*GetRequest) UnmarshalJSON ¶
func (x *GetRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*GetRequest) UnmarshalProtobuf ¶
func (x *GetRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type GetRequest_Body ¶
type GetRequest_Body struct {
ContainerId *grpc.ContainerID `json:"containerId"`
}
func (*GetRequest_Body) EmitProtobuf ¶
func (x *GetRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*GetRequest_Body) GetContainerId ¶
func (x *GetRequest_Body) GetContainerId() *grpc.ContainerID
func (*GetRequest_Body) MarshalEasyJSON ¶
func (x *GetRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*GetRequest_Body) MarshalJSON ¶
func (x *GetRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*GetRequest_Body) MarshalProtobuf ¶
func (x *GetRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*GetRequest_Body) SetContainerId ¶
func (x *GetRequest_Body) SetContainerId(v *grpc.ContainerID)
func (*GetRequest_Body) StableSize ¶
func (x *GetRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*GetRequest_Body) UnmarshalEasyJSON ¶
func (x *GetRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*GetRequest_Body) UnmarshalJSON ¶
func (x *GetRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*GetRequest_Body) UnmarshalProtobuf ¶
func (x *GetRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type GetResponse ¶
type GetResponse struct { Body *GetResponse_Body `json:"body"` MetaHeader *grpc1.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.ResponseVerificationHeader `json:"verifyHeader"` }
func (*GetResponse) EmitProtobuf ¶
func (x *GetResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*GetResponse) GetBody ¶
func (x *GetResponse) GetBody() *GetResponse_Body
func (*GetResponse) GetMetaHeader ¶
func (x *GetResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
func (*GetResponse) GetVerifyHeader ¶
func (x *GetResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
func (*GetResponse) MarshalEasyJSON ¶
func (x *GetResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*GetResponse) MarshalJSON ¶
func (x *GetResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*GetResponse) MarshalProtobuf ¶
func (x *GetResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*GetResponse) ReadSignedData ¶
func (x *GetResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*GetResponse) SetBody ¶
func (x *GetResponse) SetBody(v *GetResponse_Body)
func (*GetResponse) SetMetaHeader ¶
func (x *GetResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
func (*GetResponse) SetVerifyHeader ¶
func (x *GetResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
func (*GetResponse) SignedDataSize ¶
func (x *GetResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*GetResponse) StableSize ¶
func (x *GetResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*GetResponse) UnmarshalEasyJSON ¶
func (x *GetResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*GetResponse) UnmarshalJSON ¶
func (x *GetResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*GetResponse) UnmarshalProtobuf ¶
func (x *GetResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type GetResponse_Body ¶
type GetResponse_Body struct { Container *Container `json:"container"` Signature *grpc.SignatureRFC6979 `json:"signature"` SessionToken *grpc1.SessionToken `json:"sessionToken"` }
func (*GetResponse_Body) EmitProtobuf ¶
func (x *GetResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*GetResponse_Body) GetContainer ¶
func (x *GetResponse_Body) GetContainer() *Container
func (*GetResponse_Body) GetSessionToken ¶
func (x *GetResponse_Body) GetSessionToken() *grpc1.SessionToken
func (*GetResponse_Body) GetSignature ¶
func (x *GetResponse_Body) GetSignature() *grpc.SignatureRFC6979
func (*GetResponse_Body) MarshalEasyJSON ¶
func (x *GetResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*GetResponse_Body) MarshalJSON ¶
func (x *GetResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*GetResponse_Body) MarshalProtobuf ¶
func (x *GetResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*GetResponse_Body) SetContainer ¶
func (x *GetResponse_Body) SetContainer(v *Container)
func (*GetResponse_Body) SetSessionToken ¶
func (x *GetResponse_Body) SetSessionToken(v *grpc1.SessionToken)
func (*GetResponse_Body) SetSignature ¶
func (x *GetResponse_Body) SetSignature(v *grpc.SignatureRFC6979)
func (*GetResponse_Body) StableSize ¶
func (x *GetResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*GetResponse_Body) UnmarshalEasyJSON ¶
func (x *GetResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*GetResponse_Body) UnmarshalJSON ¶
func (x *GetResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*GetResponse_Body) UnmarshalProtobuf ¶
func (x *GetResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ListRequest ¶
type ListRequest struct { Body *ListRequest_Body `json:"body"` MetaHeader *grpc1.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.RequestVerificationHeader `json:"verifyHeader"` }
func (*ListRequest) EmitProtobuf ¶
func (x *ListRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ListRequest) GetBody ¶
func (x *ListRequest) GetBody() *ListRequest_Body
func (*ListRequest) GetMetaHeader ¶
func (x *ListRequest) GetMetaHeader() *grpc1.RequestMetaHeader
func (*ListRequest) GetVerifyHeader ¶
func (x *ListRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
func (*ListRequest) MarshalEasyJSON ¶
func (x *ListRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*ListRequest) MarshalJSON ¶
func (x *ListRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ListRequest) MarshalProtobuf ¶
func (x *ListRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ListRequest) ReadSignedData ¶
func (x *ListRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*ListRequest) SetBody ¶
func (x *ListRequest) SetBody(v *ListRequest_Body)
func (*ListRequest) SetMetaHeader ¶
func (x *ListRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
func (*ListRequest) SetVerifyHeader ¶
func (x *ListRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
func (*ListRequest) SignedDataSize ¶
func (x *ListRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*ListRequest) StableSize ¶
func (x *ListRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ListRequest) UnmarshalEasyJSON ¶
func (x *ListRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ListRequest) UnmarshalJSON ¶
func (x *ListRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ListRequest) UnmarshalProtobuf ¶
func (x *ListRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ListRequest_Body ¶
func (*ListRequest_Body) EmitProtobuf ¶
func (x *ListRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ListRequest_Body) GetOwnerId ¶
func (x *ListRequest_Body) GetOwnerId() *grpc.OwnerID
func (*ListRequest_Body) MarshalEasyJSON ¶
func (x *ListRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*ListRequest_Body) MarshalJSON ¶
func (x *ListRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ListRequest_Body) MarshalProtobuf ¶
func (x *ListRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ListRequest_Body) SetOwnerId ¶
func (x *ListRequest_Body) SetOwnerId(v *grpc.OwnerID)
func (*ListRequest_Body) StableSize ¶
func (x *ListRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ListRequest_Body) UnmarshalEasyJSON ¶
func (x *ListRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ListRequest_Body) UnmarshalJSON ¶
func (x *ListRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ListRequest_Body) UnmarshalProtobuf ¶
func (x *ListRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ListResponse ¶
type ListResponse struct { Body *ListResponse_Body `json:"body"` MetaHeader *grpc1.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.ResponseVerificationHeader `json:"verifyHeader"` }
func (*ListResponse) EmitProtobuf ¶
func (x *ListResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ListResponse) GetBody ¶
func (x *ListResponse) GetBody() *ListResponse_Body
func (*ListResponse) GetMetaHeader ¶
func (x *ListResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
func (*ListResponse) GetVerifyHeader ¶
func (x *ListResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
func (*ListResponse) MarshalEasyJSON ¶
func (x *ListResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*ListResponse) MarshalJSON ¶
func (x *ListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ListResponse) MarshalProtobuf ¶
func (x *ListResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ListResponse) ReadSignedData ¶
func (x *ListResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*ListResponse) SetBody ¶
func (x *ListResponse) SetBody(v *ListResponse_Body)
func (*ListResponse) SetMetaHeader ¶
func (x *ListResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
func (*ListResponse) SetVerifyHeader ¶
func (x *ListResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
func (*ListResponse) SignedDataSize ¶
func (x *ListResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*ListResponse) StableSize ¶
func (x *ListResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ListResponse) UnmarshalEasyJSON ¶
func (x *ListResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ListResponse) UnmarshalJSON ¶
func (x *ListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ListResponse) UnmarshalProtobuf ¶
func (x *ListResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ListResponse_Body ¶
type ListResponse_Body struct {
ContainerIds []grpc.ContainerID `json:"containerIds"`
}
func (*ListResponse_Body) EmitProtobuf ¶
func (x *ListResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ListResponse_Body) GetContainerIds ¶
func (x *ListResponse_Body) GetContainerIds() []grpc.ContainerID
func (*ListResponse_Body) MarshalEasyJSON ¶
func (x *ListResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*ListResponse_Body) MarshalJSON ¶
func (x *ListResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ListResponse_Body) MarshalProtobuf ¶
func (x *ListResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ListResponse_Body) SetContainerIds ¶
func (x *ListResponse_Body) SetContainerIds(v []grpc.ContainerID)
func (*ListResponse_Body) StableSize ¶
func (x *ListResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ListResponse_Body) UnmarshalEasyJSON ¶
func (x *ListResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ListResponse_Body) UnmarshalJSON ¶
func (x *ListResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ListResponse_Body) UnmarshalProtobuf ¶
func (x *ListResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type PutRequest ¶
type PutRequest struct { Body *PutRequest_Body `json:"body"` MetaHeader *grpc1.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.RequestVerificationHeader `json:"verifyHeader"` }
func (*PutRequest) EmitProtobuf ¶
func (x *PutRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*PutRequest) GetBody ¶
func (x *PutRequest) GetBody() *PutRequest_Body
func (*PutRequest) GetMetaHeader ¶
func (x *PutRequest) GetMetaHeader() *grpc1.RequestMetaHeader
func (*PutRequest) GetVerifyHeader ¶
func (x *PutRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
func (*PutRequest) MarshalEasyJSON ¶
func (x *PutRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*PutRequest) MarshalJSON ¶
func (x *PutRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*PutRequest) MarshalProtobuf ¶
func (x *PutRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*PutRequest) ReadSignedData ¶
func (x *PutRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*PutRequest) SetBody ¶
func (x *PutRequest) SetBody(v *PutRequest_Body)
func (*PutRequest) SetMetaHeader ¶
func (x *PutRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
func (*PutRequest) SetVerifyHeader ¶
func (x *PutRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
func (*PutRequest) SignedDataSize ¶
func (x *PutRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*PutRequest) StableSize ¶
func (x *PutRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*PutRequest) UnmarshalEasyJSON ¶
func (x *PutRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*PutRequest) UnmarshalJSON ¶
func (x *PutRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*PutRequest) UnmarshalProtobuf ¶
func (x *PutRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type PutRequest_Body ¶
type PutRequest_Body struct { Container *Container `json:"container"` Signature *grpc.SignatureRFC6979 `json:"signature"` }
func (*PutRequest_Body) EmitProtobuf ¶
func (x *PutRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*PutRequest_Body) GetContainer ¶
func (x *PutRequest_Body) GetContainer() *Container
func (*PutRequest_Body) GetSignature ¶
func (x *PutRequest_Body) GetSignature() *grpc.SignatureRFC6979
func (*PutRequest_Body) MarshalEasyJSON ¶
func (x *PutRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*PutRequest_Body) MarshalJSON ¶
func (x *PutRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*PutRequest_Body) MarshalProtobuf ¶
func (x *PutRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*PutRequest_Body) SetContainer ¶
func (x *PutRequest_Body) SetContainer(v *Container)
func (*PutRequest_Body) SetSignature ¶
func (x *PutRequest_Body) SetSignature(v *grpc.SignatureRFC6979)
func (*PutRequest_Body) StableSize ¶
func (x *PutRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*PutRequest_Body) UnmarshalEasyJSON ¶
func (x *PutRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*PutRequest_Body) UnmarshalJSON ¶
func (x *PutRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*PutRequest_Body) UnmarshalProtobuf ¶
func (x *PutRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type PutResponse ¶
type PutResponse struct { Body *PutResponse_Body `json:"body"` MetaHeader *grpc1.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc1.ResponseVerificationHeader `json:"verifyHeader"` }
func (*PutResponse) EmitProtobuf ¶
func (x *PutResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*PutResponse) GetBody ¶
func (x *PutResponse) GetBody() *PutResponse_Body
func (*PutResponse) GetMetaHeader ¶
func (x *PutResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
func (*PutResponse) GetVerifyHeader ¶
func (x *PutResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
func (*PutResponse) MarshalEasyJSON ¶
func (x *PutResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*PutResponse) MarshalJSON ¶
func (x *PutResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*PutResponse) MarshalProtobuf ¶
func (x *PutResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*PutResponse) ReadSignedData ¶
func (x *PutResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*PutResponse) SetBody ¶
func (x *PutResponse) SetBody(v *PutResponse_Body)
func (*PutResponse) SetMetaHeader ¶
func (x *PutResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
func (*PutResponse) SetVerifyHeader ¶
func (x *PutResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
func (*PutResponse) SignedDataSize ¶
func (x *PutResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*PutResponse) StableSize ¶
func (x *PutResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*PutResponse) UnmarshalEasyJSON ¶
func (x *PutResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*PutResponse) UnmarshalJSON ¶
func (x *PutResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*PutResponse) UnmarshalProtobuf ¶
func (x *PutResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type PutResponse_Body ¶
type PutResponse_Body struct {
ContainerId *grpc.ContainerID `json:"containerId"`
}
func (*PutResponse_Body) EmitProtobuf ¶
func (x *PutResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*PutResponse_Body) GetContainerId ¶
func (x *PutResponse_Body) GetContainerId() *grpc.ContainerID
func (*PutResponse_Body) MarshalEasyJSON ¶
func (x *PutResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*PutResponse_Body) MarshalJSON ¶
func (x *PutResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*PutResponse_Body) MarshalProtobuf ¶
func (x *PutResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*PutResponse_Body) SetContainerId ¶
func (x *PutResponse_Body) SetContainerId(v *grpc.ContainerID)
func (*PutResponse_Body) StableSize ¶
func (x *PutResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*PutResponse_Body) UnmarshalEasyJSON ¶
func (x *PutResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*PutResponse_Body) UnmarshalJSON ¶
func (x *PutResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*PutResponse_Body) UnmarshalProtobuf ¶
func (x *PutResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type UnimplementedContainerServiceServer ¶
type UnimplementedContainerServiceServer struct { }
UnimplementedContainerServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedContainerServiceServer) Delete ¶
func (UnimplementedContainerServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedContainerServiceServer) Get ¶
func (UnimplementedContainerServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedContainerServiceServer) List ¶
func (UnimplementedContainerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedContainerServiceServer) Put ¶
func (UnimplementedContainerServiceServer) Put(context.Context, *PutRequest) (*PutResponse, error)
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.