GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
get_keys(3) Arcan Lua API get_keys(3)

get_keys - Retrieve all keys associated with a target or target/config

kvtbl
get_keys( targetname, configname )

This function is intended to be used for the corner cases where one need to explicitly enumerate / filter all key:value pairs associated with a target or a target+config pair, where explicit get_key calls or match_keys calls wouldn't work.

1
output kvtbl will always be a table even if the targetname or

targetname + configname do not resolve to a valid target and config, but the table itself will be empty. Therefore it is not possible to distinguish between valid/invalid targets here.

function get_keys0()

local tbl = list_targets();
if (#tbl == 0) then
warning("get_keys test must be run on a database with a valid target");
return shutdown();
end
store_key("test1", "testval", tbl[1]);
store_key("test2", "testval", tbl[2]);
for k,v in ipairs(get_keys(tbl[1])) do
print(k, v);
end end

July 2025 database

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.