up

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 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. this method will try to create the key using the old graphql endpoint, and if it fails, it will try to get the project using the new http endpoint. see the changes in https://github.com/storj/storj/commit/516241e406923dedcc66df06b7e7c1479dc98b91 for the update from old API to new. TODO: update this method when the old API is no longer needed.

func (*ConsoleEndpoint) GetOrCreateProject

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

GetOrCreateProject return with project to use in this session. this method will try to get/create the project using the old graphql endpoint, and if it fails, it will try to get/create the project using the new http endpoint. see the changes in https://github.com/storj/storj/commit/516241e406923dedcc66df06b7e7c1479dc98b91 for the update from old API to new. TODO: update this method when the old API is no longer needed.

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