Documentation ¶
Index ¶
- Constants
- Variables
- func FindSessionCookie(cookies []*http.Cookie) *http.Cookie
- func GzipFileServer(root ServeFileSystem, lggr logger.Logger) http.Handler
- func NewJSONAPIResponse(resource interface{}) ([]byte, error)
- func NewPaginatedResponse(url url.URL, size, page, count int, resource interface{}) ([]byte, error)
- func NewRouter(app chainlink.Application, prometheus *ginprom.Prometheus) (*gin.Engine, error)
- func ParseJSONAPIResponse(input []byte, resource interface{}) error
- func ParsePaginatedRequest(sizeParam, pageParam string) (int, int, int, error)
- func ParsePaginatedResponse(input []byte, resource interface{}, links *jsonapi.Links) error
- func Router(t testing.TB, app chainlink.Application, prometheus *ginprom.Prometheus) *gin.Engine
- func ServeGzippedAssets(urlPrefix string, fs ServeFileSystem, lggr logger.Logger) gin.HandlerFunc
- func ValidateBridgeType(bt *bridges.BridgeTypeRequest) error
- func ValidateBridgeTypeNotExist(bt *bridges.BridgeTypeRequest, orm bridges.ORM) error
- func ValidateEthBalanceForTransfer(c *gin.Context, chain evm.Chain, fromAddr common.Address, amount assets.Eth) error
- func ValidateExternalInitiator(exi *bridges.ExternalInitiatorRequest, orm bridges.ORM) error
- type BridgeTypesController
- func (btc *BridgeTypesController) Create(c *gin.Context)
- func (btc *BridgeTypesController) Destroy(c *gin.Context)
- func (btc *BridgeTypesController) Index(c *gin.Context, size, page, offset int)
- func (btc *BridgeTypesController) Show(c *gin.Context)
- func (btc *BridgeTypesController) Update(c *gin.Context)
- type BuildInfoController
- type CSAKeysController
- type ChainsController
- type Change
- type ConfigController
- type ConfigPatchResponse
- type ConfigV2Resource
- type CreateChainRequest
- type CreateJobRequest
- type ETHKeysController
- func (ekc *ETHKeysController) Chain(c *gin.Context)
- func (ekc *ETHKeysController) Create(c *gin.Context)
- func (ekc *ETHKeysController) Delete(c *gin.Context)
- func (ekc *ETHKeysController) Export(c *gin.Context)
- func (ekc *ETHKeysController) Import(c *gin.Context)
- func (ekc *ETHKeysController) Index(c *gin.Context)
- func (ekc *ETHKeysController) Update(c *gin.Context)
- type EVMForwardersController
- type EVMTransfersController
- type EmbedFileSystem
- type ExternalInitiatorsController
- type FeaturesController
- type HealthController
- type JobsController
- type KeysController
- func NewDKGEncryptKeysController(app chainlink.Application) KeysController
- func NewDKGSignKeysController(app chainlink.Application) KeysController
- func NewKeysController[K keystore.Key, R jsonapi.EntityNamer](ks Keystore[K], lggr logger.Logger, auditLogger audit.AuditLogger, ...) KeysController
- func NewSolanaKeysController(app chainlink.Application) KeysController
- func NewStarkNetKeysController(app chainlink.Application) KeysController
- func NewTerraKeysController(app chainlink.Application) KeysController
- type Keystore
- type LogController
- type LogPatchRequest
- type NodesController
- type OCR2KeysController
- type OCRKeysController
- type P2PKeysController
- type PingController
- type PipelineJobSpecErrorsController
- type PipelineRunsController
- type ReplayController
- type ReplayResponse
- type SecurityConfig
- type ServeFileSystem
- type Session
- type SessionsController
- type SolanaTransfersController
- type TerraTransfersController
- type TrackEVMForwarderRequest
- type TransactionsController
- type TxAttemptsController
- type UpdateChainRequest
- type UpdateJobRequest
- type UpdatePasswordRequest
- type UserController
- func (c *UserController) Create(ctx *gin.Context)
- func (c *UserController) Delete(ctx *gin.Context)
- func (c *UserController) DeleteAPIToken(ctx *gin.Context)
- func (c *UserController) Index(ctx *gin.Context)
- func (c *UserController) NewAPIToken(ctx *gin.Context)
- func (c *UserController) UpdatePassword(ctx *gin.Context)
- func (c *UserController) UpdateRole(ctx *gin.Context)
- type VRFKeysController
- type WebAuthnController
Constants ¶
const ( // PaginationDefault is the number of records to supply from a paginated // request when no size param is supplied. PaginationDefault = 25 // MediaType is the response header for JSONAPI documents. MediaType = "application/vnd.api+json" // KeyNextLink is the name of the key that contains the HREF for the next // document in a paginated response. KeyNextLink = "next" // KeyPreviousLink is the name of the key that contains the HREF for the // previous document in a paginated response. KeyPreviousLink = "prev" )
const ( FeatureKeyCSA string = "csa" FeatureKeyFeedsManager string = "feeds_manager" )
Variables ¶
var ( ErrMissingChainID = errors.New("evmChainID does not match any local chains") ErrInvalidChainID = errors.New("invalid evmChainID") ErrMultipleChains = errors.New("more than one chain available, you must specify evmChainID parameter") )
var ErrEVMNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}
var ErrSolanaNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}
ErrSolanaNotEnabled is returned when SOLANA_ENABLED is not true.
var ErrStarkNetNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}
ErrStarkNetNotEnabled is returned when STARKNET_ENABLED is not true.
var ErrTerraNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}
ErrTerraNotEnabled is returned when TERRA_ENABLED is not true.
Functions ¶
func FindSessionCookie ¶ added in v0.8.2
FindSessionCookie returns the cookie with the "clsession" name
func GzipFileServer ¶ added in v0.10.6
func GzipFileServer(root ServeFileSystem, lggr logger.Logger) http.Handler
GzipFileServer is a drop-in replacement for Go's standard http.FileServer which adds support for static resources precompressed with gzip, at the cost of removing the support for directory browsing.
func NewJSONAPIResponse ¶
NewJSONAPIResponse returns a JSONAPI response for a single resource.
func NewPaginatedResponse ¶
NewPaginatedResponse returns a jsonapi.Document with links to next and previous collection pages
func NewRouter ¶ added in v1.11.0
func NewRouter(app chainlink.Application, prometheus *ginprom.Prometheus) (*gin.Engine, error)
NewRouter returns *gin.Engine router that listens and responds to requests to the node for valid paths.
func ParseJSONAPIResponse ¶
ParseJSONAPIResponse parses the bytes of the root document and unmarshals it into the given resource.
func ParsePaginatedRequest ¶
ParsePaginatedRequest parses the parameters that control pagination for a collection request, returning the size and offset if specified, or a sensible default.
func ParsePaginatedResponse ¶
ParsePaginatedResponse parse a JSONAPI response for a document with links
func Router ¶
func Router(t testing.TB, app chainlink.Application, prometheus *ginprom.Prometheus) *gin.Engine
func ServeGzippedAssets ¶ added in v0.10.6
func ServeGzippedAssets(urlPrefix string, fs ServeFileSystem, lggr logger.Logger) gin.HandlerFunc
ServeGzippedAssets returns a middleware handler that serves static files in the given directory.
func ValidateBridgeType ¶ added in v1.1.0
func ValidateBridgeType(bt *bridges.BridgeTypeRequest) error
ValidateBridgeType checks that the bridge type has the required field with valid values.
func ValidateBridgeTypeNotExist ¶ added in v1.1.0
func ValidateBridgeTypeNotExist(bt *bridges.BridgeTypeRequest, orm bridges.ORM) error
ValidateBridgeTypeNotExist checks that a bridge has not already been created
func ValidateEthBalanceForTransfer ¶ added in v1.2.0
func ValidateEthBalanceForTransfer(c *gin.Context, chain evm.Chain, fromAddr common.Address, amount assets.Eth) error
ValidateEthBalanceForTransfer validates that the current balance can cover the transaction amount
func ValidateExternalInitiator ¶ added in v1.1.0
func ValidateExternalInitiator( exi *bridges.ExternalInitiatorRequest, orm bridges.ORM, ) error
ValidateExternalInitiator checks whether External Initiator parameters are safe for processing.
Types ¶
type BridgeTypesController ¶
type BridgeTypesController struct {
App chainlink.Application
}
BridgeTypesController manages BridgeType requests in the node.
func (*BridgeTypesController) Create ¶
func (btc *BridgeTypesController) Create(c *gin.Context)
Create adds the BridgeType to the given context.
func (*BridgeTypesController) Destroy ¶
func (btc *BridgeTypesController) Destroy(c *gin.Context)
Destroy removes a specific Bridge.
func (*BridgeTypesController) Index ¶
func (btc *BridgeTypesController) Index(c *gin.Context, size, page, offset int)
Index lists Bridges, one page at a time.
func (*BridgeTypesController) Show ¶
func (btc *BridgeTypesController) Show(c *gin.Context)
Show returns the details of a specific Bridge.
func (*BridgeTypesController) Update ¶
func (btc *BridgeTypesController) Update(c *gin.Context)
Update can change the restricted attributes for a bridge
type BuildInfoController ¶ added in v1.3.0
type BuildInfoController struct {
App chainlink.Application
}
BuildVersonController has the build_info endpoint.
func (*BuildInfoController) Show ¶ added in v1.3.0
func (eic *BuildInfoController) Show(c *gin.Context)
Show returns the build info.
type CSAKeysController ¶ added in v0.10.8
type CSAKeysController struct {
App chainlink.Application
}
CSAKeysController manages CSA keys
func (*CSAKeysController) Create ¶ added in v0.10.8
func (ctrl *CSAKeysController) Create(c *gin.Context)
Create and return a CSA key Example: "POST <application>/keys/csa"
func (*CSAKeysController) Export ¶ added in v1.0.0
func (ctrl *CSAKeysController) Export(c *gin.Context)
Export exports a key
func (*CSAKeysController) Import ¶ added in v1.1.0
func (ctrl *CSAKeysController) Import(c *gin.Context)
Import imports a CSA key
func (*CSAKeysController) Index ¶ added in v0.10.8
func (ctrl *CSAKeysController) Index(c *gin.Context)
Index lists CSA keys Example: "GET <application>/keys/csa"
type ChainsController ¶ added in v1.0.0
type ChainsController interface { // Index lists chains. Index(c *gin.Context, size, page, offset int) // Create adds a new chain from a CreateChainRequest. Create(*gin.Context) // Show gets a chain by id. Show(*gin.Context) // Update configures an existing chain from an UpdateChainRequest. Update(*gin.Context) // Delete removes a chain. Delete(*gin.Context) }
func NewEVMChainsController ¶ added in v1.5.0
func NewEVMChainsController(app chainlink.Application) ChainsController
func NewSolanaChainsController ¶ added in v1.5.0
func NewSolanaChainsController(app chainlink.Application) ChainsController
func NewStarkNetChainsController ¶ added in v1.7.0
func NewStarkNetChainsController(app chainlink.Application) ChainsController
func NewTerraChainsController ¶ added in v1.5.0
func NewTerraChainsController(app chainlink.Application) ChainsController
type Change ¶ added in v0.6.6
Change represents the old value and the new value after a PATH request has been made
type ConfigController ¶
type ConfigController struct {
App chainlink.Application
}
ConfigController manages config variables
func (*ConfigController) Dump ¶ added in v1.6.0
func (cc *ConfigController) Dump(c *gin.Context)
func (*ConfigController) Patch ¶ added in v0.6.6
func (cc *ConfigController) Patch(c *gin.Context)
Patch updates one or more configuration options
func (*ConfigController) Show ¶
func (cc *ConfigController) Show(c *gin.Context)
Show returns the whitelist of config variables Example:
"<application>/config"
func (*ConfigController) Show2 ¶ added in v1.11.0
func (cc *ConfigController) Show2(c *gin.Context)
type ConfigPatchResponse ¶ added in v0.6.6
type ConfigPatchResponse struct { EvmGasPriceDefault Change `json:"ethGasPriceDefault"` EVMChainID *utils.Big `json:"evmChainID"` }
ConfigPatchResponse represents the change to the configuration made due to a PATCH to the config endpoint
func (ConfigPatchResponse) GetID ¶ added in v0.6.6
func (c ConfigPatchResponse) GetID() string
GetID returns the jsonapi ID.
func (*ConfigPatchResponse) SetID ¶ added in v0.6.6
func (*ConfigPatchResponse) SetID(string) error
SetID is used to conform to the UnmarshallIdentifier interface for deserializing from jsonapi documents.
type ConfigV2Resource ¶ added in v1.7.0
type ConfigV2Resource struct {
Config string `json:"config"`
}
func (ConfigV2Resource) GetID ¶ added in v1.7.0
func (c ConfigV2Resource) GetID() string
func (*ConfigV2Resource) SetID ¶ added in v1.7.0
func (c *ConfigV2Resource) SetID(string) error
type CreateChainRequest ¶ added in v1.0.0
type CreateChainRequest[I chains.ID, C chains.Config] struct { ID I `json:"chainID"` Config C `json:"config"` }
func NewCreateChainRequest ¶ added in v1.5.0
func NewCreateChainRequest[I chains.ID, C chains.Config](id I, config C) CreateChainRequest[I, C]
type CreateJobRequest ¶ added in v0.10.6
type CreateJobRequest struct {
TOML string `json:"toml"`
}
CreateJobRequest represents a request to create and start a job (V2).
type ETHKeysController ¶ added in v0.9.9
type ETHKeysController struct {
// contains filtered or unexported fields
}
ETHKeysController manages account keys
func NewETHKeysController ¶ added in v1.11.0
func NewETHKeysController(app chainlink.Application) *ETHKeysController
func (*ETHKeysController) Chain ¶ added in v1.8.0
func (ekc *ETHKeysController) Chain(c *gin.Context)
Chain updates settings for a given chain for the key
func (*ETHKeysController) Create ¶ added in v0.9.9
func (ekc *ETHKeysController) Create(c *gin.Context)
Create adds a new account Example:
"<application>/keys/eth"
func (*ETHKeysController) Delete ¶ added in v0.9.9
func (ekc *ETHKeysController) Delete(c *gin.Context)
Delete an ETH key bundle Example: "DELETE <application>/keys/eth/:keyID" "DELETE <application>/keys/eth/:keyID?hard=true"
func (*ETHKeysController) Export ¶ added in v0.9.9
func (ekc *ETHKeysController) Export(c *gin.Context)
func (*ETHKeysController) Import ¶ added in v0.9.9
func (ekc *ETHKeysController) Import(c *gin.Context)
Import imports a key
func (*ETHKeysController) Index ¶ added in v0.9.9
func (ekc *ETHKeysController) Index(c *gin.Context)
Index returns the node's Ethereum keys and the account balances of ETH & LINK. Example:
"<application>/keys/eth"
func (*ETHKeysController) Update ¶ added in v1.1.0
func (ekc *ETHKeysController) Update(c *gin.Context)
Update an ETH key's parameters Example: "PUT <application>/keys/eth/:keyID?maxGasPriceGWei=12345"
type EVMForwardersController ¶ added in v1.3.0
type EVMForwardersController struct {
App chainlink.Application
}
EVMForwardersController manages EVM forwarders.
func (*EVMForwardersController) Delete ¶ added in v1.3.0
func (cc *EVMForwardersController) Delete(c *gin.Context)
Delete removes an EVM Forwarder.
func (*EVMForwardersController) Index ¶ added in v1.3.0
func (cc *EVMForwardersController) Index(c *gin.Context, size, page, offset int)
Index lists EVM forwarders.
func (*EVMForwardersController) Track ¶ added in v1.8.0
func (cc *EVMForwardersController) Track(c *gin.Context)
Track adds a new EVM forwarder.
type EVMTransfersController ¶ added in v1.3.0
type EVMTransfersController struct {
App chainlink.Application
}
EVMTransfersController can send LINK tokens to another address
func (*EVMTransfersController) Create ¶ added in v1.3.0
func (tc *EVMTransfersController) Create(c *gin.Context)
Create sends ETH from the Chainlink's account to a specified address.
Example: "<application>/withdrawals"
type EmbedFileSystem ¶ added in v1.1.0
type EmbedFileSystem struct { embed.FS http.FileSystem // contains filtered or unexported fields }
EmbedFileSystem implements the ServeFileSystem interface using an embed.FS object.
type ExternalInitiatorsController ¶
type ExternalInitiatorsController struct {
App chainlink.Application
}
ExternalInitiatorsController manages external initiators
func (*ExternalInitiatorsController) Create ¶
func (eic *ExternalInitiatorsController) Create(c *gin.Context)
Create builds and saves a new external initiator
func (*ExternalInitiatorsController) Destroy ¶
func (eic *ExternalInitiatorsController) Destroy(c *gin.Context)
Destroy deletes an ExternalInitiator
type FeaturesController ¶ added in v1.0.0
type FeaturesController struct {
App chainlink.Application
}
FeaturesController manages the feature flags
func (*FeaturesController) Index ¶ added in v1.0.0
func (fc *FeaturesController) Index(c *gin.Context)
Index retrieves the features Example: "GET <application>/features"
type HealthController ¶ added in v0.10.8
type HealthController struct {
App chainlink.Application
}
func (*HealthController) Health ¶ added in v0.10.8
func (hc *HealthController) Health(c *gin.Context)
func (*HealthController) Readyz ¶ added in v0.10.8
func (hc *HealthController) Readyz(c *gin.Context)
NOTE: We only implement the k8s readiness check, *not* the liveness check. Liveness checks are only recommended in cases where the app doesn't crash itself on panic, and if implemented incorrectly can cause cascading failures. See the following for more information: - https://srcco.de/posts/kubernetes-liveness-probes-are-dangerous.html
type JobsController ¶ added in v0.9.7
type JobsController struct {
App chainlink.Application
}
JobsController manages jobs
func (*JobsController) Create ¶ added in v0.9.7
func (jc *JobsController) Create(c *gin.Context)
Create validates, saves and starts a new job. Example: "POST <application>/jobs"
func (*JobsController) Delete ¶ added in v0.9.7
func (jc *JobsController) Delete(c *gin.Context)
Delete hard deletes a job spec. Example: "DELETE <application>/specs/:ID"
func (*JobsController) Index ¶ added in v0.9.7
func (jc *JobsController) Index(c *gin.Context, size, page, offset int)
Index lists all jobs Example: "GET <application>/jobs"
func (*JobsController) Show ¶ added in v0.9.7
func (jc *JobsController) Show(c *gin.Context)
Show returns the details of a job :ID could be both job ID and external job ID Example: "GET <application>/jobs/:ID"
func (*JobsController) Update ¶ added in v1.10.0
func (jc *JobsController) Update(c *gin.Context)
Update validates a new TOML for an existing job, stops and deletes existing job, saves and starts a new job. Example: "PUT <application>/jobs/:ID"
type KeysController ¶
type KeysController interface { // Index lists keys Index(*gin.Context) // Create and return a key Create(*gin.Context) // Delete a key Delete(*gin.Context) // Import imports a key Import(*gin.Context) // Export exports a key Export(*gin.Context) }
func NewDKGEncryptKeysController ¶ added in v1.7.0
func NewDKGEncryptKeysController(app chainlink.Application) KeysController
func NewDKGSignKeysController ¶ added in v1.6.0
func NewDKGSignKeysController(app chainlink.Application) KeysController
func NewKeysController ¶ added in v1.5.0
func NewKeysController[K keystore.Key, R jsonapi.EntityNamer](ks Keystore[K], lggr logger.Logger, auditLogger audit.AuditLogger, resourceName string, newResource func(K) *R, newResources func([]K) []R) KeysController
func NewSolanaKeysController ¶ added in v1.5.0
func NewSolanaKeysController(app chainlink.Application) KeysController
func NewStarkNetKeysController ¶ added in v1.6.0
func NewStarkNetKeysController(app chainlink.Application) KeysController
func NewTerraKeysController ¶ added in v1.5.0
func NewTerraKeysController(app chainlink.Application) KeysController
type LogController ¶ added in v0.10.4
type LogController struct {
App chainlink.Application
}
LogController manages the logger config
func (*LogController) Get ¶ added in v0.10.4
func (cc *LogController) Get(c *gin.Context)
Get retrieves the current log config settings
func (*LogController) Patch ¶ added in v0.10.4
func (cc *LogController) Patch(c *gin.Context)
Patch sets a log level and enables sql logging for the logger
type LogPatchRequest ¶ added in v0.10.4
type NodesController ¶ added in v1.0.0
type NodesController interface { // Index lists nodes, and optionally filters by chain id. Index(c *gin.Context, size, page, offset int) // Create adds a new node. Create(*gin.Context) // Delete removes a node. Delete(*gin.Context) }
func NewEVMNodesController ¶ added in v1.5.0
func NewEVMNodesController(app chainlink.Application) NodesController
func NewSolanaNodesController ¶ added in v1.5.0
func NewSolanaNodesController(app chainlink.Application) NodesController
func NewStarkNetNodesController ¶ added in v1.7.0
func NewStarkNetNodesController(app chainlink.Application) NodesController
func NewTerraNodesController ¶ added in v1.5.0
func NewTerraNodesController(app chainlink.Application) NodesController
type OCR2KeysController ¶ added in v1.2.0
type OCR2KeysController struct {
App chainlink.Application
}
OCRKeysController manages OCR key bundles
func (*OCR2KeysController) Create ¶ added in v1.2.0
func (ocr2kc *OCR2KeysController) Create(c *gin.Context)
Create and return an OCR2 key bundle Example: "POST <application>/keys/ocr"
func (*OCR2KeysController) Delete ¶ added in v1.2.0
func (ocr2kc *OCR2KeysController) Delete(c *gin.Context)
Delete an OCR2 key bundle Example: "DELETE <application>/keys/ocr/:keyID"
func (*OCR2KeysController) Export ¶ added in v1.2.0
func (ocr2kc *OCR2KeysController) Export(c *gin.Context)
Export exports an OCR2 key bundle Example: "Post <application>/keys/ocr/export"
func (*OCR2KeysController) Import ¶ added in v1.2.0
func (ocr2kc *OCR2KeysController) Import(c *gin.Context)
Import imports an OCR2 key bundle Example: "Post <application>/keys/ocr/import"
func (*OCR2KeysController) Index ¶ added in v1.2.0
func (ocr2kc *OCR2KeysController) Index(c *gin.Context)
Index lists OCR2 key bundles Example: "GET <application>/keys/ocr"
type OCRKeysController ¶ added in v0.9.9
type OCRKeysController struct {
App chainlink.Application
}
OCRKeysController manages OCR key bundles
func (*OCRKeysController) Create ¶ added in v0.9.9
func (ocrkc *OCRKeysController) Create(c *gin.Context)
Create and return an OCR key bundle Example: "POST <application>/keys/ocr"
func (*OCRKeysController) Delete ¶ added in v0.9.9
func (ocrkc *OCRKeysController) Delete(c *gin.Context)
Delete an OCR key bundle Example: "DELETE <application>/keys/ocr/:keyID" "DELETE <application>/keys/ocr/:keyID?hard=true"
func (*OCRKeysController) Export ¶ added in v0.9.9
func (ocrkc *OCRKeysController) Export(c *gin.Context)
Export exports an OCR key bundle Example: "Post <application>/keys/ocr/export"
func (*OCRKeysController) Import ¶ added in v0.9.9
func (ocrkc *OCRKeysController) Import(c *gin.Context)
Import imports an OCR key bundle Example: "Post <application>/keys/ocr/import"
func (*OCRKeysController) Index ¶ added in v0.9.9
func (ocrkc *OCRKeysController) Index(c *gin.Context)
Index lists OCR key bundles Example: "GET <application>/keys/ocr"
type P2PKeysController ¶ added in v0.9.3
type P2PKeysController struct {
App chainlink.Application
}
P2PKeysController manages P2P keys
func (*P2PKeysController) Create ¶ added in v0.9.3
func (p2pkc *P2PKeysController) Create(c *gin.Context)
Create and return a P2P key Example: "POST <application>/keys/p2p"
func (*P2PKeysController) Delete ¶ added in v0.9.3
func (p2pkc *P2PKeysController) Delete(c *gin.Context)
Delete a P2P key Example: "DELETE <application>/keys/p2p/:keyID" "DELETE <application>/keys/p2p/:keyID?hard=true"
func (*P2PKeysController) Export ¶ added in v0.9.9
func (p2pkc *P2PKeysController) Export(c *gin.Context)
Export exports a P2P key Example: "Post <application>/keys/p2p/export"
func (*P2PKeysController) Import ¶ added in v0.9.9
func (p2pkc *P2PKeysController) Import(c *gin.Context)
Import imports a P2P key Example: "Post <application>/keys/p2p/import"
func (*P2PKeysController) Index ¶ added in v0.9.3
func (p2pkc *P2PKeysController) Index(c *gin.Context)
Index lists P2P keys Example: "GET <application>/keys/p2p"
type PingController ¶ added in v0.6.6
type PingController struct {
App chainlink.Application
}
PingController has the ping endpoint.
func (*PingController) Show ¶ added in v0.6.6
func (eic *PingController) Show(c *gin.Context)
Show returns pong.
type PipelineJobSpecErrorsController ¶ added in v0.10.11
type PipelineJobSpecErrorsController struct {
App chainlink.Application
}
PipelineJobSpecErrorsController manages PipelineJobSpecError requests
func (*PipelineJobSpecErrorsController) Destroy ¶ added in v0.10.11
func (psec *PipelineJobSpecErrorsController) Destroy(c *gin.Context)
Destroy deletes a PipelineJobSpecError record from the database, effectively silencing the error notification
type PipelineRunsController ¶ added in v0.9.7
type PipelineRunsController struct {
App chainlink.Application
}
PipelineRunsController manages V2 job run requests.
func (*PipelineRunsController) Create ¶ added in v0.9.7
func (prc *PipelineRunsController) Create(c *gin.Context)
Create triggers a pipeline run for a job. Example: "POST <application>/jobs/:ID/runs"
func (*PipelineRunsController) Index ¶ added in v0.9.7
func (prc *PipelineRunsController) Index(c *gin.Context, size, page, offset int)
Index returns all pipeline runs for a job. Example: "GET <application>/jobs/:ID/runs"
func (*PipelineRunsController) Resume ¶ added in v0.10.10
func (prc *PipelineRunsController) Resume(c *gin.Context)
Resume finishes a task and resumes the pipeline run. Example: "PATCH <application>/jobs/:ID/runs/:runID"
func (*PipelineRunsController) Show ¶ added in v0.9.7
func (prc *PipelineRunsController) Show(c *gin.Context)
Show returns a specified pipeline run. Example: "GET <application>/jobs/:ID/runs/:runID"
type ReplayController ¶ added in v0.10.11
type ReplayController struct {
App chainlink.Application
}
func (*ReplayController) ReplayFromBlock ¶ added in v0.10.11
func (bdc *ReplayController) ReplayFromBlock(c *gin.Context)
ReplayFromBlock causes the node to process blocks again from the given block number Example:
"<application>/v2/replay_from_block/:number"
type ReplayResponse ¶ added in v0.10.11
type ReplayResponse struct { Message string `json:"message"` EVMChainID *utils.Big `json:"evmChainID"` }
func (ReplayResponse) GetID ¶ added in v0.10.11
func (s ReplayResponse) GetID() string
GetID returns the jsonapi ID.
func (ReplayResponse) GetName ¶ added in v0.10.11
func (ReplayResponse) GetName() string
GetName returns the collection name for jsonapi.
func (*ReplayResponse) SetID ¶ added in v0.10.11
func (*ReplayResponse) SetID(string) error
SetID is used to conform to the UnmarshallIdentifier interface for deserializing from jsonapi documents.
type SecurityConfig ¶ added in v1.10.0
type ServeFileSystem ¶ added in v0.10.6
type ServeFileSystem interface { http.FileSystem Exists(prefix string, path string) bool }
ServeFileSystem wraps a http.FileSystem with an additional file existence check
func NewEmbedFileSystem ¶ added in v1.1.0
func NewEmbedFileSystem(efs embed.FS, pathPrefix string) ServeFileSystem
type Session ¶
type Session struct {
Authenticated bool `json:"authenticated"`
}
type SessionsController ¶
type SessionsController struct { App chainlink.Application // contains filtered or unexported fields }
SessionsController manages session requests.
func NewSessionsController ¶ added in v1.1.0
func NewSessionsController(app chainlink.Application) *SessionsController
func (*SessionsController) Create ¶
func (sc *SessionsController) Create(c *gin.Context)
Create creates a session ID for the given user credentials, and returns it in a cookie.
func (*SessionsController) Destroy ¶
func (sc *SessionsController) Destroy(c *gin.Context)
Destroy removes the specified session ID from the database.
type SolanaTransfersController ¶ added in v1.4.0
type SolanaTransfersController struct {
App chainlink.Application
}
SolanaTransfersController can send LINK tokens to another address
func (*SolanaTransfersController) Create ¶ added in v1.4.0
func (tc *SolanaTransfersController) Create(c *gin.Context)
Create sends Luna and other native coins from the Chainlink's account to a specified address.
type TerraTransfersController ¶ added in v1.3.0
type TerraTransfersController struct {
App chainlink.Application
}
TerraTransfersController can send LINK tokens to another address
func (*TerraTransfersController) Create ¶ added in v1.3.0
func (tc *TerraTransfersController) Create(c *gin.Context)
Create sends Luna and other native coins from the Chainlink's account to a specified address.
type TrackEVMForwarderRequest ¶ added in v1.8.0
type TrackEVMForwarderRequest struct { EVMChainID *utils.Big `json:"chainID"` Address common.Address `json:"address"` }
TrackEVMForwarderRequest is a JSONAPI request for creating an EVM forwarder.
type TransactionsController ¶
type TransactionsController struct {
App chainlink.Application
}
TransactionsController displays Ethereum transactions requests.
func (*TransactionsController) Index ¶
func (tc *TransactionsController) Index(c *gin.Context, size, page, offset int)
Index returns paginated transactions
func (*TransactionsController) Show ¶
func (tc *TransactionsController) Show(c *gin.Context)
Show returns the details of a Ethereum Transaction details. Example:
"<application>/transactions/:TxHash"
type TxAttemptsController ¶
type TxAttemptsController struct {
App chainlink.Application
}
TxAttemptsController lists TxAttempts requests.
type UpdateChainRequest ¶ added in v1.1.0
type UpdateJobRequest ¶ added in v1.10.0
type UpdateJobRequest struct {
TOML string `json:"toml"`
}
UpdateJobRequest represents a request to update a job with new toml and start a job (V2).
type UpdatePasswordRequest ¶ added in v0.10.5
type UpdatePasswordRequest struct { OldPassword string `json:"oldPassword"` NewPassword string `json:"newPassword"` }
UpdatePasswordRequest defines the request to set a new password for the current session's User.
type UserController ¶
type UserController struct {
App chainlink.Application
}
UserController manages the current Session's User.
func (*UserController) Create ¶ added in v1.7.0
func (c *UserController) Create(ctx *gin.Context)
Create creates a new API user with provided context arguments.
func (*UserController) Delete ¶ added in v1.7.0
func (c *UserController) Delete(ctx *gin.Context)
Delete deletes an API user and any sessions by email
func (*UserController) DeleteAPIToken ¶ added in v0.8.2
func (c *UserController) DeleteAPIToken(ctx *gin.Context)
DeleteAPIToken deletes and disables a user's API token.
func (*UserController) Index ¶ added in v1.7.0
func (c *UserController) Index(ctx *gin.Context)
Index lists all API users
func (*UserController) NewAPIToken ¶ added in v0.8.2
func (c *UserController) NewAPIToken(ctx *gin.Context)
NewAPIToken generates a new API token for a user overwriting any pre-existing one set.
func (*UserController) UpdatePassword ¶
func (c *UserController) UpdatePassword(ctx *gin.Context)
UpdatePassword changes the password for the current User.
func (*UserController) UpdateRole ¶ added in v1.8.0
func (c *UserController) UpdateRole(ctx *gin.Context)
UpdateRole changes role field of a specified API user.
type VRFKeysController ¶ added in v0.10.9
type VRFKeysController struct {
App chainlink.Application
}
VRFKeysController manages VRF keys
func (*VRFKeysController) Create ¶ added in v0.10.9
func (vrfkc *VRFKeysController) Create(c *gin.Context)
Create and return a VRF key Example: "POST <application>/keys/vrf"
func (*VRFKeysController) Delete ¶ added in v0.10.9
func (vrfkc *VRFKeysController) Delete(c *gin.Context)
Delete a VRF key Example: "DELETE <application>/keys/vrf/:keyID" "DELETE <application>/keys/vrf/:keyID?hard=true"
func (*VRFKeysController) Export ¶ added in v0.10.9
func (vrfkc *VRFKeysController) Export(c *gin.Context)
Export exports a VRF key Example: "Post <application>/keys/vrf/export/:keyID"
func (*VRFKeysController) Import ¶ added in v0.10.9
func (vrfkc *VRFKeysController) Import(c *gin.Context)
Import imports a VRF key Example: "Post <application>/keys/vrf/import"
func (*VRFKeysController) Index ¶ added in v0.10.9
func (vrfkc *VRFKeysController) Index(c *gin.Context)
Index lists VRF keys Example: "GET <application>/keys/vrf"
type WebAuthnController ¶ added in v1.1.0
type WebAuthnController struct { App chainlink.Application // contains filtered or unexported fields }
WebAuthnController manages registers new keys as well as authentication with those keys
func NewWebAuthnController ¶ added in v1.1.0
func NewWebAuthnController(app chainlink.Application) WebAuthnController
func (*WebAuthnController) BeginRegistration ¶ added in v1.1.0
func (c *WebAuthnController) BeginRegistration(ctx *gin.Context)
func (*WebAuthnController) FinishRegistration ¶ added in v1.1.0
func (c *WebAuthnController) FinishRegistration(ctx *gin.Context)
Source Files ¶
- api.go
- bridge_types_controller.go
- build_info_controller.go
- chains_controller.go
- common.go
- config_controller.go
- cookies.go
- csa_keys_controller.go
- dkgencrypt_keys_controller.go
- dkgsign_keys_controller.go
- eth_keys_controller.go
- evm_chains_controller.go
- evm_forwarders_controller.go
- evm_nodes_controller.go
- evm_transactions_controller.go
- evm_transfer_controller.go
- evm_tx_attempts_controller.go
- external_initiators_controller.go
- features_controller.go
- health_controller.go
- helpers.go
- jobs_controller.go
- keys_controller.go
- log_controller.go
- middleware.go
- nodes_controller.go
- ocr2_keys_controller.go
- ocr_keys_controller.go
- p2p_keys_controller.go
- ping_controller.go
- pipeline_job_spec_errors_controller.go
- pipeline_runs_controller.go
- replay_controller.go
- router.go
- sessions_controller.go
- solana_chains_controller.go
- solana_keys_controller.go
- solana_nodes_controller.go
- solana_transfer_controller.go
- starknet_chains_controller.go
- starknet_keys_controller.go
- starknet_nodes_controller.go
- terra_chains_controller.go
- terra_keys_controller.go
- terra_nodes_controller.go
- terra_transfer_controller.go
- user_controller.go
- vrf_keys_controller.go
- webauthn_controller.go
Directories ¶
Path | Synopsis |
---|---|
Package schema is used to read schema files go:generate go-bindata -ignore=\.go -pkg=schema -o=bindata.go ./...
|
Package schema is used to read schema files go:generate go-bindata -ignore=\.go -pkg=schema -o=bindata.go ./... |