sessiontest

package
v0.0.0-...-5e759bf Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sessiontest provides functions for convenient testing of session package API.

Note that importing the package into source files is highly discouraged.

Random instance generation functions can be useful when testing expects any value, e.g.:

import sessiontest "github.com/TrueCloudLab/frostfs-sdk-go/session/test"

val := sessiontest.Container()
// test the value

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Container

func Container() *session.Container

Container returns random session.Container.

Resulting token is unsigned.

func ContainerSigned

func ContainerSigned() *session.Container

ContainerSigned returns signed random session.Container.

Panics if token could not be signed (actually unexpected).

func Object

func Object() *session.Object

Object returns random session.Object.

Resulting token is unsigned.

func ObjectSigned

func ObjectSigned() *session.Object

ObjectSigned returns signed random session.Object.

Panics if token could not be signed (actually unexpected).

Types

This section is empty.

Jump to

Keyboard shortcuts

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