session

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 21

Documentation

Index

Constants

View Source
const (
	// XHeaderNetmapEpoch is a key to the reserved X-header that specifies netmap epoch
	// to use for object placement calculation. If set to '0' or not set, the current
	// epoch only will be used.
	XHeaderNetmapEpoch = ReservedXHeaderPrefix + "NETMAP_EPOCH"

	// XHeaderNetmapLookupDepth is a key to the reserved X-header that limits
	// how many past epochs back the node will can lookup. If set to '0' or not
	// set, the current epoch only will be used.
	XHeaderNetmapLookupDepth = ReservedXHeaderPrefix + "NETMAP_LOOKUP_DEPTH"
)
View Source
const ReservedXHeaderPrefix = "__NEOFS__"

ReservedXHeaderPrefix is a prefix of keys to "well-known" X-headers.

Variables

This section is empty.

Functions

func ContainerSessionVerbToGRPCField added in v1.27.0

func ContainerSessionVerbToGRPCField(v ContainerSessionVerb) session.ContainerSessionContext_Verb

ContainerSessionVerbToGRPCField converts ContainerSessionVerb to gRPC-generated session.ContainerSessionContext_Verb.

If v is outside of the ContainerSessionVerb enum, session.ContainerSessionContext_VERB_UNSPECIFIED is returned.

func XHeadersToGRPC added in v1.25.0

func XHeadersToGRPC(xs []*XHeader) (res []*session.XHeader)

Types

type ContainerSessionContext added in v1.27.0

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

ContainerSessionContext represents structure of the NeoFS API v2 session.ContainerSessionContext message.

func (*ContainerSessionContext) ContainerID added in v1.27.0

func (x *ContainerSessionContext) ContainerID() *refs.ContainerID

ContainerID returns identifier of the container related to the session.

func (*ContainerSessionContext) FromGRPCMessage added in v1.27.0

func (x *ContainerSessionContext) FromGRPCMessage(m grpc.Message) error

FromGRPCMessage tries to restore ContainerSessionContext from grpc.Message.

Returns message.ErrUnexpectedMessageType if m is not a gRPC-generated session.ContainerSessionContext message.

func (*ContainerSessionContext) MarshalJSON added in v1.27.0

func (x *ContainerSessionContext) MarshalJSON() ([]byte, error)

func (*ContainerSessionContext) SetContainerID added in v1.27.0

func (x *ContainerSessionContext) SetContainerID(v *refs.ContainerID)

SetContainerID sets identifier of the container related to the session.

func (*ContainerSessionContext) SetVerb added in v1.27.0

SetVerb sets type of request for which the token is issued.

func (*ContainerSessionContext) SetWildcard added in v1.27.0

func (x *ContainerSessionContext) SetWildcard(v bool)

SetWildcard sets wildcard flag of the container session.

func (*ContainerSessionContext) StableMarshal added in v1.27.0

func (x *ContainerSessionContext) StableMarshal(buf []byte) ([]byte, error)

func (*ContainerSessionContext) StableSize added in v1.27.0

func (x *ContainerSessionContext) StableSize() (size int)

func (*ContainerSessionContext) ToGRPCMessage added in v1.27.0

func (x *ContainerSessionContext) ToGRPCMessage() grpc.Message

ToGRPCMessage converts ContainerSessionContext to gRPC-generated session.ContainerSessionContext message.

func (*ContainerSessionContext) Unmarshal added in v1.27.0

func (x *ContainerSessionContext) Unmarshal(data []byte) error

func (*ContainerSessionContext) UnmarshalJSON added in v1.27.0

func (x *ContainerSessionContext) UnmarshalJSON(data []byte) error

func (*ContainerSessionContext) Verb added in v1.27.0

Verb returns type of request for which the token is issued.

func (*ContainerSessionContext) Wildcard added in v1.27.0

func (x *ContainerSessionContext) Wildcard() bool

Wildcard returns wildcard flag of the container session.

type ContainerSessionVerb added in v1.27.0

type ContainerSessionVerb uint32

ContainerSessionVerb represents NeoFS API v2 session.ContainerSessionContext.Verb enumeration.

const (
	// ContainerVerbUnknown corresponds to VERB_UNSPECIFIED enum value.
	ContainerVerbUnknown ContainerSessionVerb = iota

	// ContainerVerbPut corresponds to PUT enum value.
	ContainerVerbPut

	// ContainerVerbDelete corresponds to DELETE enum value.
	ContainerVerbDelete

	// ContainerVerbSetEACL corresponds to SETEACL enum value.
	ContainerVerbSetEACL
)

func ContainerSessionVerbFromGRPCField added in v1.27.0

func ContainerSessionVerbFromGRPCField(v session.ContainerSessionContext_Verb) ContainerSessionVerb

ContainerSessionVerbFromGRPCField converts gRPC-generated session.ContainerSessionContext_Verb to ContainerSessionVerb.

If v is outside of the session.ContainerSessionContext_Verb enum, ContainerVerbUnknown is returned.

type CreateRequest

type CreateRequest struct {
	RequestHeaders
	// contains filtered or unexported fields
}

func (*CreateRequest) FromGRPCMessage added in v1.25.0

func (c *CreateRequest) FromGRPCMessage(m grpc.Message) error

func (*CreateRequest) GetBody

func (c *CreateRequest) GetBody() *CreateRequestBody

func (*CreateRequest) GetMetaHeader

func (c *CreateRequest) GetMetaHeader() *RequestMetaHeader

func (*CreateRequest) GetVerificationHeader

func (c *CreateRequest) GetVerificationHeader() *RequestVerificationHeader

func (*CreateRequest) SetBody

func (c *CreateRequest) SetBody(v *CreateRequestBody)

func (*CreateRequest) SetMetaHeader

func (c *CreateRequest) SetMetaHeader(v *RequestMetaHeader)

func (*CreateRequest) SetVerificationHeader

func (c *CreateRequest) SetVerificationHeader(v *RequestVerificationHeader)

func (*CreateRequest) ToGRPCMessage added in v1.25.0

func (c *CreateRequest) ToGRPCMessage() grpc.Message

type CreateRequestBody

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

func (*CreateRequestBody) FromGRPCMessage added in v1.25.0

func (c *CreateRequestBody) FromGRPCMessage(m grpc.Message) error

func (*CreateRequestBody) GetExpiration

func (c *CreateRequestBody) GetExpiration() uint64

func (*CreateRequestBody) GetOwnerID

func (c *CreateRequestBody) GetOwnerID() *refs.OwnerID

func (*CreateRequestBody) SetExpiration

func (c *CreateRequestBody) SetExpiration(v uint64)

func (*CreateRequestBody) SetOwnerID

func (c *CreateRequestBody) SetOwnerID(v *refs.OwnerID)

func (*CreateRequestBody) StableMarshal

func (c *CreateRequestBody) StableMarshal(buf []byte) ([]byte, error)

func (*CreateRequestBody) StableSize

func (c *CreateRequestBody) StableSize() (size int)

func (*CreateRequestBody) ToGRPCMessage added in v1.25.0

func (c *CreateRequestBody) ToGRPCMessage() grpc.Message

func (*CreateRequestBody) Unmarshal added in v1.25.0

func (c *CreateRequestBody) Unmarshal(data []byte) error

type CreateResponse

type CreateResponse struct {
	ResponseHeaders
	// contains filtered or unexported fields
}

func (*CreateResponse) FromGRPCMessage added in v1.25.0

func (c *CreateResponse) FromGRPCMessage(m grpc.Message) error

func (*CreateResponse) GetBody

func (c *CreateResponse) GetBody() *CreateResponseBody

func (*CreateResponse) GetMetaHeader

func (c *CreateResponse) GetMetaHeader() *ResponseMetaHeader

func (*CreateResponse) GetVerificationHeader

func (c *CreateResponse) GetVerificationHeader() *ResponseVerificationHeader

func (*CreateResponse) SetBody

func (c *CreateResponse) SetBody(v *CreateResponseBody)

func (*CreateResponse) SetMetaHeader

func (c *CreateResponse) SetMetaHeader(v *ResponseMetaHeader)

func (*CreateResponse) SetVerificationHeader

func (c *CreateResponse) SetVerificationHeader(v *ResponseVerificationHeader)

func (*CreateResponse) ToGRPCMessage added in v1.25.0

func (c *CreateResponse) ToGRPCMessage() grpc.Message

type CreateResponseBody

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

func (*CreateResponseBody) FromGRPCMessage added in v1.25.0

func (c *CreateResponseBody) FromGRPCMessage(m grpc.Message) error

func (*CreateResponseBody) GetID

func (c *CreateResponseBody) GetID() []byte

func (*CreateResponseBody) GetSessionKey

func (c *CreateResponseBody) GetSessionKey() []byte

func (*CreateResponseBody) SetID

func (c *CreateResponseBody) SetID(v []byte)

func (*CreateResponseBody) SetSessionKey

func (c *CreateResponseBody) SetSessionKey(v []byte)

func (*CreateResponseBody) StableMarshal

func (c *CreateResponseBody) StableMarshal(buf []byte) ([]byte, error)

func (*CreateResponseBody) StableSize

func (c *CreateResponseBody) StableSize() (size int)

func (*CreateResponseBody) ToGRPCMessage added in v1.25.0

func (c *CreateResponseBody) ToGRPCMessage() grpc.Message

func (*CreateResponseBody) Unmarshal added in v1.25.0

func (c *CreateResponseBody) Unmarshal(data []byte) error

type ObjectSessionContext

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

func (*ObjectSessionContext) FromGRPCMessage added in v1.25.0

func (c *ObjectSessionContext) FromGRPCMessage(m grpc.Message) error

func (*ObjectSessionContext) GetAddress

func (c *ObjectSessionContext) GetAddress() *refs.Address

func (*ObjectSessionContext) GetVerb

func (*ObjectSessionContext) MarshalJSON

func (c *ObjectSessionContext) MarshalJSON() ([]byte, error)

func (*ObjectSessionContext) SetAddress

func (c *ObjectSessionContext) SetAddress(v *refs.Address)

func (*ObjectSessionContext) SetVerb

func (*ObjectSessionContext) StableMarshal

func (c *ObjectSessionContext) StableMarshal(buf []byte) ([]byte, error)

func (*ObjectSessionContext) StableSize

func (c *ObjectSessionContext) StableSize() (size int)

func (*ObjectSessionContext) ToGRPCMessage added in v1.25.0

func (c *ObjectSessionContext) ToGRPCMessage() grpc.Message

func (*ObjectSessionContext) Unmarshal

func (c *ObjectSessionContext) Unmarshal(data []byte) error

func (*ObjectSessionContext) UnmarshalJSON

func (c *ObjectSessionContext) UnmarshalJSON(data []byte) error

type ObjectSessionVerb

type ObjectSessionVerb uint32
const (
	ObjectVerbUnknown ObjectSessionVerb = iota
	ObjectVerbPut
	ObjectVerbGet
	ObjectVerbHead
	ObjectVerbSearch
	ObjectVerbDelete
	ObjectVerbRange
	ObjectVerbRangeHash
)

type RequestHeaders added in v1.24.0

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

RequestHeaders represents common part of all NeoFS requests including headers.

func (*RequestHeaders) FromMessage added in v1.25.0

func (c *RequestHeaders) FromMessage(m interface {
	GetMetaHeader() *session.RequestMetaHeader
	GetVerifyHeader() *session.RequestVerificationHeader
}) error

func (*RequestHeaders) GetMetaHeader added in v1.24.0

func (c *RequestHeaders) GetMetaHeader() *RequestMetaHeader

GetMetaHeader returns meta header of the request.

func (*RequestHeaders) GetVerificationHeader added in v1.24.0

func (c *RequestHeaders) GetVerificationHeader() *RequestVerificationHeader

GetVerificationHeader returns verification header of the request.

func (*RequestHeaders) SetMetaHeader added in v1.24.0

func (c *RequestHeaders) SetMetaHeader(v *RequestMetaHeader)

SetMetaHeader sets meta header of the request.

func (*RequestHeaders) SetVerificationHeader added in v1.24.0

func (c *RequestHeaders) SetVerificationHeader(v *RequestVerificationHeader)

SetVerificationHeader sets verification header of the request.

func (*RequestHeaders) ToMessage added in v1.25.0

func (c *RequestHeaders) ToMessage(m interface {
	SetMetaHeader(*session.RequestMetaHeader)
	SetVerifyHeader(*session.RequestVerificationHeader)
})

type RequestMetaHeader

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

func (*RequestMetaHeader) FromGRPCMessage added in v1.25.0

func (r *RequestMetaHeader) FromGRPCMessage(m grpc.Message) error

func (*RequestMetaHeader) GetBearerToken

func (r *RequestMetaHeader) GetBearerToken() *acl.BearerToken

func (*RequestMetaHeader) GetEpoch

func (r *RequestMetaHeader) GetEpoch() uint64

func (*RequestMetaHeader) GetOrigin

func (r *RequestMetaHeader) GetOrigin() *RequestMetaHeader

func (*RequestMetaHeader) GetSessionToken

func (r *RequestMetaHeader) GetSessionToken() *SessionToken

func (*RequestMetaHeader) GetTTL

func (r *RequestMetaHeader) GetTTL() uint32

func (*RequestMetaHeader) GetVersion

func (r *RequestMetaHeader) GetVersion() *refs.Version

func (*RequestMetaHeader) GetXHeaders

func (r *RequestMetaHeader) GetXHeaders() []*XHeader

func (*RequestMetaHeader) MarshalJSON

func (r *RequestMetaHeader) MarshalJSON() ([]byte, error)

func (*RequestMetaHeader) SetBearerToken

func (r *RequestMetaHeader) SetBearerToken(v *acl.BearerToken)

func (*RequestMetaHeader) SetEpoch

func (r *RequestMetaHeader) SetEpoch(v uint64)

func (*RequestMetaHeader) SetOrigin

func (r *RequestMetaHeader) SetOrigin(v *RequestMetaHeader)

func (*RequestMetaHeader) SetSessionToken

func (r *RequestMetaHeader) SetSessionToken(v *SessionToken)

func (*RequestMetaHeader) SetTTL

func (r *RequestMetaHeader) SetTTL(v uint32)

func (*RequestMetaHeader) SetVersion

func (r *RequestMetaHeader) SetVersion(v *refs.Version)

func (*RequestMetaHeader) SetXHeaders

func (r *RequestMetaHeader) SetXHeaders(v []*XHeader)

func (*RequestMetaHeader) StableMarshal

func (r *RequestMetaHeader) StableMarshal(buf []byte) ([]byte, error)

func (*RequestMetaHeader) StableSize

func (r *RequestMetaHeader) StableSize() (size int)

func (*RequestMetaHeader) ToGRPCMessage added in v1.25.0

func (r *RequestMetaHeader) ToGRPCMessage() grpc.Message

func (*RequestMetaHeader) Unmarshal

func (r *RequestMetaHeader) Unmarshal(data []byte) error

func (*RequestMetaHeader) UnmarshalJSON

func (r *RequestMetaHeader) UnmarshalJSON(data []byte) error

type RequestVerificationHeader

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

func (*RequestVerificationHeader) FromGRPCMessage added in v1.25.0

func (r *RequestVerificationHeader) FromGRPCMessage(m grpc.Message) error

func (*RequestVerificationHeader) GetBodySignature

func (r *RequestVerificationHeader) GetBodySignature() *refs.Signature

func (*RequestVerificationHeader) GetMetaSignature

func (r *RequestVerificationHeader) GetMetaSignature() *refs.Signature

func (*RequestVerificationHeader) GetOrigin

func (*RequestVerificationHeader) GetOriginSignature

func (r *RequestVerificationHeader) GetOriginSignature() *refs.Signature

func (*RequestVerificationHeader) MarshalJSON

func (r *RequestVerificationHeader) MarshalJSON() ([]byte, error)

func (*RequestVerificationHeader) SetBodySignature

func (r *RequestVerificationHeader) SetBodySignature(v *refs.Signature)

func (*RequestVerificationHeader) SetMetaSignature

func (r *RequestVerificationHeader) SetMetaSignature(v *refs.Signature)

func (*RequestVerificationHeader) SetOrigin

func (*RequestVerificationHeader) SetOriginSignature

func (r *RequestVerificationHeader) SetOriginSignature(v *refs.Signature)

func (*RequestVerificationHeader) StableMarshal

func (r *RequestVerificationHeader) StableMarshal(buf []byte) ([]byte, error)

func (*RequestVerificationHeader) StableSize

func (r *RequestVerificationHeader) StableSize() (size int)

func (*RequestVerificationHeader) ToGRPCMessage added in v1.25.0

func (r *RequestVerificationHeader) ToGRPCMessage() grpc.Message

func (*RequestVerificationHeader) Unmarshal

func (r *RequestVerificationHeader) Unmarshal(data []byte) error

func (*RequestVerificationHeader) UnmarshalJSON

func (r *RequestVerificationHeader) UnmarshalJSON(data []byte) error

type ResponseHeaders added in v1.24.0

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

ResponseHeaders represents common part of all NeoFS responses including headers.

func (*ResponseHeaders) FromMessage added in v1.25.0

func (c *ResponseHeaders) FromMessage(m interface {
	GetMetaHeader() *session.ResponseMetaHeader
	GetVerifyHeader() *session.ResponseVerificationHeader
}) error

func (*ResponseHeaders) GetMetaHeader added in v1.24.0

func (c *ResponseHeaders) GetMetaHeader() *ResponseMetaHeader

GetMetaHeader returns meta header of the response.

func (*ResponseHeaders) GetVerificationHeader added in v1.24.0

func (c *ResponseHeaders) GetVerificationHeader() *ResponseVerificationHeader

GetVerificationHeader returns verification header of the response.

func (*ResponseHeaders) SetMetaHeader added in v1.24.0

func (c *ResponseHeaders) SetMetaHeader(v *ResponseMetaHeader)

SetMetaHeader sets meta header of the response.

func (*ResponseHeaders) SetVerificationHeader added in v1.24.0

func (c *ResponseHeaders) SetVerificationHeader(v *ResponseVerificationHeader)

SetVerificationHeader sets verification header of the response.

func (*ResponseHeaders) ToMessage added in v1.25.0

func (c *ResponseHeaders) ToMessage(m interface {
	SetMetaHeader(*session.ResponseMetaHeader)
	SetVerifyHeader(*session.ResponseVerificationHeader)
})

type ResponseMetaHeader

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

func (*ResponseMetaHeader) FromGRPCMessage added in v1.25.0

func (r *ResponseMetaHeader) FromGRPCMessage(m grpc.Message) error

func (*ResponseMetaHeader) GetEpoch

func (r *ResponseMetaHeader) GetEpoch() uint64

func (*ResponseMetaHeader) GetOrigin

func (r *ResponseMetaHeader) GetOrigin() *ResponseMetaHeader

func (*ResponseMetaHeader) GetTTL

func (r *ResponseMetaHeader) GetTTL() uint32

func (*ResponseMetaHeader) GetVersion

func (r *ResponseMetaHeader) GetVersion() *refs.Version

func (*ResponseMetaHeader) GetXHeaders

func (r *ResponseMetaHeader) GetXHeaders() []*XHeader

func (*ResponseMetaHeader) MarshalJSON

func (r *ResponseMetaHeader) MarshalJSON() ([]byte, error)

func (*ResponseMetaHeader) SetEpoch

func (r *ResponseMetaHeader) SetEpoch(v uint64)

func (*ResponseMetaHeader) SetOrigin

func (r *ResponseMetaHeader) SetOrigin(v *ResponseMetaHeader)

func (*ResponseMetaHeader) SetTTL

func (r *ResponseMetaHeader) SetTTL(v uint32)

func (*ResponseMetaHeader) SetVersion

func (r *ResponseMetaHeader) SetVersion(v *refs.Version)

func (*ResponseMetaHeader) SetXHeaders

func (r *ResponseMetaHeader) SetXHeaders(v []*XHeader)

func (*ResponseMetaHeader) StableMarshal

func (r *ResponseMetaHeader) StableMarshal(buf []byte) ([]byte, error)

func (*ResponseMetaHeader) StableSize

func (r *ResponseMetaHeader) StableSize() (size int)

func (*ResponseMetaHeader) ToGRPCMessage added in v1.25.0

func (r *ResponseMetaHeader) ToGRPCMessage() grpc.Message

func (*ResponseMetaHeader) Unmarshal

func (r *ResponseMetaHeader) Unmarshal(data []byte) error

func (*ResponseMetaHeader) UnmarshalJSON

func (r *ResponseMetaHeader) UnmarshalJSON(data []byte) error

type ResponseVerificationHeader

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

func (*ResponseVerificationHeader) FromGRPCMessage added in v1.25.0

func (r *ResponseVerificationHeader) FromGRPCMessage(m grpc.Message) error

func (*ResponseVerificationHeader) GetBodySignature

func (r *ResponseVerificationHeader) GetBodySignature() *refs.Signature

func (*ResponseVerificationHeader) GetMetaSignature

func (r *ResponseVerificationHeader) GetMetaSignature() *refs.Signature

func (*ResponseVerificationHeader) GetOrigin

func (*ResponseVerificationHeader) GetOriginSignature

func (r *ResponseVerificationHeader) GetOriginSignature() *refs.Signature

func (*ResponseVerificationHeader) MarshalJSON

func (r *ResponseVerificationHeader) MarshalJSON() ([]byte, error)

func (*ResponseVerificationHeader) SetBodySignature

func (r *ResponseVerificationHeader) SetBodySignature(v *refs.Signature)

func (*ResponseVerificationHeader) SetMetaSignature

func (r *ResponseVerificationHeader) SetMetaSignature(v *refs.Signature)

func (*ResponseVerificationHeader) SetOrigin

func (*ResponseVerificationHeader) SetOriginSignature

func (r *ResponseVerificationHeader) SetOriginSignature(v *refs.Signature)

func (*ResponseVerificationHeader) StableMarshal

func (r *ResponseVerificationHeader) StableMarshal(buf []byte) ([]byte, error)

func (*ResponseVerificationHeader) StableSize

func (r *ResponseVerificationHeader) StableSize() (size int)

func (*ResponseVerificationHeader) ToGRPCMessage added in v1.25.0

func (r *ResponseVerificationHeader) ToGRPCMessage() grpc.Message

func (*ResponseVerificationHeader) Unmarshal

func (r *ResponseVerificationHeader) Unmarshal(data []byte) error

func (*ResponseVerificationHeader) UnmarshalJSON

func (r *ResponseVerificationHeader) UnmarshalJSON(data []byte) error

type SessionToken

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

func (*SessionToken) FromGRPCMessage added in v1.25.0

func (t *SessionToken) FromGRPCMessage(m grpc.Message) error

func (*SessionToken) GetBody

func (t *SessionToken) GetBody() *SessionTokenBody

func (*SessionToken) GetSignature

func (t *SessionToken) GetSignature() *refs.Signature

func (*SessionToken) MarshalJSON

func (t *SessionToken) MarshalJSON() ([]byte, error)

func (*SessionToken) SetBody

func (t *SessionToken) SetBody(v *SessionTokenBody)

func (*SessionToken) SetSignature

func (t *SessionToken) SetSignature(v *refs.Signature)

func (*SessionToken) StableMarshal

func (t *SessionToken) StableMarshal(buf []byte) ([]byte, error)

func (*SessionToken) StableSize

func (t *SessionToken) StableSize() (size int)

func (*SessionToken) ToGRPCMessage added in v1.25.0

func (t *SessionToken) ToGRPCMessage() grpc.Message

func (*SessionToken) Unmarshal

func (t *SessionToken) Unmarshal(data []byte) error

func (*SessionToken) UnmarshalJSON

func (t *SessionToken) UnmarshalJSON(data []byte) error

type SessionTokenBody

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

func (*SessionTokenBody) FromGRPCMessage added in v1.25.0

func (t *SessionTokenBody) FromGRPCMessage(m grpc.Message) error

func (*SessionTokenBody) GetContext

func (t *SessionTokenBody) GetContext() SessionTokenContext

func (*SessionTokenBody) GetID

func (t *SessionTokenBody) GetID() []byte

func (*SessionTokenBody) GetLifetime

func (t *SessionTokenBody) GetLifetime() *TokenLifetime

func (*SessionTokenBody) GetOwnerID

func (t *SessionTokenBody) GetOwnerID() *refs.OwnerID

func (*SessionTokenBody) GetSessionKey

func (t *SessionTokenBody) GetSessionKey() []byte

func (*SessionTokenBody) MarshalJSON

func (t *SessionTokenBody) MarshalJSON() ([]byte, error)

func (*SessionTokenBody) SetContext

func (t *SessionTokenBody) SetContext(v SessionTokenContext)

func (*SessionTokenBody) SetID

func (t *SessionTokenBody) SetID(v []byte)

func (*SessionTokenBody) SetLifetime

func (t *SessionTokenBody) SetLifetime(v *TokenLifetime)

func (*SessionTokenBody) SetOwnerID

func (t *SessionTokenBody) SetOwnerID(v *refs.OwnerID)

func (*SessionTokenBody) SetSessionKey

func (t *SessionTokenBody) SetSessionKey(v []byte)

func (*SessionTokenBody) StableMarshal

func (t *SessionTokenBody) StableMarshal(buf []byte) ([]byte, error)

func (*SessionTokenBody) StableSize

func (t *SessionTokenBody) StableSize() (size int)

func (*SessionTokenBody) ToGRPCMessage added in v1.25.0

func (t *SessionTokenBody) ToGRPCMessage() grpc.Message

func (*SessionTokenBody) Unmarshal

func (t *SessionTokenBody) Unmarshal(data []byte) error

func (*SessionTokenBody) UnmarshalJSON

func (t *SessionTokenBody) UnmarshalJSON(data []byte) error

type SessionTokenContext

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

type TokenLifetime

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

func (*TokenLifetime) FromGRPCMessage added in v1.25.0

func (l *TokenLifetime) FromGRPCMessage(m grpc.Message) error

func (*TokenLifetime) GetExp

func (l *TokenLifetime) GetExp() uint64

func (*TokenLifetime) GetIat

func (l *TokenLifetime) GetIat() uint64

func (*TokenLifetime) GetNbf

func (l *TokenLifetime) GetNbf() uint64

func (*TokenLifetime) MarshalJSON

func (l *TokenLifetime) MarshalJSON() ([]byte, error)

func (*TokenLifetime) SetExp

func (l *TokenLifetime) SetExp(v uint64)

func (*TokenLifetime) SetIat

func (l *TokenLifetime) SetIat(v uint64)

func (*TokenLifetime) SetNbf

func (l *TokenLifetime) SetNbf(v uint64)

func (*TokenLifetime) StableMarshal

func (l *TokenLifetime) StableMarshal(buf []byte) ([]byte, error)

func (*TokenLifetime) StableSize

func (l *TokenLifetime) StableSize() (size int)

func (*TokenLifetime) ToGRPCMessage added in v1.25.0

func (l *TokenLifetime) ToGRPCMessage() grpc.Message

func (*TokenLifetime) Unmarshal

func (l *TokenLifetime) Unmarshal(data []byte) error

func (*TokenLifetime) UnmarshalJSON

func (l *TokenLifetime) UnmarshalJSON(data []byte) error

type XHeader

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

func XHeadersFromGRPC added in v1.25.0

func XHeadersFromGRPC(xs []*session.XHeader) (res []*XHeader, err error)

func (*XHeader) FromGRPCMessage added in v1.25.0

func (x *XHeader) FromGRPCMessage(m grpc.Message) error

func (*XHeader) GetKey

func (x *XHeader) GetKey() string

func (*XHeader) GetValue

func (x *XHeader) GetValue() string

func (*XHeader) MarshalJSON

func (x *XHeader) MarshalJSON() ([]byte, error)

func (*XHeader) SetKey

func (x *XHeader) SetKey(v string)

func (*XHeader) SetValue

func (x *XHeader) SetValue(v string)

func (*XHeader) StableMarshal

func (x *XHeader) StableMarshal(buf []byte) ([]byte, error)

func (*XHeader) StableSize

func (x *XHeader) StableSize() (size int)

func (*XHeader) ToGRPCMessage added in v1.25.0

func (x *XHeader) ToGRPCMessage() grpc.Message

func (*XHeader) Unmarshal

func (x *XHeader) Unmarshal(data []byte) error

func (*XHeader) UnmarshalJSON

func (x *XHeader) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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