Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSatelliteID ¶
GetSatelliteID retrieves node identity from SSL endpoint. Only for testing. Using identified node id is not reliable.
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 ¶
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 ¶
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.