package
0.0.5
Repository: https://github.com/goplugin/plugin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewApp returns the command-line parser/function-router for the given client.
NewAuthenticatedHTTPClient uses the CookieAuthenticator to generate a sessionID which is then used for all subsequent HTTP API requests.
NewChangePasswordPrompter returns the production password change request prompter.
NewFileAPIInitializer creates a concrete instance of APIInitializer that pulls API user credentials from the passed file path.
NewFileSessionRequestBuilder pulls credentials from a file to generate a SessionRequest.
No description provided by the author
NewPasswordPrompter returns the production password change request prompter.
NewPromptingAPIInitializer creates a concrete instance of APIInitializer that uses the terminal to solicit credentials from the user.
NewPromptingSessionRequestBuilder uses a prompter, often via terminal, to solicit information from a user to generate the SessionRequest.
NewSessionCookieAuthenticator creates a SessionCookieAuthenticator using the passed config and builder.
NewTerminalPrompter prompts the user via terminal.

# Variables

No description provided by the author
ErrorNoAPICredentialsAvailable is returned when not run from a terminal and no API credentials have been provided.

# Structs

No description provided by the author
ChainlinkAppFactory is used to create a new Application.
ChainlinkRunner is used to run the node application.
Client is the shell for the node, local commands and remote commands.
No description provided by the author
DiskCookieStore saves a single cookie in the local cli working directory.
No description provided by the author
No description provided by the author
No description provided by the author
JAID represents a JSON API ID.
JobRenderer wraps the JSONAPI Job Resource and adds rendering functionality.
MemoryCookieStore keeps a single cookie in memory.
No description provided by the author
No description provided by the author
RendererJSON is used to render JSON data.
RendererTable is used for data to be rendered as a table.
SessionCookieAuthenticator is a concrete implementation of CookieAuthenticator that retrieves a session id for the user with credentials from the session request.
TerminalKeyStoreAuthenticator contains fields for prompting the user and an exit code.
No description provided by the author

# Interfaces

APIInitializer is the interface used to create the API User credentials needed to access the API.
AppFactory implements the NewApplication method.
ChangePasswordPrompter is an interface primarily used for DI to obtain a password change request from the User.
CookieAuthenticator is the interface to generating a cookie to authenticate future HTTP requests.
CookieStore is a place to store and retrieve cookies.
HTTPClient encapsulates all methods used to interact with a chainlink node API.
KeyStoreAuthenticator implements the Authenticate method for the store and a password string.
PasswordPrompter is an interface primarily used for DI to obtain a password from the User.
Prompter implements the Prompt function to be used to display at the console.
Renderer implements the Render method.
Runner implements the Run method.
SessionRequestBuilder is an interface that returns a SessionRequest, abstracting how session requests are generated, whether they be from the prompt or from a file.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author