jobs

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJob

func AssertJob(assertion *def.Assert, logger *logging.Logger) (string, error)

func BuildJob

func BuildJob(build *def.Build, deployScript *def.Playbook, resp *compilers.Response, logger *logging.Logger) (result string, err error)

func CallJob

func CallJob(call *def.Call, tx *payload.CallTx, do *def.DeployArgs, playbook *def.Playbook, client *def.Client, logger *logging.Logger) (string, []*abi.Variable, error)

func DeployJob

func DeployJob(deploy *def.Deploy, do *def.DeployArgs, script *def.Playbook, client *def.Client, txs []*payload.CallTx, contracts []*compilers.ResponseItem, logger *logging.Logger) (result string, err error)

func DumpStateJob

func DumpStateJob(dump *def.DumpState) (string, error)

func ExecutePlaybook added in v0.24.0

func ExecutePlaybook(args *def.DeployArgs, playbook *def.Playbook, client *def.Client, logger *logging.Logger) error

func FormulateCallJob added in v0.23.0

func FormulateCallJob(call *def.Call, do *def.DeployArgs, deployScript *def.Playbook, client *def.Client, logger *logging.Logger) (tx *payload.CallTx, err error)

func FormulateDeployJob added in v0.24.0

func FormulateDeployJob(deploy *def.Deploy, do *def.DeployArgs, deployScript *def.Playbook, client *def.Client, intermediate interface{}, logger *logging.Logger) (txs []*payload.CallTx, contracts []*compilers.ResponseItem, err error)

func FormulatePermissionJob added in v0.24.0

func FormulatePermissionJob(perm *def.Permission, account string, client *def.Client, logger *logging.Logger) (*payload.PermsTx, error)

func FormulateRegisterNameJob added in v0.24.0

func FormulateRegisterNameJob(name *def.RegisterName, do *def.DeployArgs, playbook *def.Playbook, client *def.Client, logger *logging.Logger) ([]*payload.NameTx, error)

func FormulateSendJob added in v0.24.0

func FormulateSendJob(send *def.Send, account string, client *def.Client, logger *logging.Logger) (*payload.SendTx, error)

func FormulateUpdateAccountJob added in v0.24.0

func FormulateUpdateAccountJob(gov *def.UpdateAccount, account string, client *def.Client, logger *logging.Logger) (*payload.GovTx, []*abi.Variable, error)

func PermissionJob

func PermissionJob(perm *def.Permission, account string, tx *payload.PermsTx, client *def.Client, logger *logging.Logger) (string, error)

func ProposalJob added in v0.23.0

func ProposalJob(prop *def.Proposal, do *def.DeployArgs, parentScript *def.Playbook, client *def.Client, logger *logging.Logger) (string, error)

func QueryAccountJob

func QueryAccountJob(query *def.QueryAccount, client *def.Client, logger *logging.Logger) (string, error)

func QueryContractJob

func QueryContractJob(query *def.QueryContract, do *def.DeployArgs, script *def.Playbook, client *def.Client, logger *logging.Logger) (string, []*abi.Variable, error)

func QueryNameJob

func QueryNameJob(query *def.QueryName, client *def.Client, logger *logging.Logger) (string, error)

func QueryValsJob

func QueryValsJob(query *def.QueryVals, client *def.Client, logger *logging.Logger) (interface{}, error)

func RegisterNameJob

func RegisterNameJob(name *def.RegisterName, do *def.DeployArgs, script *def.Playbook, txs []*payload.NameTx, client *def.Client, logger *logging.Logger) (string, error)

func RestoreStateJob

func RestoreStateJob(restore *def.RestoreState) (string, error)

func SendJob

func SendJob(send *def.Send, tx *payload.SendTx, account string, client *def.Client, logger *logging.Logger) (string, error)

func SetAccountJob

func SetAccountJob(account *def.Account, do *def.DeployArgs, script *def.Playbook, logger *logging.Logger) (string, error)

func SetValJob

func SetValJob(set *def.Set, do *def.DeployArgs, logger *logging.Logger) (string, error)

func UpdateAccountJob

func UpdateAccountJob(gov *def.UpdateAccount, account string, tx *payload.GovTx, client *def.Client, logger *logging.Logger) error

func WriteJobResultCSV

func WriteJobResultCSV(name, result string) error

[zr] this should go (currently used by the nameReg writer) WriteJobResultCSV takes two strings and writes those to the delineated log file, which is currently deploy.log in the same directory as the deploy.yaml

func WriteJobResultJSON

func WriteJobResultJSON(results map[string]interface{}, logFile string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL