up

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSatelliteID

func GetSatelliteID(ctx context.Context, address string) (string, error)

GetSatelliteID retrieves node identity from SSL endpoint. Only for testing. Using identified node id is not reliable.

func RegisterAccess

func RegisterAccess(ctx context.Context, authService string, accessSerialized string) (accessKey, secretKey, endpoint string, err error)

RegisterAccess creates new access registered to linksharing.

Types

type ConsoleEndpoint

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

ConsoleEndpoint represents a user session to the web console.

func NewConsoleEndpoints

func NewConsoleEndpoints(address string, email string) *ConsoleEndpoint

NewConsoleEndpoints creates a new client which connects to running web console.

func (*ConsoleEndpoint) CreateAPIKey

func (ce *ConsoleEndpoint) CreateAPIKey(ctx context.Context, projectID string) (string, error)

CreateAPIKey creates new API key to access Storj services.

func (*ConsoleEndpoint) GetOrCreateProject

func (ce *ConsoleEndpoint) GetOrCreateProject(ctx context.Context) (string, string, error)

GetOrCreateProject return with project to use in this session.

func (*ConsoleEndpoint) Login

func (ce *ConsoleEndpoint) Login(ctx context.Context) (err error)

Login logins in to the web console (and creates use if it's necessary).

Directories

Path Synopsis
files

Jump to

Keyboard shortcuts

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