Versions in this module Expand all Collapse all v2 v2.16.0 Sep 14, 2023 Changes in this version + const SessionService_Create_FullMethodName v2.15.0 Apr 11, 2023 Changes in this version + var ContainerSessionContext_Verb_name = map[int32]string + var ContainerSessionContext_Verb_value = map[string]int32 + var ErrNilSessionServiceClient = errors.New("session gRPC client is nil") + var File_session_grpc_service_proto protoreflect.FileDescriptor + var File_session_grpc_types_proto protoreflect.FileDescriptor + var ObjectSessionContext_Verb_name = map[int32]string + var ObjectSessionContext_Verb_value = map[string]int32 + var SessionService_ServiceDesc = grpc.ServiceDesc + func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer) + type Client struct + func NewClient(c SessionServiceClient, opts ...Option) (*Client, error) + func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) + type ContainerSessionContext struct + ContainerId *grpc.ContainerID + Verb ContainerSessionContext_Verb + Wildcard bool + func (*ContainerSessionContext) Descriptor() ([]byte, []int) + func (*ContainerSessionContext) ProtoMessage() + func (x *ContainerSessionContext) GetContainerId() *grpc.ContainerID + func (x *ContainerSessionContext) GetVerb() ContainerSessionContext_Verb + func (x *ContainerSessionContext) GetWildcard() bool + func (x *ContainerSessionContext) ProtoReflect() protoreflect.Message + func (x *ContainerSessionContext) Reset() + func (x *ContainerSessionContext) SetContainerId(v *refs.ContainerID) + func (x *ContainerSessionContext) SetVerb(v ContainerSessionContext_Verb) + func (x *ContainerSessionContext) SetWildcard(v bool) + func (x *ContainerSessionContext) String() string + type ContainerSessionContext_Verb int32 + const ContainerSessionContext_DELETE + const ContainerSessionContext_PUT + const ContainerSessionContext_SETEACL + const ContainerSessionContext_VERB_UNSPECIFIED + func (ContainerSessionContext_Verb) Descriptor() protoreflect.EnumDescriptor + func (ContainerSessionContext_Verb) EnumDescriptor() ([]byte, []int) + func (ContainerSessionContext_Verb) Type() protoreflect.EnumType + func (x *ContainerSessionContext_Verb) FromString(s string) bool + func (x ContainerSessionContext_Verb) Enum() *ContainerSessionContext_Verb + func (x ContainerSessionContext_Verb) Number() protoreflect.EnumNumber + func (x ContainerSessionContext_Verb) String() string + type CreateRequest struct + Body *CreateRequest_Body + MetaHeader *RequestMetaHeader + VerifyHeader *RequestVerificationHeader + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (m *CreateRequest) SetBody(v *CreateRequest_Body) + func (m *CreateRequest) SetMetaHeader(v *RequestMetaHeader) + func (m *CreateRequest) SetVerifyHeader(v *RequestVerificationHeader) + func (x *CreateRequest) GetBody() *CreateRequest_Body + func (x *CreateRequest) GetMetaHeader() *RequestMetaHeader + func (x *CreateRequest) GetVerifyHeader() *RequestVerificationHeader + func (x *CreateRequest) ProtoReflect() protoreflect.Message + func (x *CreateRequest) Reset() + func (x *CreateRequest) String() string + type CreateRequest_Body struct + Expiration uint64 + OwnerId *grpc.OwnerID + func (*CreateRequest_Body) Descriptor() ([]byte, []int) + func (*CreateRequest_Body) ProtoMessage() + func (m *CreateRequest_Body) SetExpiration(v uint64) + func (m *CreateRequest_Body) SetOwnerId(v *refs.OwnerID) + func (x *CreateRequest_Body) GetExpiration() uint64 + func (x *CreateRequest_Body) GetOwnerId() *grpc.OwnerID + func (x *CreateRequest_Body) ProtoReflect() protoreflect.Message + func (x *CreateRequest_Body) Reset() + func (x *CreateRequest_Body) String() string + type CreateResponse struct + Body *CreateResponse_Body + MetaHeader *ResponseMetaHeader + VerifyHeader *ResponseVerificationHeader + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (m *CreateResponse) SetBody(v *CreateResponse_Body) + func (m *CreateResponse) SetMetaHeader(v *ResponseMetaHeader) + func (m *CreateResponse) SetVerifyHeader(v *ResponseVerificationHeader) + func (x *CreateResponse) GetBody() *CreateResponse_Body + func (x *CreateResponse) GetMetaHeader() *ResponseMetaHeader + func (x *CreateResponse) GetVerifyHeader() *ResponseVerificationHeader + func (x *CreateResponse) ProtoReflect() protoreflect.Message + func (x *CreateResponse) Reset() + func (x *CreateResponse) String() string + type CreateResponse_Body struct + Id []byte + SessionKey []byte + func (*CreateResponse_Body) Descriptor() ([]byte, []int) + func (*CreateResponse_Body) ProtoMessage() + func (m *CreateResponse_Body) SetId(v []byte) + func (m *CreateResponse_Body) SetSessionKey(v []byte) + func (x *CreateResponse_Body) GetId() []byte + func (x *CreateResponse_Body) GetSessionKey() []byte + func (x *CreateResponse_Body) ProtoReflect() protoreflect.Message + func (x *CreateResponse_Body) Reset() + func (x *CreateResponse_Body) String() string + type ObjectSessionContext struct + Target *ObjectSessionContext_Target + Verb ObjectSessionContext_Verb + func (*ObjectSessionContext) Descriptor() ([]byte, []int) + func (*ObjectSessionContext) ProtoMessage() + func (m *ObjectSessionContext) SetTarget(cnr *refs.ContainerID, objs []*refs.ObjectID) + func (m *ObjectSessionContext) SetVerb(v ObjectSessionContext_Verb) + func (x *ObjectSessionContext) GetTarget() *ObjectSessionContext_Target + func (x *ObjectSessionContext) GetVerb() ObjectSessionContext_Verb + func (x *ObjectSessionContext) ProtoReflect() protoreflect.Message + func (x *ObjectSessionContext) Reset() + func (x *ObjectSessionContext) String() string + type ObjectSessionContext_Target struct + Container *grpc.ContainerID + Objects []*grpc.ObjectID + func (*ObjectSessionContext_Target) Descriptor() ([]byte, []int) + func (*ObjectSessionContext_Target) ProtoMessage() + func (x *ObjectSessionContext_Target) GetContainer() *grpc.ContainerID + func (x *ObjectSessionContext_Target) GetObjects() []*grpc.ObjectID + func (x *ObjectSessionContext_Target) ProtoReflect() protoreflect.Message + func (x *ObjectSessionContext_Target) Reset() + func (x *ObjectSessionContext_Target) String() string + type ObjectSessionContext_Verb int32 + const ObjectSessionContext_DELETE + const ObjectSessionContext_GET + const ObjectSessionContext_HEAD + const ObjectSessionContext_PUT + const ObjectSessionContext_RANGE + const ObjectSessionContext_RANGEHASH + const ObjectSessionContext_SEARCH + const ObjectSessionContext_VERB_UNSPECIFIED + func (ObjectSessionContext_Verb) Descriptor() protoreflect.EnumDescriptor + func (ObjectSessionContext_Verb) EnumDescriptor() ([]byte, []int) + func (ObjectSessionContext_Verb) Type() protoreflect.EnumType + func (x *ObjectSessionContext_Verb) FromString(s string) bool + func (x ObjectSessionContext_Verb) Enum() *ObjectSessionContext_Verb + func (x ObjectSessionContext_Verb) Number() protoreflect.EnumNumber + func (x ObjectSessionContext_Verb) String() string + type Option func(*cfg) + func WithCallOptions(opts []grpc.CallOption) Option + type RequestMetaHeader struct + BearerToken *grpc1.BearerToken + Epoch uint64 + MagicNumber uint64 + Origin *RequestMetaHeader + SessionToken *SessionToken + Ttl uint32 + Version *grpc.Version + XHeaders []*XHeader + func (*RequestMetaHeader) Descriptor() ([]byte, []int) + func (*RequestMetaHeader) ProtoMessage() + func (m *RequestMetaHeader) GetNetworkMagic() uint64 + func (m *RequestMetaHeader) SetBearerToken(v *acl.BearerToken) + func (m *RequestMetaHeader) SetEpoch(v uint64) + func (m *RequestMetaHeader) SetNetworkMagic(v uint64) + func (m *RequestMetaHeader) SetOrigin(v *RequestMetaHeader) + func (m *RequestMetaHeader) SetSessionToken(v *SessionToken) + func (m *RequestMetaHeader) SetTtl(v uint32) + func (m *RequestMetaHeader) SetVersion(v *refs.Version) + func (m *RequestMetaHeader) SetXHeaders(v []*XHeader) + func (x *RequestMetaHeader) GetBearerToken() *grpc1.BearerToken + func (x *RequestMetaHeader) GetEpoch() uint64 + func (x *RequestMetaHeader) GetMagicNumber() uint64 + func (x *RequestMetaHeader) GetOrigin() *RequestMetaHeader + func (x *RequestMetaHeader) GetSessionToken() *SessionToken + func (x *RequestMetaHeader) GetTtl() uint32 + func (x *RequestMetaHeader) GetVersion() *grpc.Version + func (x *RequestMetaHeader) GetXHeaders() []*XHeader + func (x *RequestMetaHeader) ProtoReflect() protoreflect.Message + func (x *RequestMetaHeader) Reset() + func (x *RequestMetaHeader) String() string + type RequestVerificationHeader struct + BodySignature *grpc.Signature + MetaSignature *grpc.Signature + Origin *RequestVerificationHeader + OriginSignature *grpc.Signature + func (*RequestVerificationHeader) Descriptor() ([]byte, []int) + func (*RequestVerificationHeader) ProtoMessage() + func (m *RequestVerificationHeader) SetBodySignature(v *refs.Signature) + func (m *RequestVerificationHeader) SetMetaSignature(v *refs.Signature) + func (m *RequestVerificationHeader) SetOrigin(v *RequestVerificationHeader) + func (m *RequestVerificationHeader) SetOriginSignature(v *refs.Signature) + func (x *RequestVerificationHeader) GetBodySignature() *grpc.Signature + func (x *RequestVerificationHeader) GetMetaSignature() *grpc.Signature + func (x *RequestVerificationHeader) GetOrigin() *RequestVerificationHeader + func (x *RequestVerificationHeader) GetOriginSignature() *grpc.Signature + func (x *RequestVerificationHeader) ProtoReflect() protoreflect.Message + func (x *RequestVerificationHeader) Reset() + func (x *RequestVerificationHeader) String() string + type ResponseMetaHeader struct + Epoch uint64 + Origin *ResponseMetaHeader + Status *grpc2.Status + Ttl uint32 + Version *grpc.Version + XHeaders []*XHeader + func (*ResponseMetaHeader) Descriptor() ([]byte, []int) + func (*ResponseMetaHeader) ProtoMessage() + func (m *ResponseMetaHeader) SetEpoch(v uint64) + func (m *ResponseMetaHeader) SetOrigin(v *ResponseMetaHeader) + func (m *ResponseMetaHeader) SetStatus(v *status.Status) + func (m *ResponseMetaHeader) SetTtl(v uint32) + func (m *ResponseMetaHeader) SetVersion(v *refs.Version) + func (m *ResponseMetaHeader) SetXHeaders(v []*XHeader) + func (x *ResponseMetaHeader) GetEpoch() uint64 + func (x *ResponseMetaHeader) GetOrigin() *ResponseMetaHeader + func (x *ResponseMetaHeader) GetStatus() *grpc2.Status + func (x *ResponseMetaHeader) GetTtl() uint32 + func (x *ResponseMetaHeader) GetVersion() *grpc.Version + func (x *ResponseMetaHeader) GetXHeaders() []*XHeader + func (x *ResponseMetaHeader) ProtoReflect() protoreflect.Message + func (x *ResponseMetaHeader) Reset() + func (x *ResponseMetaHeader) String() string + type ResponseVerificationHeader struct + BodySignature *grpc.Signature + MetaSignature *grpc.Signature + Origin *ResponseVerificationHeader + OriginSignature *grpc.Signature + func (*ResponseVerificationHeader) Descriptor() ([]byte, []int) + func (*ResponseVerificationHeader) ProtoMessage() + func (m *ResponseVerificationHeader) SetBodySignature(v *refs.Signature) + func (m *ResponseVerificationHeader) SetMetaSignature(v *refs.Signature) + func (m *ResponseVerificationHeader) SetOrigin(v *ResponseVerificationHeader) + func (m *ResponseVerificationHeader) SetOriginSignature(v *refs.Signature) + func (x *ResponseVerificationHeader) GetBodySignature() *grpc.Signature + func (x *ResponseVerificationHeader) GetMetaSignature() *grpc.Signature + func (x *ResponseVerificationHeader) GetOrigin() *ResponseVerificationHeader + func (x *ResponseVerificationHeader) GetOriginSignature() *grpc.Signature + func (x *ResponseVerificationHeader) ProtoReflect() protoreflect.Message + func (x *ResponseVerificationHeader) Reset() + func (x *ResponseVerificationHeader) String() string + type SessionServiceClient interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + func NewSessionServiceClient(cc grpc.ClientConnInterface) SessionServiceClient + type SessionServiceServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + type SessionToken struct + Body *SessionToken_Body + Signature *grpc.Signature + func (*SessionToken) Descriptor() ([]byte, []int) + func (*SessionToken) ProtoMessage() + func (m *SessionToken) SetBody(v *SessionToken_Body) + func (m *SessionToken) SetSignature(v *refs.Signature) + func (x *SessionToken) GetBody() *SessionToken_Body + func (x *SessionToken) GetSignature() *grpc.Signature + func (x *SessionToken) ProtoReflect() protoreflect.Message + func (x *SessionToken) Reset() + func (x *SessionToken) String() string + type SessionToken_Body struct + Context isSessionToken_Body_Context + Id []byte + Lifetime *SessionToken_Body_TokenLifetime + OwnerId *grpc.OwnerID + SessionKey []byte + func (*SessionToken_Body) Descriptor() ([]byte, []int) + func (*SessionToken_Body) ProtoMessage() + func (m *SessionToken_Body) GetContext() isSessionToken_Body_Context + func (m *SessionToken_Body) SetContainerSessionContext(v *ContainerSessionContext) + func (m *SessionToken_Body) SetId(v []byte) + func (m *SessionToken_Body) SetLifetime(v *SessionToken_Body_TokenLifetime) + func (m *SessionToken_Body) SetObjectSessionContext(v *ObjectSessionContext) + func (m *SessionToken_Body) SetOwnerId(v *refs.OwnerID) + func (m *SessionToken_Body) SetSessionKey(v []byte) + func (x *SessionToken_Body) GetContainer() *ContainerSessionContext + func (x *SessionToken_Body) GetId() []byte + func (x *SessionToken_Body) GetLifetime() *SessionToken_Body_TokenLifetime + func (x *SessionToken_Body) GetObject() *ObjectSessionContext + func (x *SessionToken_Body) GetOwnerId() *grpc.OwnerID + func (x *SessionToken_Body) GetSessionKey() []byte + func (x *SessionToken_Body) ProtoReflect() protoreflect.Message + func (x *SessionToken_Body) Reset() + func (x *SessionToken_Body) String() string + type SessionToken_Body_Container struct + Container *ContainerSessionContext + type SessionToken_Body_Object struct + Object *ObjectSessionContext + type SessionToken_Body_TokenLifetime struct + Exp uint64 + Iat uint64 + Nbf uint64 + func (*SessionToken_Body_TokenLifetime) Descriptor() ([]byte, []int) + func (*SessionToken_Body_TokenLifetime) ProtoMessage() + func (m *SessionToken_Body_TokenLifetime) SetExp(v uint64) + func (m *SessionToken_Body_TokenLifetime) SetIat(v uint64) + func (m *SessionToken_Body_TokenLifetime) SetNbf(v uint64) + func (x *SessionToken_Body_TokenLifetime) GetExp() uint64 + func (x *SessionToken_Body_TokenLifetime) GetIat() uint64 + func (x *SessionToken_Body_TokenLifetime) GetNbf() uint64 + func (x *SessionToken_Body_TokenLifetime) ProtoReflect() protoreflect.Message + func (x *SessionToken_Body_TokenLifetime) Reset() + func (x *SessionToken_Body_TokenLifetime) String() string + type UnimplementedSessionServiceServer struct + func (UnimplementedSessionServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) + type UnsafeSessionServiceServer interface + type XHeader struct + Key string + Value string + func (*XHeader) Descriptor() ([]byte, []int) + func (*XHeader) ProtoMessage() + func (m *XHeader) SetKey(v string) + func (m *XHeader) SetValue(v string) + func (x *XHeader) GetKey() string + func (x *XHeader) GetValue() string + func (x *XHeader) ProtoReflect() protoreflect.Message + func (x *XHeader) Reset() + func (x *XHeader) String() string