Documentation ¶
Index ¶
- type AccountReference
- type Action
- type ActionSpec
- type AlertPayload
- type AlertPayloadSummary
- type AlertTrigger
- type BlockPayload
- type BlockPayloadRequest
- type BlockPayloadSummary
- type BlockTrigger
- type Call
- type CallError
- type CallLog
- type CallLogLine
- type CallRequest
- type CallStat
- type CallStats
- type CallStatus
- type CallStatus_Value
- type CallStorageType
- type CallStorageType_Value
- type CallSummary
- type CallType
- type CallType_Value
- type ComparableAny
- type ComparableInt
- type ComparableMap
- type ComparableStr
- type ContractInvocationType
- type ContractInvocationType_Value
- type ContractReference
- type DefaultPayloadRequest
- type DeployRequest
- type DeployResponse
- type DeployStatus
- type DeployStatus_Value
- type EthBalanceFilter
- type EventEmittedFilter
- type ExecutionPayload
- type Filter
- type Function
- type FunctionFilter
- type LogEmittedFilter
- type Payload
- func NewPayloadFromAlert(v AlertPayload) Payload
- func NewPayloadFromBlock(v BlockPayload) Payload
- func NewPayloadFromPeriodic(v PeriodicPayload) Payload
- func NewPayloadFromTransaction(v TransactionPayload) Payload
- func NewPayloadFromTransactionsimple(v TransactionPayload) Payload
- func NewPayloadFromWebhook(v WebhookPayload) Payload
- func (u *Payload) Accept(v PayloadVisitor) error
- func (u *Payload) AcceptWithContext(ctx context.Context, v PayloadVisitorWithContext) error
- func (u Payload) MarshalJSON() ([]byte, error)
- func (u Payload) MarshalYAML() (interface{}, error)
- func (u *Payload) UnmarshalJSON(data []byte) error
- func (u *Payload) UnmarshalYAML(unmarshal func(interface{}) error) error
- type PayloadSummary
- func NewPayloadSummaryFromAlert(v AlertPayloadSummary) PayloadSummary
- func NewPayloadSummaryFromBlock(v BlockPayloadSummary) PayloadSummary
- func NewPayloadSummaryFromPeriodic(v PeriodicPayloadSummary) PayloadSummary
- func NewPayloadSummaryFromTransaction(v TransactionPayloadSummary) PayloadSummary
- func NewPayloadSummaryFromTransactionsimple(v TransactionPayloadSummary) PayloadSummary
- func NewPayloadSummaryFromWebhook(v WebhookPayloadSummary) PayloadSummary
- func (u *PayloadSummary) Accept(v PayloadSummaryVisitor) error
- func (u *PayloadSummary) AcceptWithContext(ctx context.Context, v PayloadSummaryVisitorWithContext) error
- func (u PayloadSummary) MarshalJSON() ([]byte, error)
- func (u PayloadSummary) MarshalYAML() (interface{}, error)
- func (u *PayloadSummary) UnmarshalJSON(data []byte) error
- func (u *PayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
- type PayloadSummaryVisitor
- type PayloadSummaryVisitorWithContext
- type PayloadVisitor
- type PayloadVisitorWithContext
- type PeriodicPayload
- type PeriodicPayloadSummary
- type PeriodicTrigger
- type PublishFileRequest
- type PublishRequest
- type PublishResponse
- type ResumeRequest
- type Runtime
- type Runtime_Value
- type SecretsPayload
- type StateChangedFilter
- type Status
- type Status_Value
- type StopRequest
- type StoragePayload
- type TransactionFilter
- type TransactionLog
- type TransactionPayload
- type TransactionPayloadRequest
- type TransactionPayloadSummary
- type TransactionSimpleTrigger
- type TransactionStatus
- type TransactionStatus_Value
- type TransactionTrigger
- type Trigger
- func NewTriggerFromAlert(v AlertTrigger) Trigger
- func NewTriggerFromBlock(v BlockTrigger) Trigger
- func NewTriggerFromPeriodic(v PeriodicTrigger) Trigger
- func NewTriggerFromTransaction(v TransactionTrigger) Trigger
- func NewTriggerFromTransactionsimple(v TransactionSimpleTrigger) Trigger
- func NewTriggerFromWebhook(v WebhookTrigger) Trigger
- func (u *Trigger) Accept(v TriggerVisitor) error
- func (u *Trigger) AcceptWithContext(ctx context.Context, v TriggerVisitorWithContext) error
- func (u Trigger) MarshalJSON() ([]byte, error)
- func (u Trigger) MarshalYAML() (interface{}, error)
- func (u *Trigger) UnmarshalJSON(data []byte) error
- func (u *Trigger) UnmarshalYAML(unmarshal func(interface{}) error) error
- type TriggerType
- type TriggerType_Value
- type TriggerVisitor
- type TriggerVisitorWithContext
- type ValidateError
- type ValidateFileRequest
- type ValidateRequest
- type ValidateResponse
- type Version
- type WebhookPayload
- type WebhookPayloadSummary
- type WebhookRequest
- type WebhookResponse
- type WebhookTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountReference ¶
type AccountReference struct {
Address string `json:"address"`
}
func (AccountReference) MarshalYAML ¶
func (o AccountReference) MarshalYAML() (interface{}, error)
func (*AccountReference) UnmarshalYAML ¶
func (o *AccountReference) UnmarshalYAML(unmarshal func(interface{}) error) error
type Action ¶
type Action struct { Id string `json:"id"` ProjectId string `json:"projectId"` Name string `json:"name"` Description *string `json:"description"` Status DeployStatus `json:"status"` // True if action trigger is stopped - trigger is ignoring events. // Action will remain stopped even on new publish / deploy until it is resumed. Stopped bool `` /* 173-byte string literal not displayed */ // Version that is considered active for this action. Version Version `json:"version" conjure-docs:"Version that is considered active for this action.\n"` // Used to determine if source can be edited via dashboard UI. // If publish is done through the cli, edit shouldn't be allowed. Editable bool `` /* 156-byte string literal not displayed */ }
func (Action) MarshalYAML ¶
func (*Action) UnmarshalYAML ¶
type ActionSpec ¶
type ActionSpec struct { Name string `json:"name"` Description *string `json:"description"` // Source code, usually just top level file when function is defined. Source *string `json:"source" conjure-docs:"Source code, usually just top level file when function is defined."` Runtime Runtime `json:"runtime"` Function Function `json:"function"` TriggerType TriggerType `json:"triggerType"` Trigger *Trigger `json:"trigger"` InvocationType string `json:"invocationType"` }
Specification of action resource inside project. Resource is defined in either yaml or json format.
func (ActionSpec) MarshalYAML ¶
func (o ActionSpec) MarshalYAML() (interface{}, error)
func (*ActionSpec) UnmarshalYAML ¶
func (o *ActionSpec) UnmarshalYAML(unmarshal func(interface{}) error) error
type AlertPayload ¶
type AlertPayload struct { AlertId string `json:"alertId"` Network string `json:"network"` TransactionHash string `json:"transactionHash"` }
func (AlertPayload) MarshalYAML ¶
func (o AlertPayload) MarshalYAML() (interface{}, error)
func (*AlertPayload) UnmarshalYAML ¶
func (o *AlertPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type AlertPayloadSummary ¶
type AlertPayloadSummary struct { AlertId string `json:"alertId"` Network string `json:"network"` TransactionHash string `json:"transactionHash"` }
func (AlertPayloadSummary) MarshalYAML ¶
func (o AlertPayloadSummary) MarshalYAML() (interface{}, error)
func (*AlertPayloadSummary) UnmarshalYAML ¶
func (o *AlertPayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type AlertTrigger ¶
type AlertTrigger struct { }
func (AlertTrigger) MarshalYAML ¶
func (o AlertTrigger) MarshalYAML() (interface{}, error)
func (*AlertTrigger) UnmarshalYAML ¶
func (o *AlertTrigger) UnmarshalYAML(unmarshal func(interface{}) error) error
type BlockPayload ¶
type BlockPayload struct { Network string `json:"network"` BlockNumber int `json:"blockNumber"` BlockHash string `json:"blockHash"` }
func (BlockPayload) MarshalYAML ¶
func (o BlockPayload) MarshalYAML() (interface{}, error)
func (*BlockPayload) UnmarshalYAML ¶
func (o *BlockPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type BlockPayloadRequest ¶
type BlockPayloadRequest struct { Network string `json:"network"` BlockNumber int `json:"blockNumber"` }
func (BlockPayloadRequest) MarshalYAML ¶
func (o BlockPayloadRequest) MarshalYAML() (interface{}, error)
func (*BlockPayloadRequest) UnmarshalYAML ¶
func (o *BlockPayloadRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type BlockPayloadSummary ¶
type BlockPayloadSummary struct { Network string `json:"network"` BlockNumber int `json:"blockNumber"` BlockHash string `json:"blockHash"` }
func (BlockPayloadSummary) MarshalYAML ¶
func (o BlockPayloadSummary) MarshalYAML() (interface{}, error)
func (*BlockPayloadSummary) UnmarshalYAML ¶
func (o *BlockPayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type BlockTrigger ¶
type BlockTrigger struct { Network []string `json:"network"` // Runs when block number on configured network modulo blocks is zero. Blocks int `json:"blocks" conjure-docs:"Runs when block number on configured network modulo blocks is zero."` }
func (BlockTrigger) MarshalJSON ¶
func (o BlockTrigger) MarshalJSON() ([]byte, error)
func (BlockTrigger) MarshalYAML ¶
func (o BlockTrigger) MarshalYAML() (interface{}, error)
func (*BlockTrigger) UnmarshalJSON ¶
func (o *BlockTrigger) UnmarshalJSON(data []byte) error
func (*BlockTrigger) UnmarshalYAML ¶
func (o *BlockTrigger) UnmarshalYAML(unmarshal func(interface{}) error) error
type Call ¶
type Call struct { Id string `json:"id"` ActionId string `json:"actionId"` VersionId string `json:"versionId"` CreatedAt datetime.DateTime `json:"createdAt"` Type CallType `json:"type"` Status CallStatus `json:"status"` StatusUpdatedAt datetime.DateTime `json:"statusUpdatedAt"` Payload Payload `json:"payload"` StorageType CallStorageType `json:"storageType"` // Id of the storage used during this execution. A storage with id can be browsed just like project storage. StorageId string `` /* 139-byte string literal not displayed */ // Used memory in MBs. Memory *int `json:"memory" conjure-docs:"Used memory in MBs."` // Used time in milliseconds. Time *int `json:"time" conjure-docs:"Used time in milliseconds."` // Parsed logs from executing action. ParsedLogs *CallLog `json:"parsedLogs" conjure-docs:"Parsed logs from executing action."` // Parsed error from executing action. ParsedError *CallError `json:"parsedError" conjure-docs:"Parsed error from executing action."` }
Action invokation result.
func (Call) MarshalYAML ¶
func (*Call) UnmarshalYAML ¶
type CallError ¶
type CallError struct { Name string `json:"name"` Message string `json:"message"` Stacktrace string `json:"stacktrace"` }
Parsed error.
func (CallError) MarshalYAML ¶
func (*CallError) UnmarshalYAML ¶
type CallLog ¶
type CallLog struct {
Lines []CallLogLine `json:"lines"`
}
Parsed logs.
func (CallLog) MarshalJSON ¶
func (CallLog) MarshalYAML ¶
func (*CallLog) UnmarshalJSON ¶
func (*CallLog) UnmarshalYAML ¶
type CallLogLine ¶
type CallLogLine struct { Time datetime.DateTime `json:"time"` Severity string `json:"severity"` Message string `json:"message"` }
func (CallLogLine) MarshalYAML ¶
func (o CallLogLine) MarshalYAML() (interface{}, error)
func (*CallLogLine) UnmarshalYAML ¶
func (o *CallLogLine) UnmarshalYAML(unmarshal func(interface{}) error) error
type CallRequest ¶
type CallRequest struct { Payload Payload `json:"payload"` StorageType CallStorageType `json:"storageType"` }
func (CallRequest) MarshalYAML ¶
func (o CallRequest) MarshalYAML() (interface{}, error)
func (*CallRequest) UnmarshalYAML ¶
func (o *CallRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type CallStat ¶
type CallStat struct { CreatedAt datetime.DateTime `json:"createdAt"` Type CallType `json:"type"` Status CallStatus `json:"status"` }
Basic stats for single call.
func (CallStat) MarshalYAML ¶
func (*CallStat) UnmarshalYAML ¶
type CallStats ¶
type CallStats struct { ActionId string `json:"actionId"` // Returns call status for last 10 calls ordered starting from latest call. Stats []CallStat `json:"stats" conjure-docs:"Returns call status for last 10 calls ordered starting from latest call."` }
Statistics of calls for action.
func (CallStats) MarshalJSON ¶
func (CallStats) MarshalYAML ¶
func (*CallStats) UnmarshalJSON ¶
func (*CallStats) UnmarshalYAML ¶
type CallStatus ¶
type CallStatus struct {
// contains filtered or unexported fields
}
func New_CallStatus ¶
func New_CallStatus(value CallStatus_Value) CallStatus
func (CallStatus) IsUnknown ¶
func (e CallStatus) IsUnknown() bool
IsUnknown returns false for all known variants of CallStatus and true otherwise.
func (CallStatus) MarshalText ¶
func (e CallStatus) MarshalText() ([]byte, error)
func (CallStatus) String ¶
func (e CallStatus) String() string
func (*CallStatus) UnmarshalText ¶
func (e *CallStatus) UnmarshalText(data []byte) error
func (CallStatus) Value ¶
func (e CallStatus) Value() CallStatus_Value
type CallStatus_Value ¶
type CallStatus_Value string
const ( CallStatus_SUBMITTED CallStatus_Value = "SUBMITTED" CallStatus_SUCCEEDED CallStatus_Value = "SUCCEEDED" CallStatus_FAILED CallStatus_Value = "FAILED" CallStatus_UNKNOWN CallStatus_Value = "UNKNOWN" )
func CallStatus_Values ¶
func CallStatus_Values() []CallStatus_Value
CallStatus_Values returns all known variants of CallStatus.
type CallStorageType ¶
type CallStorageType struct {
// contains filtered or unexported fields
}
What project storage should be available for this execution. Empty storage means this execution will have a clean slate. Copy on write means execution will read from project storage and writes will be saved to an isolated storage. Write means execution will write to project storage.
func New_CallStorageType ¶
func New_CallStorageType(value CallStorageType_Value) CallStorageType
func (CallStorageType) IsUnknown ¶
func (e CallStorageType) IsUnknown() bool
IsUnknown returns false for all known variants of CallStorageType and true otherwise.
func (CallStorageType) MarshalText ¶
func (e CallStorageType) MarshalText() ([]byte, error)
func (CallStorageType) String ¶
func (e CallStorageType) String() string
func (*CallStorageType) UnmarshalText ¶
func (e *CallStorageType) UnmarshalText(data []byte) error
func (CallStorageType) Value ¶
func (e CallStorageType) Value() CallStorageType_Value
type CallStorageType_Value ¶
type CallStorageType_Value string
What project storage should be available for this execution. Empty storage means this execution will have a clean slate. Copy on write means execution will read from project storage and writes will be saved to an isolated storage. Write means execution will write to project storage.
const ( CallStorageType_EMPTY CallStorageType_Value = "EMPTY" CallStorageType_COPY_ON_WRITE CallStorageType_Value = "COPY_ON_WRITE" CallStorageType_WRITE CallStorageType_Value = "WRITE" CallStorageType_UNKNOWN CallStorageType_Value = "UNKNOWN" )
func CallStorageType_Values ¶
func CallStorageType_Values() []CallStorageType_Value
CallStorageType_Values returns all known variants of CallStorageType.
type CallSummary ¶
type CallSummary struct { Id string `json:"id"` ActionId string `json:"actionId"` VersionId string `json:"versionId"` CreatedAt datetime.DateTime `json:"createdAt"` Type CallType `json:"type"` Status CallStatus `json:"status"` StatusUpdatedAt datetime.DateTime `json:"statusUpdatedAt"` Payload PayloadSummary `json:"payload"` StorageType CallStorageType `json:"storageType"` StorageId string `json:"storageId"` Memory *int `json:"memory"` Time *int `json:"time"` }
Summary of action invokation result since full call can be large. Keep this in sync with call.
func (CallSummary) MarshalYAML ¶
func (o CallSummary) MarshalYAML() (interface{}, error)
func (*CallSummary) UnmarshalYAML ¶
func (o *CallSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type CallType ¶
type CallType struct {
// contains filtered or unexported fields
}
Test calls are created through call endpoint. Triggered calls are created automatically by defined trigger.
func New_CallType ¶
func New_CallType(value CallType_Value) CallType
func (CallType) IsUnknown ¶
IsUnknown returns false for all known variants of CallType and true otherwise.
func (CallType) MarshalText ¶
func (*CallType) UnmarshalText ¶
func (CallType) Value ¶
func (e CallType) Value() CallType_Value
type CallType_Value ¶
type CallType_Value string
Test calls are created through call endpoint. Triggered calls are created automatically by defined trigger.
const ( CallType_MANUAL CallType_Value = "MANUAL" CallType_AUTOMATIC CallType_Value = "AUTOMATIC" CallType_UNKNOWN CallType_Value = "UNKNOWN" )
func CallType_Values ¶
func CallType_Values() []CallType_Value
CallType_Values returns all known variants of CallType.
type ComparableAny ¶
type ComparableAny struct { Str *ComparableStr `json:"str"` Int *ComparableInt `json:"int"` Map *ComparableMap `json:"map"` }
func (ComparableAny) MarshalYAML ¶
func (o ComparableAny) MarshalYAML() (interface{}, error)
func (*ComparableAny) UnmarshalYAML ¶
func (o *ComparableAny) UnmarshalYAML(unmarshal func(interface{}) error) error
type ComparableInt ¶
type ComparableInt struct { Gte *int `json:"gte"` Lte *int `json:"lte"` Eq *int `json:"eq"` Gt *int `json:"gt"` Lt *int `json:"lt"` }
Int must match all set fields to match comparable.
func (ComparableInt) MarshalYAML ¶
func (o ComparableInt) MarshalYAML() (interface{}, error)
func (*ComparableInt) UnmarshalYAML ¶
func (o *ComparableInt) UnmarshalYAML(unmarshal func(interface{}) error) error
type ComparableMap ¶
type ComparableMap struct { Key string `json:"key"` Value ComparableAny `json:"value"` }
func (ComparableMap) MarshalYAML ¶
func (o ComparableMap) MarshalYAML() (interface{}, error)
func (*ComparableMap) UnmarshalYAML ¶
func (o *ComparableMap) UnmarshalYAML(unmarshal func(interface{}) error) error
type ComparableStr ¶
type ComparableStr struct {
Exact *string `json:"exact"`
}
func (ComparableStr) MarshalYAML ¶
func (o ComparableStr) MarshalYAML() (interface{}, error)
func (*ComparableStr) UnmarshalYAML ¶
func (o *ComparableStr) UnmarshalYAML(unmarshal func(interface{}) error) error
type ContractInvocationType ¶
type ContractInvocationType struct {
// contains filtered or unexported fields
}
func New_ContractInvocationType ¶
func New_ContractInvocationType(value ContractInvocationType_Value) ContractInvocationType
func (ContractInvocationType) IsUnknown ¶
func (e ContractInvocationType) IsUnknown() bool
IsUnknown returns false for all known variants of ContractInvocationType and true otherwise.
func (ContractInvocationType) MarshalText ¶
func (e ContractInvocationType) MarshalText() ([]byte, error)
func (ContractInvocationType) String ¶
func (e ContractInvocationType) String() string
func (*ContractInvocationType) UnmarshalText ¶
func (e *ContractInvocationType) UnmarshalText(data []byte) error
func (ContractInvocationType) Value ¶
func (e ContractInvocationType) Value() ContractInvocationType_Value
type ContractInvocationType_Value ¶
type ContractInvocationType_Value string
const ( ContractInvocationType_ANY ContractInvocationType_Value = "ANY" ContractInvocationType_DIRECT ContractInvocationType_Value = "DIRECT" ContractInvocationType_INTERNAL ContractInvocationType_Value = "INTERNAL" ContractInvocationType_UNKNOWN ContractInvocationType_Value = "UNKNOWN" )
func ContractInvocationType_Values ¶
func ContractInvocationType_Values() []ContractInvocationType_Value
ContractInvocationType_Values returns all known variants of ContractInvocationType.
type ContractReference ¶
type ContractReference struct { Address string `json:"address"` InvocationType ContractInvocationType `json:"invocationType"` }
func (ContractReference) MarshalYAML ¶
func (o ContractReference) MarshalYAML() (interface{}, error)
func (*ContractReference) UnmarshalYAML ¶
func (o *ContractReference) UnmarshalYAML(unmarshal func(interface{}) error) error
type DefaultPayloadRequest ¶
type DefaultPayloadRequest struct { Block *BlockPayloadRequest `json:"block"` Transaction *TransactionPayloadRequest `json:"transaction"` }
func (DefaultPayloadRequest) MarshalYAML ¶
func (o DefaultPayloadRequest) MarshalYAML() (interface{}, error)
func (*DefaultPayloadRequest) UnmarshalYAML ¶
func (o *DefaultPayloadRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type DeployRequest ¶
type DeployRequest struct {
VersionId string `json:"versionId"`
}
func (DeployRequest) MarshalYAML ¶
func (o DeployRequest) MarshalYAML() (interface{}, error)
func (*DeployRequest) UnmarshalYAML ¶
func (o *DeployRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type DeployResponse ¶
type DeployResponse struct { }
Empty for now, but in the future we can add progress reporting.
func (DeployResponse) MarshalYAML ¶
func (o DeployResponse) MarshalYAML() (interface{}, error)
func (*DeployResponse) UnmarshalYAML ¶
func (o *DeployResponse) UnmarshalYAML(unmarshal func(interface{}) error) error
type DeployStatus ¶
type DeployStatus struct {
// contains filtered or unexported fields
}
func New_DeployStatus ¶
func New_DeployStatus(value DeployStatus_Value) DeployStatus
func (DeployStatus) IsUnknown ¶
func (e DeployStatus) IsUnknown() bool
IsUnknown returns false for all known variants of DeployStatus and true otherwise.
func (DeployStatus) MarshalText ¶
func (e DeployStatus) MarshalText() ([]byte, error)
func (DeployStatus) String ¶
func (e DeployStatus) String() string
func (*DeployStatus) UnmarshalText ¶
func (e *DeployStatus) UnmarshalText(data []byte) error
func (DeployStatus) Value ¶
func (e DeployStatus) Value() DeployStatus_Value
type DeployStatus_Value ¶
type DeployStatus_Value string
const ( DeployStatus_PUBLISHED DeployStatus_Value = "PUBLISHED" DeployStatus_DEPLOYED DeployStatus_Value = "DEPLOYED" DeployStatus_UNKNOWN DeployStatus_Value = "UNKNOWN" )
func DeployStatus_Values ¶
func DeployStatus_Values() []DeployStatus_Value
DeployStatus_Values returns all known variants of DeployStatus.
type EthBalanceFilter ¶
type EthBalanceFilter struct { Account AccountReference `json:"account"` Value ComparableInt `json:"value"` }
func (EthBalanceFilter) MarshalYAML ¶
func (o EthBalanceFilter) MarshalYAML() (interface{}, error)
func (*EthBalanceFilter) UnmarshalYAML ¶
func (o *EthBalanceFilter) UnmarshalYAML(unmarshal func(interface{}) error) error
type EventEmittedFilter ¶
type EventEmittedFilter struct { Contract ContractReference `json:"contract"` Id *string `json:"id"` Name *string `json:"name"` }
func (EventEmittedFilter) MarshalYAML ¶
func (o EventEmittedFilter) MarshalYAML() (interface{}, error)
func (*EventEmittedFilter) UnmarshalYAML ¶
func (o *EventEmittedFilter) UnmarshalYAML(unmarshal func(interface{}) error) error
type ExecutionPayload ¶
type ExecutionPayload struct { Storage StoragePayload `json:"storage"` Secrets SecretsPayload `json:"secrets"` Event Payload `json:"event"` }
func (ExecutionPayload) MarshalYAML ¶
func (o ExecutionPayload) MarshalYAML() (interface{}, error)
func (*ExecutionPayload) UnmarshalYAML ¶
func (o *ExecutionPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type Filter ¶
type Filter struct { Network []string `json:"network"` Status []Status `json:"status"` Value []ComparableInt `json:"value"` GasLimit []ComparableInt `json:"gasLimit"` GasUsed []ComparableInt `json:"gasUsed"` Fee []ComparableInt `json:"fee"` From []ComparableStr `json:"from"` To []ComparableStr `json:"to"` Function []FunctionFilter `json:"function"` EventEmitted []EventEmittedFilter `json:"eventEmitted"` LogEmmitted []LogEmittedFilter `json:"logEmmitted"` }
All set collections are any of. All fields are ANDed.
func (Filter) MarshalJSON ¶
func (Filter) MarshalYAML ¶
func (*Filter) UnmarshalJSON ¶
func (*Filter) UnmarshalYAML ¶
type Function ¶
type Function string
Function is created from file path where action implementation is, relative to src/ (or configured) directory inside project, and implementation function name. For example if HelloWorldActionFn inside src/actions/helloworld.js implements ActionFn, function should be set to actions/helloworld:HelloWorldActionFn
type FunctionFilter ¶
type FunctionFilter struct { Contract ContractReference `json:"contract"` Name *string `json:"name"` }
func (FunctionFilter) MarshalYAML ¶
func (o FunctionFilter) MarshalYAML() (interface{}, error)
func (*FunctionFilter) UnmarshalYAML ¶
func (o *FunctionFilter) UnmarshalYAML(unmarshal func(interface{}) error) error
type LogEmittedFilter ¶ added in v1.3.0
type LogEmittedFilter struct { TopicsStartsWith []string `json:"topicsStartsWith"` Contract *ContractReference `json:"contract"` }
func (LogEmittedFilter) MarshalJSON ¶ added in v1.3.0
func (o LogEmittedFilter) MarshalJSON() ([]byte, error)
func (LogEmittedFilter) MarshalYAML ¶ added in v1.3.0
func (o LogEmittedFilter) MarshalYAML() (interface{}, error)
func (*LogEmittedFilter) UnmarshalJSON ¶ added in v1.3.0
func (o *LogEmittedFilter) UnmarshalJSON(data []byte) error
func (*LogEmittedFilter) UnmarshalYAML ¶ added in v1.3.0
func (o *LogEmittedFilter) UnmarshalYAML(unmarshal func(interface{}) error) error
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
Payload is sent to user function.
func NewPayloadFromAlert ¶
func NewPayloadFromAlert(v AlertPayload) Payload
func NewPayloadFromBlock ¶
func NewPayloadFromBlock(v BlockPayload) Payload
func NewPayloadFromPeriodic ¶
func NewPayloadFromPeriodic(v PeriodicPayload) Payload
func NewPayloadFromTransaction ¶
func NewPayloadFromTransaction(v TransactionPayload) Payload
func NewPayloadFromTransactionsimple ¶ added in v1.3.1
func NewPayloadFromTransactionsimple(v TransactionPayload) Payload
func NewPayloadFromWebhook ¶
func NewPayloadFromWebhook(v WebhookPayload) Payload
func (*Payload) Accept ¶
func (u *Payload) Accept(v PayloadVisitor) error
func (*Payload) AcceptWithContext ¶
func (u *Payload) AcceptWithContext(ctx context.Context, v PayloadVisitorWithContext) error
func (Payload) MarshalJSON ¶
func (Payload) MarshalYAML ¶
func (*Payload) UnmarshalJSON ¶
func (*Payload) UnmarshalYAML ¶
type PayloadSummary ¶
type PayloadSummary struct {
// contains filtered or unexported fields
}
Payload summary is exposed in dashboard, in list views.
func NewPayloadSummaryFromAlert ¶
func NewPayloadSummaryFromAlert(v AlertPayloadSummary) PayloadSummary
func NewPayloadSummaryFromBlock ¶
func NewPayloadSummaryFromBlock(v BlockPayloadSummary) PayloadSummary
func NewPayloadSummaryFromPeriodic ¶
func NewPayloadSummaryFromPeriodic(v PeriodicPayloadSummary) PayloadSummary
func NewPayloadSummaryFromTransaction ¶
func NewPayloadSummaryFromTransaction(v TransactionPayloadSummary) PayloadSummary
func NewPayloadSummaryFromTransactionsimple ¶ added in v1.3.1
func NewPayloadSummaryFromTransactionsimple(v TransactionPayloadSummary) PayloadSummary
func NewPayloadSummaryFromWebhook ¶
func NewPayloadSummaryFromWebhook(v WebhookPayloadSummary) PayloadSummary
func (*PayloadSummary) Accept ¶
func (u *PayloadSummary) Accept(v PayloadSummaryVisitor) error
func (*PayloadSummary) AcceptWithContext ¶
func (u *PayloadSummary) AcceptWithContext(ctx context.Context, v PayloadSummaryVisitorWithContext) error
func (PayloadSummary) MarshalJSON ¶
func (u PayloadSummary) MarshalJSON() ([]byte, error)
func (PayloadSummary) MarshalYAML ¶
func (u PayloadSummary) MarshalYAML() (interface{}, error)
func (*PayloadSummary) UnmarshalJSON ¶
func (u *PayloadSummary) UnmarshalJSON(data []byte) error
func (*PayloadSummary) UnmarshalYAML ¶
func (u *PayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type PayloadSummaryVisitor ¶
type PayloadSummaryVisitor interface { VisitPeriodic(v PeriodicPayloadSummary) error VisitWebhook(v WebhookPayloadSummary) error VisitBlock(v BlockPayloadSummary) error VisitTransaction(v TransactionPayloadSummary) error VisitTransactionsimple(v TransactionPayloadSummary) error VisitAlert(v AlertPayloadSummary) error VisitUnknown(typeName string) error }
type PayloadSummaryVisitorWithContext ¶
type PayloadSummaryVisitorWithContext interface { VisitPeriodicWithContext(ctx context.Context, v PeriodicPayloadSummary) error VisitWebhookWithContext(ctx context.Context, v WebhookPayloadSummary) error VisitBlockWithContext(ctx context.Context, v BlockPayloadSummary) error VisitTransactionWithContext(ctx context.Context, v TransactionPayloadSummary) error VisitTransactionsimpleWithContext(ctx context.Context, v TransactionPayloadSummary) error VisitAlertWithContext(ctx context.Context, v AlertPayloadSummary) error VisitUnknownWithContext(ctx context.Context, typeName string) error }
type PayloadVisitor ¶
type PayloadVisitor interface { VisitPeriodic(v PeriodicPayload) error VisitWebhook(v WebhookPayload) error VisitBlock(v BlockPayload) error VisitTransaction(v TransactionPayload) error VisitTransactionsimple(v TransactionPayload) error VisitAlert(v AlertPayload) error VisitUnknown(typeName string) error }
type PayloadVisitorWithContext ¶
type PayloadVisitorWithContext interface { VisitPeriodicWithContext(ctx context.Context, v PeriodicPayload) error VisitWebhookWithContext(ctx context.Context, v WebhookPayload) error VisitBlockWithContext(ctx context.Context, v BlockPayload) error VisitTransactionWithContext(ctx context.Context, v TransactionPayload) error VisitTransactionsimpleWithContext(ctx context.Context, v TransactionPayload) error VisitAlertWithContext(ctx context.Context, v AlertPayload) error VisitUnknownWithContext(ctx context.Context, typeName string) error }
type PeriodicPayload ¶
type PeriodicPayload struct {
Timestamp int `json:"timestamp"`
}
func (PeriodicPayload) MarshalYAML ¶
func (o PeriodicPayload) MarshalYAML() (interface{}, error)
func (*PeriodicPayload) UnmarshalYAML ¶
func (o *PeriodicPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type PeriodicPayloadSummary ¶
func (PeriodicPayloadSummary) MarshalYAML ¶
func (o PeriodicPayloadSummary) MarshalYAML() (interface{}, error)
func (*PeriodicPayloadSummary) UnmarshalYAML ¶
func (o *PeriodicPayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type PeriodicTrigger ¶
type PeriodicTrigger struct { Cron string `json:"cron"` // When interval is specified and translated to cron. Not used in execution, just for UX. Interval *string `json:"interval" conjure-docs:"When interval is specified and translated to cron. Not used in execution, just for UX."` }
func (PeriodicTrigger) MarshalYAML ¶
func (o PeriodicTrigger) MarshalYAML() (interface{}, error)
func (*PeriodicTrigger) UnmarshalYAML ¶
func (o *PeriodicTrigger) UnmarshalYAML(unmarshal func(interface{}) error) error
type PublishFileRequest ¶
type PublishFileRequest struct { Action ActionSpec `json:"action"` Deploy bool `json:"deploy"` }
func (PublishFileRequest) MarshalYAML ¶
func (o PublishFileRequest) MarshalYAML() (interface{}, error)
func (*PublishFileRequest) UnmarshalYAML ¶
func (o *PublishFileRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type PublishRequest ¶
type PublishRequest struct { // Map from action name to action spec. Actions map[string]ActionSpec `json:"actions" conjure-docs:"Map from action name to action spec."` // If true, for each action in DEPLOYED state, new version will be deployed. Deploy bool `json:"deploy" conjure-docs:"If true, for each action in DEPLOYED state, new version will be deployed."` // Zipped source code. Limited to 25MB. Omitted only if older logic can be reused. LogicZip *[]byte `json:"logicZip" conjure-docs:"Zipped source code. Limited to 25MB. Omitted only if older logic can be reused."` // Used to decide if new logic layer to be published or old can be reused. LogicVersion *string `json:"logicVersion" conjure-docs:"Used to decide if new logic layer to be published or old can be reused."` // Zipped node_modules dependencies. Limited to 25MB. DependenciesZip *[]byte `json:"dependenciesZip" conjure-docs:"Zipped node_modules dependencies. Limited to 25MB."` // Used to decide if new dependencies layer needs to be published or old can be reused. DependenciesVersion *string `` /* 126-byte string literal not displayed */ // Content of package-lock.json for example. DependenciesLock *string `json:"dependenciesLock" conjure-docs:"Content of package-lock.json for example."` // Commit hash or tag name. Commitish *string `json:"commitish" conjure-docs:"Commit hash or tag name."` }
func (PublishRequest) MarshalJSON ¶
func (o PublishRequest) MarshalJSON() ([]byte, error)
func (PublishRequest) MarshalYAML ¶
func (o PublishRequest) MarshalYAML() (interface{}, error)
func (*PublishRequest) UnmarshalJSON ¶
func (o *PublishRequest) UnmarshalJSON(data []byte) error
func (*PublishRequest) UnmarshalYAML ¶
func (o *PublishRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type PublishResponse ¶
type PublishResponse struct { // Published action version for action name. Actions map[string]Version `json:"actions" conjure-docs:"Published action version for action name."` }
func (PublishResponse) MarshalJSON ¶
func (o PublishResponse) MarshalJSON() ([]byte, error)
func (PublishResponse) MarshalYAML ¶
func (o PublishResponse) MarshalYAML() (interface{}, error)
func (*PublishResponse) UnmarshalJSON ¶
func (o *PublishResponse) UnmarshalJSON(data []byte) error
func (*PublishResponse) UnmarshalYAML ¶
func (o *PublishResponse) UnmarshalYAML(unmarshal func(interface{}) error) error
type ResumeRequest ¶
type ResumeRequest struct { // Action ids to resume. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE RESUMED. Actions []string `json:"actions" conjure-docs:"Action ids to resume. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE RESUMED."` }
func (ResumeRequest) MarshalJSON ¶
func (o ResumeRequest) MarshalJSON() ([]byte, error)
func (ResumeRequest) MarshalYAML ¶
func (o ResumeRequest) MarshalYAML() (interface{}, error)
func (*ResumeRequest) UnmarshalJSON ¶
func (o *ResumeRequest) UnmarshalJSON(data []byte) error
func (*ResumeRequest) UnmarshalYAML ¶
func (o *ResumeRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Action runtime. V1 is AWSLambda@nodejs14.x.
func New_Runtime ¶
func New_Runtime(value Runtime_Value) Runtime
func (Runtime) IsUnknown ¶
IsUnknown returns false for all known variants of Runtime and true otherwise.
func (Runtime) MarshalText ¶
func (*Runtime) UnmarshalText ¶
func (Runtime) Value ¶
func (e Runtime) Value() Runtime_Value
type Runtime_Value ¶
type Runtime_Value string
Action runtime. V1 is AWSLambda@nodejs14.x.
const ( Runtime_V1 Runtime_Value = "V1" Runtime_V2 Runtime_Value = "V2" Runtime_UNKNOWN Runtime_Value = "UNKNOWN" )
func Runtime_Values ¶
func Runtime_Values() []Runtime_Value
Runtime_Values returns all known variants of Runtime.
type SecretsPayload ¶
func (SecretsPayload) MarshalJSON ¶
func (o SecretsPayload) MarshalJSON() ([]byte, error)
func (SecretsPayload) MarshalYAML ¶
func (o SecretsPayload) MarshalYAML() (interface{}, error)
func (*SecretsPayload) UnmarshalJSON ¶
func (o *SecretsPayload) UnmarshalJSON(data []byte) error
func (*SecretsPayload) UnmarshalYAML ¶
func (o *SecretsPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type StateChangedFilter ¶
type StateChangedFilter struct { Contract ContractReference `json:"contract"` Key *string `json:"key"` Field *string `json:"field"` Value *ComparableAny `json:"value"` PreviousValue *ComparableAny `json:"previousValue"` }
func (StateChangedFilter) MarshalYAML ¶
func (o StateChangedFilter) MarshalYAML() (interface{}, error)
func (*StateChangedFilter) UnmarshalYAML ¶
func (o *StateChangedFilter) UnmarshalYAML(unmarshal func(interface{}) error) error
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func New_Status ¶
func New_Status(value Status_Value) Status
func (Status) IsUnknown ¶
IsUnknown returns false for all known variants of Status and true otherwise.
func (Status) MarshalText ¶
func (*Status) UnmarshalText ¶
func (Status) Value ¶
func (e Status) Value() Status_Value
type Status_Value ¶
type Status_Value string
const ( Status_SUCCESS Status_Value = "SUCCESS" Status_FAIL Status_Value = "FAIL" Status_UNKNOWN Status_Value = "UNKNOWN" )
func Status_Values ¶
func Status_Values() []Status_Value
Status_Values returns all known variants of Status.
type StopRequest ¶
type StopRequest struct { // Action ids to stop. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE STOPPED. Actions []string `json:"actions" conjure-docs:"Action ids to stop. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE STOPPED."` }
func (StopRequest) MarshalJSON ¶
func (o StopRequest) MarshalJSON() ([]byte, error)
func (StopRequest) MarshalYAML ¶
func (o StopRequest) MarshalYAML() (interface{}, error)
func (*StopRequest) UnmarshalJSON ¶
func (o *StopRequest) UnmarshalJSON(data []byte) error
func (*StopRequest) UnmarshalYAML ¶
func (o *StopRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type StoragePayload ¶
func (StoragePayload) MarshalYAML ¶
func (o StoragePayload) MarshalYAML() (interface{}, error)
func (*StoragePayload) UnmarshalYAML ¶
func (o *StoragePayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionFilter ¶
type TransactionFilter struct { // ORed set of filters. Any []Filter `json:"any" conjure-docs:"ORed set of filters."` // ANDed with any result. And *TransactionFilter `json:"and" conjure-docs:"ANDed with any result."` }
func (TransactionFilter) MarshalJSON ¶
func (o TransactionFilter) MarshalJSON() ([]byte, error)
func (TransactionFilter) MarshalYAML ¶
func (o TransactionFilter) MarshalYAML() (interface{}, error)
func (*TransactionFilter) UnmarshalJSON ¶
func (o *TransactionFilter) UnmarshalJSON(data []byte) error
func (*TransactionFilter) UnmarshalYAML ¶
func (o *TransactionFilter) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionLog ¶ added in v1.3.0
type TransactionLog struct { Address string `json:"address"` Topics []string `json:"topics"` Data string `json:"data"` }
func (TransactionLog) MarshalJSON ¶ added in v1.3.0
func (o TransactionLog) MarshalJSON() ([]byte, error)
func (TransactionLog) MarshalYAML ¶ added in v1.3.0
func (o TransactionLog) MarshalYAML() (interface{}, error)
func (*TransactionLog) UnmarshalJSON ¶ added in v1.3.0
func (o *TransactionLog) UnmarshalJSON(data []byte) error
func (*TransactionLog) UnmarshalYAML ¶ added in v1.3.0
func (o *TransactionLog) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionPayload ¶
type TransactionPayload struct { Network string `json:"network"` BlockHash string `json:"blockHash"` BlockNumber int `json:"blockNumber"` Hash string `json:"hash"` From string `json:"from"` To *string `json:"to"` Logs []TransactionLog `json:"logs"` // Optional because it is added later so some payloads don't have it. Input *string `json:"input" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. Value *string `json:"value" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. Nonce *string `json:"nonce" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. Gas *string `json:"gas" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. GasUsed *string `json:"gasUsed" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. CumulativeGasUsed *string `json:"cumulativeGasUsed" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. GasPrice *string `json:"gasPrice" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. GasTipCap *string `json:"gasTipCap" conjure-docs:"Optional because it is added later so some payloads don't have it."` // Optional because it is added later so some payloads don't have it. GasFeeCap *string `json:"gasFeeCap" conjure-docs:"Optional because it is added later so some payloads don't have it."` AlertId *string `json:"alertId"` }
func (TransactionPayload) MarshalJSON ¶ added in v1.3.0
func (o TransactionPayload) MarshalJSON() ([]byte, error)
func (TransactionPayload) MarshalYAML ¶
func (o TransactionPayload) MarshalYAML() (interface{}, error)
func (*TransactionPayload) UnmarshalJSON ¶ added in v1.3.0
func (o *TransactionPayload) UnmarshalJSON(data []byte) error
func (*TransactionPayload) UnmarshalYAML ¶
func (o *TransactionPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionPayloadRequest ¶
func (TransactionPayloadRequest) MarshalYAML ¶
func (o TransactionPayloadRequest) MarshalYAML() (interface{}, error)
func (*TransactionPayloadRequest) UnmarshalYAML ¶
func (o *TransactionPayloadRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionPayloadSummary ¶
type TransactionPayloadSummary struct { Network string `json:"network"` BlockHash string `json:"blockHash"` BlockNumber int `json:"blockNumber"` Hash string `json:"hash"` }
func (TransactionPayloadSummary) MarshalYAML ¶
func (o TransactionPayloadSummary) MarshalYAML() (interface{}, error)
func (*TransactionPayloadSummary) UnmarshalYAML ¶
func (o *TransactionPayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionSimpleTrigger ¶ added in v1.3.1
type TransactionSimpleTrigger struct { }
func (TransactionSimpleTrigger) MarshalYAML ¶ added in v1.3.1
func (o TransactionSimpleTrigger) MarshalYAML() (interface{}, error)
func (*TransactionSimpleTrigger) UnmarshalYAML ¶ added in v1.3.1
func (o *TransactionSimpleTrigger) UnmarshalYAML(unmarshal func(interface{}) error) error
type TransactionStatus ¶
type TransactionStatus struct {
// contains filtered or unexported fields
}
func New_TransactionStatus ¶
func New_TransactionStatus(value TransactionStatus_Value) TransactionStatus
func (TransactionStatus) IsUnknown ¶
func (e TransactionStatus) IsUnknown() bool
IsUnknown returns false for all known variants of TransactionStatus and true otherwise.
func (TransactionStatus) MarshalText ¶
func (e TransactionStatus) MarshalText() ([]byte, error)
func (TransactionStatus) String ¶
func (e TransactionStatus) String() string
func (*TransactionStatus) UnmarshalText ¶
func (e *TransactionStatus) UnmarshalText(data []byte) error
func (TransactionStatus) Value ¶
func (e TransactionStatus) Value() TransactionStatus_Value
type TransactionStatus_Value ¶
type TransactionStatus_Value string
const ( TransactionStatus_MINED TransactionStatus_Value = "MINED" TransactionStatus_CONFIRMED10 TransactionStatus_Value = "CONFIRMED10" TransactionStatus_UNKNOWN TransactionStatus_Value = "UNKNOWN" )
func TransactionStatus_Values ¶
func TransactionStatus_Values() []TransactionStatus_Value
TransactionStatus_Values returns all known variants of TransactionStatus.
type TransactionTrigger ¶
type TransactionTrigger struct { Status []TransactionStatus `json:"status"` Filter TransactionFilter `json:"filter"` }
func (TransactionTrigger) MarshalJSON ¶
func (o TransactionTrigger) MarshalJSON() ([]byte, error)
func (TransactionTrigger) MarshalYAML ¶
func (o TransactionTrigger) MarshalYAML() (interface{}, error)
func (*TransactionTrigger) UnmarshalJSON ¶
func (o *TransactionTrigger) UnmarshalJSON(data []byte) error
func (*TransactionTrigger) UnmarshalYAML ¶
func (o *TransactionTrigger) UnmarshalYAML(unmarshal func(interface{}) error) error
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger is confired by user. CLI has another trigger representation and does translation.
func NewTriggerFromAlert ¶
func NewTriggerFromAlert(v AlertTrigger) Trigger
func NewTriggerFromBlock ¶
func NewTriggerFromBlock(v BlockTrigger) Trigger
func NewTriggerFromPeriodic ¶
func NewTriggerFromPeriodic(v PeriodicTrigger) Trigger
func NewTriggerFromTransaction ¶
func NewTriggerFromTransaction(v TransactionTrigger) Trigger
func NewTriggerFromTransactionsimple ¶ added in v1.3.1
func NewTriggerFromTransactionsimple(v TransactionSimpleTrigger) Trigger
func NewTriggerFromWebhook ¶
func NewTriggerFromWebhook(v WebhookTrigger) Trigger
func (*Trigger) Accept ¶
func (u *Trigger) Accept(v TriggerVisitor) error
func (*Trigger) AcceptWithContext ¶
func (u *Trigger) AcceptWithContext(ctx context.Context, v TriggerVisitorWithContext) error
func (Trigger) MarshalJSON ¶
func (Trigger) MarshalYAML ¶
func (*Trigger) UnmarshalJSON ¶
func (*Trigger) UnmarshalYAML ¶
type TriggerType ¶
type TriggerType struct {
// contains filtered or unexported fields
}
func New_TriggerType ¶
func New_TriggerType(value TriggerType_Value) TriggerType
func (TriggerType) IsUnknown ¶
func (e TriggerType) IsUnknown() bool
IsUnknown returns false for all known variants of TriggerType and true otherwise.
func (TriggerType) MarshalText ¶
func (e TriggerType) MarshalText() ([]byte, error)
func (TriggerType) String ¶
func (e TriggerType) String() string
func (*TriggerType) UnmarshalText ¶
func (e *TriggerType) UnmarshalText(data []byte) error
func (TriggerType) Value ¶
func (e TriggerType) Value() TriggerType_Value
type TriggerType_Value ¶
type TriggerType_Value string
const ( TriggerType_PERIODIC TriggerType_Value = "PERIODIC" TriggerType_WEBHOOK TriggerType_Value = "WEBHOOK" TriggerType_TRANSACTION TriggerType_Value = "TRANSACTION" TriggerType_BLOCK TriggerType_Value = "BLOCK" TriggerType_ALERT TriggerType_Value = "ALERT" TriggerType_TRANSACTIONSIMPLE TriggerType_Value = "TRANSACTIONSIMPLE" TriggerType_UNKNOWN TriggerType_Value = "UNKNOWN" )
func TriggerType_Values ¶
func TriggerType_Values() []TriggerType_Value
TriggerType_Values returns all known variants of TriggerType.
type TriggerVisitor ¶
type TriggerVisitor interface { VisitPeriodic(v PeriodicTrigger) error VisitWebhook(v WebhookTrigger) error VisitBlock(v BlockTrigger) error VisitTransaction(v TransactionTrigger) error VisitTransactionsimple(v TransactionSimpleTrigger) error VisitAlert(v AlertTrigger) error VisitUnknown(typeName string) error }
type TriggerVisitorWithContext ¶
type TriggerVisitorWithContext interface { VisitPeriodicWithContext(ctx context.Context, v PeriodicTrigger) error VisitWebhookWithContext(ctx context.Context, v WebhookTrigger) error VisitBlockWithContext(ctx context.Context, v BlockTrigger) error VisitTransactionWithContext(ctx context.Context, v TransactionTrigger) error VisitTransactionsimpleWithContext(ctx context.Context, v TransactionSimpleTrigger) error VisitAlertWithContext(ctx context.Context, v AlertTrigger) error VisitUnknownWithContext(ctx context.Context, typeName string) error }
type ValidateError ¶
func (ValidateError) MarshalYAML ¶
func (o ValidateError) MarshalYAML() (interface{}, error)
func (*ValidateError) UnmarshalYAML ¶
func (o *ValidateError) UnmarshalYAML(unmarshal func(interface{}) error) error
type ValidateFileRequest ¶ added in v1.3.0
type ValidateFileRequest struct {
Action ActionSpec `json:"action"`
}
func (ValidateFileRequest) MarshalYAML ¶ added in v1.3.0
func (o ValidateFileRequest) MarshalYAML() (interface{}, error)
func (*ValidateFileRequest) UnmarshalYAML ¶ added in v1.3.0
func (o *ValidateFileRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type ValidateRequest ¶
type ValidateRequest struct { // Map from action name to action spec. Actions map[string]ActionSpec `json:"actions" conjure-docs:"Map from action name to action spec."` // Used to decide if new logic layer to be published or old can be reused. LogicVersion *string `json:"logicVersion" conjure-docs:"Used to decide if new logic layer to be published or old can be reused."` // Used to decide if new dependencies layer needs to be published or old can be reused. DependenciesVersion *string `` /* 126-byte string literal not displayed */ }
func (ValidateRequest) MarshalJSON ¶
func (o ValidateRequest) MarshalJSON() ([]byte, error)
func (ValidateRequest) MarshalYAML ¶
func (o ValidateRequest) MarshalYAML() (interface{}, error)
func (*ValidateRequest) UnmarshalJSON ¶
func (o *ValidateRequest) UnmarshalJSON(data []byte) error
func (*ValidateRequest) UnmarshalYAML ¶
func (o *ValidateRequest) UnmarshalYAML(unmarshal func(interface{}) error) error
type ValidateResponse ¶
type ValidateResponse struct { // Set of action names that would be created on publish. Create []string `json:"create" conjure-docs:"Set of action names that would be created on publish."` // Set of action names that would be updated on publish. Update []string `json:"update" conjure-docs:"Set of action names that would be updated on publish."` // Map from action name to errors, for action resources that have errors. Errors map[string][]ValidateError `json:"errors" conjure-docs:"Map from action name to errors, for action resources that have errors."` LogicFound bool `json:"logicFound"` DependenciesFound bool `json:"dependenciesFound"` }
func (ValidateResponse) MarshalJSON ¶
func (o ValidateResponse) MarshalJSON() ([]byte, error)
func (ValidateResponse) MarshalYAML ¶
func (o ValidateResponse) MarshalYAML() (interface{}, error)
func (*ValidateResponse) UnmarshalJSON ¶
func (o *ValidateResponse) UnmarshalJSON(data []byte) error
func (*ValidateResponse) UnmarshalYAML ¶
func (o *ValidateResponse) UnmarshalYAML(unmarshal func(interface{}) error) error
type Version ¶
type Version struct { Id string `json:"id"` Index int `json:"index"` ActionId string `json:"actionId"` Runtime Runtime `json:"runtime"` Function Function `json:"function"` TriggerType TriggerType `json:"triggerType"` Trigger *Trigger `json:"trigger"` Commitish *string `json:"commitish"` Source *string `json:"source"` CreatedAt datetime.DateTime `json:"createdAt"` DeployRequested bool `json:"deployRequested"` DeployError *string `json:"deployError"` }
func (Version) MarshalYAML ¶
func (*Version) UnmarshalYAML ¶
type WebhookPayload ¶
type WebhookPayload struct { Timestamp int `json:"timestamp"` Body map[string]interface{} `json:"body"` }
func (WebhookPayload) MarshalJSON ¶
func (o WebhookPayload) MarshalJSON() ([]byte, error)
func (WebhookPayload) MarshalYAML ¶
func (o WebhookPayload) MarshalYAML() (interface{}, error)
func (*WebhookPayload) UnmarshalJSON ¶
func (o *WebhookPayload) UnmarshalJSON(data []byte) error
func (*WebhookPayload) UnmarshalYAML ¶
func (o *WebhookPayload) UnmarshalYAML(unmarshal func(interface{}) error) error
type WebhookPayloadSummary ¶
func (WebhookPayloadSummary) MarshalYAML ¶
func (o WebhookPayloadSummary) MarshalYAML() (interface{}, error)
func (*WebhookPayloadSummary) UnmarshalYAML ¶
func (o *WebhookPayloadSummary) UnmarshalYAML(unmarshal func(interface{}) error) error
type WebhookRequest ¶
type WebhookRequest map[string]interface{}
type WebhookResponse ¶
type WebhookResponse struct { }
func (WebhookResponse) MarshalYAML ¶
func (o WebhookResponse) MarshalYAML() (interface{}, error)
func (*WebhookResponse) UnmarshalYAML ¶
func (o *WebhookResponse) UnmarshalYAML(unmarshal func(interface{}) error) error
type WebhookTrigger ¶
type WebhookTrigger struct {
Authenticated bool `json:"authenticated"`
}
func (WebhookTrigger) MarshalYAML ¶
func (o WebhookTrigger) MarshalYAML() (interface{}, error)
func (*WebhookTrigger) UnmarshalYAML ¶
func (o *WebhookTrigger) UnmarshalYAML(unmarshal func(interface{}) error) error