session

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "session",
	Short: "Operations with session token",
}

Functions

func CreateSession

func CreateSession(dst *session.Object, c *client.Client, lifetime uint64) error

CreateSession opens a new communication with NeoFS storage node using client connection. The session is expected to be maintained by the storage node during the given number of epochs.

Fills ID, lifetime and session key.

func Prepare added in v0.28.3

func Prepare(cmd *cobra.Command, cnr cid.ID, obj *oid.ID, key *ecdsa.PrivateKey, prms ...RPCParameters)

Prepare prepares session for a command.

Types

type RPCParameters added in v0.28.3

type RPCParameters interface {
	SetClient(*client.Client)
	SetSessionToken(*session.Object)
}

RPCParameters represents parameters for operations with session token.

Jump to

Keyboard shortcuts

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