Versions in this module Expand all Collapse all v0 v0.0.1 May 19, 2021 Changes in this version + var ErrNoCredentialFile = errors.New("no API user credential file was passed") + var ErrorNoAPICredentialsAvailable = errors.New("API credentials must be supplied") + func NewApp(client *Client) *cli.App + type APIInitializer interface + Initialize func(store *store.Store) (models.User, error) + func NewFileAPIInitializer(file string) APIInitializer + func NewPromptingAPIInitializer(prompter Prompter) APIInitializer + type AdamoracleAppFactory struct + func (n AdamoracleAppFactory) NewApplication(config *orm.Config, onConnectCallbacks ...func(adamoracle.Application)) (adamoracle.Application, error) + type AdamoracleRunner struct + func (n AdamoracleRunner) Run(app adamoracle.Application) error + type AppFactory interface + NewApplication func(*orm.Config, ...func(adamoracle.Application)) (adamoracle.Application, error) + type ChangePasswordPrompter interface + Prompt func() (web.UpdatePasswordRequest, error) + func NewChangePasswordPrompter() ChangePasswordPrompter + type Client struct + AppFactory AppFactory + ChangePasswordPrompter ChangePasswordPrompter + Config *orm.Config + CookieAuthenticator CookieAuthenticator + FallbackAPIInitializer APIInitializer + FileSessionRequestBuilder SessionRequestBuilder + HTTP HTTPClient + KeyStoreAuthenticator KeyStoreAuthenticator + PasswordPrompter PasswordPrompter + PromptingSessionRequestBuilder SessionRequestBuilder + Runner Runner + func (cli *Client) ArchiveJobSpec(c *clipkg.Context) error + func (cli *Client) CancelJobRun(c *clipkg.Context) error + func (cli *Client) ChangePassword(c *clipkg.Context) (err error) + func (cli *Client) CreateAndExportWeakVRFKey(c *cli.Context) error + func (cli *Client) CreateBridge(c *cli.Context) (err error) + func (cli *Client) CreateETHKey(c *cli.Context) (err error) + func (cli *Client) CreateExternalInitiator(c *clipkg.Context) (err error) + func (cli *Client) CreateJobRun(c *clipkg.Context) (err error) + func (cli *Client) CreateJobSpec(c *clipkg.Context) (err error) + func (cli *Client) CreateJobV2(c *cli.Context) (err error) + func (cli *Client) CreateOCRKeyBundle(c *cli.Context) error + func (cli *Client) CreateP2PKey(c *cli.Context) (err error) + func (cli *Client) CreateServiceAgreement(c *clipkg.Context) (err error) + func (cli *Client) CreateVRFKey(c *cli.Context) error + func (cli *Client) DeleteETHKey(c *cli.Context) (err error) + func (cli *Client) DeleteExternalInitiator(c *clipkg.Context) (err error) + func (cli *Client) DeleteJobV2(c *cli.Context) error + func (cli *Client) DeleteOCRKeyBundle(c *cli.Context) error + func (cli *Client) DeleteP2PKey(c *cli.Context) (err error) + func (cli *Client) DeleteUser(c *clipkg.Context) (err error) + func (cli *Client) DeleteVRFKey(c *cli.Context) error + func (cli *Client) ExportETHKey(c *cli.Context) (err error) + func (cli *Client) ExportOCRKey(c *cli.Context) (err error) + func (cli *Client) ExportP2PKey(c *cli.Context) (err error) + func (cli *Client) ExportVRFKey(c *cli.Context) error + func (cli *Client) GetConfiguration(c *clipkg.Context) (err error) + func (cli *Client) HardReset(c *clipkg.Context) error + func (cli *Client) ImportETHKey(c *cli.Context) (err error) + func (cli *Client) ImportKey(c *clipkg.Context) error + func (cli *Client) ImportOCRKey(c *cli.Context) (err error) + func (cli *Client) ImportP2PKey(c *cli.Context) (err error) + func (cli *Client) ImportVRFKey(c *cli.Context) error + func (cli *Client) IndexBridges(c *cli.Context) (err error) + func (cli *Client) IndexJobRuns(c *clipkg.Context) error + func (cli *Client) IndexJobSpecs(c *clipkg.Context) error + func (cli *Client) IndexTransactions(c *clipkg.Context) error + func (cli *Client) IndexTxAttempts(c *clipkg.Context) error + func (cli *Client) ListETHKeys(c *cli.Context) (err error) + func (cli *Client) ListJobsV2(c *cli.Context) (err error) + func (cli *Client) ListOCRKeyBundles(c *cli.Context) error + func (cli *Client) ListP2PKeys(c *cli.Context) (err error) + func (cli *Client) ListVRFKeys(c *cli.Context) error + func (cli *Client) PrepareTestDatabase(c *clipkg.Context) error + func (cli *Client) RebroadcastTransactions(c *clipkg.Context) (err error) + func (cli *Client) RemoteLogin(c *clipkg.Context) error + func (cli *Client) RemoveBridge(c *cli.Context) (err error) + func (cli *Client) ResetDatabase(c *clipkg.Context) error + func (cli *Client) RunNode(c *clipkg.Context) error + func (cli *Client) SendEther(c *clipkg.Context) (err error) + func (cli *Client) SetLogLevel(c *clipkg.Context) (err error) + func (cli *Client) SetLogSQL(c *clipkg.Context) (err error) + func (cli *Client) SetMinimumGasPrice(c *clipkg.Context) (err error) + func (cli *Client) SetNextNonce(c *clipkg.Context) error + func (cli *Client) ShowBridge(c *cli.Context) (err error) + func (cli *Client) ShowJobRun(c *clipkg.Context) (err error) + func (cli *Client) ShowJobSpec(c *clipkg.Context) (err error) + func (cli *Client) ShowTransaction(c *clipkg.Context) (err error) + func (cli *Client) TriggerPipelineRun(c *clipkg.Context) error + type CookieAuthenticator interface + Authenticate func(models.SessionRequest) (*http.Cookie, error) + Cookie func() (*http.Cookie, error) + func NewSessionCookieAuthenticator(config *orm.Config, store CookieStore) CookieAuthenticator + type CookieStore interface + Retrieve func() (*http.Cookie, error) + Save func(cookie *http.Cookie) error + type DiskCookieStore struct + Config *orm.Config + func (d DiskCookieStore) Retrieve() (*http.Cookie, error) + func (d DiskCookieStore) Save(cookie *http.Cookie) error + type HTTPClient interface + Delete func(string) (*http.Response, error) + Get func(string, ...map[string]string) (*http.Response, error) + Patch func(string, io.Reader, ...map[string]string) (*http.Response, error) + Post func(string, io.Reader) (*http.Response, error) + Put func(string, io.Reader) (*http.Response, error) + func NewAuthenticatedHTTPClient(config orm.ConfigReader, cookieAuth CookieAuthenticator, ...) HTTPClient + type JAID struct + ID string + func NewJAID(id string) JAID + func (jaid *JAID) SetID(value string) error + func (jaid JAID) GetID() string + type JobPresenter struct + func (j JobPresenter) FriendlyCreatedAt() string + func (j JobPresenter) FriendlyTasks() []string + func (j JobPresenter) GetTasks() ([]string, error) + func (j JobPresenter) ToRows() [][]string + type KeyStoreAuthenticator interface + Authenticate func(*store.Store, string) (string, error) + AuthenticateOCRKey func(store *store.Store, password string) error + AuthenticateVRFKey func(*store.Store, string) error + type MemoryCookieStore struct + Cookie *http.Cookie + func (m *MemoryCookieStore) Retrieve() (*http.Cookie, error) + func (m *MemoryCookieStore) Save(cookie *http.Cookie) error + type OCRKeyBundlePresenter struct + func (p *OCRKeyBundlePresenter) RenderTable(rt RendererTable) error + func (p *OCRKeyBundlePresenter) ToRow() []string + type OCRKeyBundlePresenters []OCRKeyBundlePresenter + func (ps OCRKeyBundlePresenters) RenderTable(rt RendererTable) error + type P2PKeyPresenter struct + type PasswordPrompter interface + Prompt func() string + func NewPasswordPrompter() PasswordPrompter + type Prompter interface + IsTerminal func() bool + PasswordPrompt func(string) string + Prompt func(string) string + func NewTerminalPrompter() Prompter + type Renderer interface + Render func(interface{}, ...string) error + type RendererJSON struct + func (rj RendererJSON) Render(v interface{}, _ ...string) error + type RendererTable struct + func (rt RendererTable) Render(v interface{}, headers ...string) error + type Runner interface + Run func(adamoracle.Application) error + type SessionCookieAuthenticator struct + func (t *SessionCookieAuthenticator) Authenticate(sessionRequest models.SessionRequest) (*http.Cookie, error) + func (t *SessionCookieAuthenticator) Cookie() (*http.Cookie, error) + type SessionRequestBuilder interface + Build func(flag string) (models.SessionRequest, error) + func NewFileSessionRequestBuilder() SessionRequestBuilder + func NewPromptingSessionRequestBuilder(prompter Prompter) SessionRequestBuilder + type TableRenderer interface + RenderTable func(rt RendererTable) error + type TerminalKeyStoreAuthenticator struct + Prompter Prompter + func (auth TerminalKeyStoreAuthenticator) Authenticate(store *store.Store, password string) (string, error) + func (auth TerminalKeyStoreAuthenticator) AuthenticateOCRKey(store *store.Store, password string) error + func (auth TerminalKeyStoreAuthenticator) AuthenticateVRFKey(store *store.Store, password string) error + type VRFKeyPresenter struct + Compressed string + CreatedAt *time.Time + DeletedAt *time.Time + Hash string + Uncompressed string + UpdatedAt *time.Time + func (p VRFKeyPresenter) FriendlyCreatedAt() string + func (p VRFKeyPresenter) FriendlyDeletedAt() string + func (p VRFKeyPresenter) FriendlyUpdatedAt() string