Modules
ADT Database GTK2 GUI IP PiJAX Public Sql Stdio Subversion System Tools Xosd lua v4l2 wx
Recent Changes
Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0
Popular Downloads
Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48
|
Pike Module Reference: module version 1, prepared
MODULE Public.Storage |
Modules Manta
|
|
MODULE Public.Storage.Manta |
Modules Storage
|
|
MODULE Public.Storage.Manta.Storage |
Modules Manta
|
|
MODULE Public.Storage.Manta.Storage.Manta |
Classes Entry File Filesystem JobPhase
Methods client_from_keys() generate_authorization_header() generate_fingerprint() load_ssh_private_key()
|
Description
An interface to the Joyent Manta Object Store and Compute Service.
This module supports both the Joyent public cloud as well as privately hosted Manta instances.
For details, see https://apidocs.joyent.com/manta/
-
Constant MANTA_US_EAST
constant
Public.Storage.Manta.Storage.Manta.MANTA_US_EAST
- Description
Joyent Public Cloud Manta Endpoint
-
Method client_from_keys
object(.client) Public.Storage.Manta.Storage.Manta.client_from_keys(string url, string manta_username, string ssh_private_key_path, string|void key_password)
- Description
create a Manta client using SSH key files on disk.
- Parameter url
endpoint for a Manta instance.
- Parameter manta_username
the manta account to access
- Parameter ssh_private_key_path
path to a SSH private key file that is provisioned in the manta account
- Parameter key_password
if the private key is password protected, the password; otherwise null.
-
Method generate_authorization_header
mapping Public.Storage.Manta.Storage.Manta.generate_authorization_header(string keyId, object(Crypto.RSA.State) key, )
- Description
generate an authorization header value using HTTP Signatures
- Parameter keyId
a string containing the keyId associated with the signature (this is implementation defined)
- Parameter key
an RSA private key
- Note
this is a specific implementation that assumes RSA and SHA256 and a Date header.
- Returns
a string suitable for use in an HTTP authorization header.
-
Method generate_fingerprint
string Public.Storage.Manta.Storage.Manta.generate_fingerprint(string contents)
- Description
generate a fingerprint string from an SSH public key file
- Parameter contents
the contents of an SSH public key file.
- Returns
the fingerprint of the public key.
-
Method load_ssh_private_key
object Public.Storage.Manta.Storage.Manta.load_ssh_private_key(string contents, string|void password)
- Description
parse a SSH private key file
- Parameter contents
the contents of an SSH private key file.
- Returns
the fingerprint of the public key.
|
CLASS Public.Storage.Manta.Storage.Manta.Entry |
Methods get_mtime() get_name() get_parent() is_dir() is_obj()
|
- Description
An entry from a directory listing
-
Method get_mtime
object(Calendar.YMD) Public.Storage.Manta.Storage.Manta.Entry()->get_mtime()
-
Method get_name
string Public.Storage.Manta.Storage.Manta.Entry()->get_name()
-
Method get_parent
string Public.Storage.Manta.Storage.Manta.Entry()->get_parent()
-
Method is_dir
int Public.Storage.Manta.Storage.Manta.Entry()->is_dir()
-
Method is_obj
int Public.Storage.Manta.Storage.Manta.Entry()->is_obj()
|
CLASS Public.Storage.Manta.Storage.Manta.File |
Methods create() get_content_type() set_content_type() write()
|
-
Method create
void Public.Storage.Manta.Storage.Manta.File()->create(object(.client) manta_client, string path, string|void content_type, string|void data, string|void mode, int|void ptr)
-
Method get_content_type
string Public.Storage.Manta.Storage.Manta.File()->get_content_type()
-
Inherit FakeFile
Stdio.FakeFile
-
Method set_content_type
void Public.Storage.Manta.Storage.Manta.File()->set_content_type(string content_type)
-
Method write
int(-1..) Public.Storage.Manta.Storage.Manta.File()->write(string|array(string) str, mixed ... extra)
|
CLASS Public.Storage.Manta.Storage.Manta.Filesystem |
Methods create()
|
- Description
Implements an abstraction of a Manta object store.
-
Method create
void Public.Storage.Manta.Storage.Manta.Filesystem()->create(object(.client) manta_client, void|string directory, void|string root, void|int fast, void|object(Filesystem.Base) parent)
- Description
Instanciate a new object representing the Manta object store.
- Parameter manta_client
The Manta object store client to access
- Parameter directory
The directory (in the real filesystem) that should become
the root of the filesystemobject.
- Parameter root
Internal
- Parameter fast
Internal
- Parameter parent
Internal
-
Import
-
Inherit Base
Filesystem.Base
|
CLASS Public.Storage.Manta.Storage.Manta.JobPhase |
Methods create() create() create() set_assets() set_count() set_disk() set_exec() set_init() set_memory() set_name() set_type()
|
-
Method create
void Public.Storage.Manta.Storage.Manta.JobPhase()->create()
-
Method create
void Public.Storage.Manta.Storage.Manta.JobPhase()->create(string _exec, string|void _init)
-
Method create
void Public.Storage.Manta.Storage.Manta.JobPhase()->create(mapping vals)
-
Method set_assets
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_assets(array(string) paths)
- Description
set paths of objects that will be copied into the execution context
- Note
all paths are relative to the user's account root.
-
Method set_count
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_count(int count)
-
Method set_disk
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_disk(int gb)
-
Method set_exec
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_exec(string exec)
- Parameter exec
commands that will be run as part of job
-
Method set_init
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_init(string init)
- Parameter init
commands that will be run before job
-
Method set_memory
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_memory(int mb)
-
Method set_name
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_name(string name)
-
Method set_type
void Public.Storage.Manta.Storage.Manta.JobPhase()->set_type(string type)
|
|