HttpPolicyStore
@totemsdk/recursive-mast / HttpPolicyStore
Class: HttpPolicyStore
Implements
Constructors
Constructor
new HttpPolicyStore(
options):HttpPolicyStore
Parameters
options
Returns
HttpPolicyStore
Methods
getBranch()
getBranch(
policyRoot,scriptHash):Promise<MastBranchPackage|null>
Parameters
policyRoot
string
scriptHash
string
Returns
Promise<MastBranchPackage | null>
Implementation of
RecursiveMastPolicyStore.getBranch
getBundle()
getBundle(
bundleHash):Promise<{branches:MastBranchPackage[];manifest:RecursiveMastPolicyManifest; } |null>
Parameters
bundleHash
string
Returns
Promise<{ branches: MastBranchPackage[]; manifest: RecursiveMastPolicyManifest; } | null>
Implementation of
RecursiveMastPolicyStore.getBundle
getManifest()
getManifest(
policyId,version?):Promise<RecursiveMastPolicyManifest|null>
Parameters
policyId
string
version?
number
Returns
Promise<RecursiveMastPolicyManifest | null>
Implementation of
RecursiveMastPolicyStore.getManifest
listBranches()
listBranches(
policyRoot,filter?):Promise<MastBranchSummary[]>
Parameters
policyRoot
string
filter?
Returns
Promise<MastBranchSummary[]>
Implementation of
RecursiveMastPolicyStore.listBranches
putBranch()
putBranch(
_branch):Promise<string>
Parameters
_branch
Returns
Promise<string>
Implementation of
RecursiveMastPolicyStore.putBranch
putBundle()
putBundle(
_manifest,_branches):Promise<string>
Parameters
_manifest
_branches
Returns
Promise<string>
Implementation of
RecursiveMastPolicyStore.putBundle
putManifest()
putManifest(
_manifest):Promise<string>
Parameters
_manifest
Returns
Promise<string>