0.22.0 • Published 2 years ago

@scramjet/durability-preservation-event v0.22.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

durability-preservation-event

The sequence gets the file from the address given in the first parameter. The file is downloaded periodically. The time interval is specified in the second parameter (with seconds). After requesting file, the sequence emits an event with response status code and current date in ISO format (string).

Prepare sequence

# in sequence directory
$ yarn build

Send sequence

# in packages/reference-apps directory
$ SEQ_ID=$( \
    curl --location --request POST "http://localhost:8000/api/v1/sequence" \
    --header 'content-type: application/octet-stream' \
    --data-binary '@durability-preservation-event.tar.gz' | jq ".id" -r \
)

Start sequence with args

[file address, interval in seconds]

replace ip with your STH ip

$ INSTANCE_ID=$(curl --location --request POST "http://localhost:8000/api/v1/sequence/$SEQ_ID/start" \
--header 'content-type: application/json' \
--data-raw '{
    "appConfig": {},
    "args": ["https://assets.scramjet.org/scp-store/durability-test/file1.bin", "60"]
}' | jq ".id" -r)
0.22.0

2 years ago

0.21.0

2 years ago

0.20.1

2 years ago

0.20.0

2 years ago

0.19.2

2 years ago

0.19.0

2 years ago

0.18.7

2 years ago

0.18.6

2 years ago

0.18.5

2 years ago

0.18.4

2 years ago

0.18.3

2 years ago

0.18.2

2 years ago

0.18.0

2 years ago

0.17.0

2 years ago

0.16.0

2 years ago

0.15.1

2 years ago

0.15.0

2 years ago

0.14.0

2 years ago

0.13.3

2 years ago

0.13.2

2 years ago

0.13.1

2 years ago

0.13.0

2 years ago