Skip to content

Instantly share code, notes, and snippets.

@johnmccabe
Created July 4, 2017 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmccabe/540907b22cd13f53866ff5661818ca46 to your computer and use it in GitHub Desktop.
Save johnmccabe/540907b22cd13f53866ff5661818ca46 to your computer and use it in GitHub Desktop.
libral.GetTypes() go wrapper output
{
"providers": [
{
"name": "file::posix",
"type": "file",
"source": "builtin",
"desc": "A provider to manage POSIX files.\n",
"suitable": true,
"attributes": [
{
"name": "checksum",
"desc": "(missing description)",
"type": "enum[md5, md5lite, sha256, sha256lite, mtime, ctime, none]",
"kind": "r"
},
{
"name": "checksum_value",
"desc": "(missing description)",
"type": "string",
"kind": "r"
},
{
"name": "content",
"desc": "(missing description)",
"type": "string",
"kind": "rw"
},
{
"name": "ctime",
"desc": "(missing description)",
"type": "string",
"kind": "r"
},
{
"name": "ensure",
"desc": "(missing description)",
"type": "enum[present, absent, file, directory, link]",
"kind": "rw"
},
{
"name": "force",
"desc": "any operation requiring removing a directory will only be performed\nif this is set to 'true'\n",
"type": "boolean",
"kind": "w"
},
{
"name": "group",
"desc": "group name or id",
"type": "string",
"kind": "rw"
},
{
"name": "mode",
"desc": "file mode in octal notation",
"type": "string",
"kind": "rw"
},
{
"name": "mtime",
"desc": "(missing description)",
"type": "string",
"kind": "r"
},
{
"name": "name",
"desc": "the (absolute) path to the file",
"type": "string",
"kind": "rw"
},
{
"name": "owner",
"desc": "user name or id",
"type": "string",
"kind": "rw"
},
{
"name": "target",
"desc": "target of a link (when ensure == link)",
"type": "string",
"kind": "rw"
},
{
"name": "type",
"desc": "indicate the type of file",
"type": "enum[unknown, error, absent, file, directory, link, block, char, fifo, socket]",
"kind": "r"
}
]
},
{
"name": "host::aug",
"type": "host",
"source": "builtin",
"desc": "Manage mount points using the mount command on Linux.\n",
"suitable": true,
"attributes": [
{
"name": "comment",
"desc": "a comment that will be attached to the line with a",
"type": "string",
"kind": "rw"
},
{
"name": "ensure",
"desc": "(missing description)",
"type": "enum[present, absent]",
"kind": "rw"
},
{
"name": "host_aliases",
"desc": "any aliases the host might have. Multiple values must be specified as an array",
"type": "array[string]",
"kind": "rw"
},
{
"name": "ip",
"desc": "the host's IPv4 or IPv6 address",
"type": "string",
"kind": "rw"
},
{
"name": "name",
"desc": "the host name",
"type": "string",
"kind": "rw"
},
{
"name": "target",
"desc": "the file in which to store service information",
"type": "string",
"kind": "r"
}
]
},
{
"name": "mount::aug",
"type": "mount",
"source": "builtin",
"desc": "Manage mount points using the mount command on Linux.\n",
"suitable": true,
"attributes": [
{
"name": "device",
"desc": "the device to mount",
"type": "string",
"kind": "rw"
},
{
"name": "dump",
"desc": "(missing description)",
"type": "string",
"kind": "rw"
},
{
"name": "ensure",
"desc": "(missing description)",
"type": "enum[defined, present, mounted, unmounted, absent, ghost]",
"kind": "rw"
},
{
"name": "fstype",
"desc": "the mount type",
"type": "string",
"kind": "rw"
},
{
"name": "name",
"desc": "the mount point",
"type": "string",
"kind": "rw"
},
{
"name": "options",
"desc": "a single string containing options",
"type": "string",
"kind": "rw"
},
{
"name": "pass",
"desc": "the pass in which the mount is checked",
"type": "string",
"kind": "rw"
}
]
},
{
"name": "ssh_authorized_key::ssh_authorized_key",
"type": "ssh_authorized_key",
"source": "/usr/local/share/libral/data/providers/ssh_authorized_key.prov",
"desc": "Manage ssh authorized keys in user's .ssh/authorized_keys files\n",
"suitable": true,
"attributes": [
{
"name": "ensure",
"desc": "(missing description)",
"type": "enum[absent, present]",
"kind": "rw"
},
{
"name": "key",
"desc": "The public key itself. Generally, a long string of hex characters.\nThe `key` attribute may not contain whitespace.\n",
"type": "string",
"kind": "rw"
},
{
"name": "name",
"desc": "The SSH key comment. This can be anything, and doesn't need to match\nthe original comment from the `.pub` file.\n\nDue to internal limitations, this must be unique across all user\naccounts; if you want to specify one key for multiple users, you\nmust use a different comment for each instance.\n",
"type": "string",
"kind": "rw"
},
{
"name": "options",
"desc": "Key options; see sshd(8) for possible values.\n",
"type": "array[string]",
"kind": "rw"
},
{
"name": "target",
"desc": "The absolute path to the file containing the key",
"type": "string",
"kind": "r"
},
{
"name": "type",
"desc": "The encryption type used.",
"type": "string",
"kind": "rw"
},
{
"name": "user",
"desc": "The user account in which the SSH key should be installed.\n",
"type": "string",
"kind": "rw"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment