package equinoxe

  1. Overview
  2. Docs

Module Make.AuthSource

This module manages API parts related to authentification.

Sourcetype id

Unique identifier to represent a key in the Equinix API.

Sourcetype config = {
  1. id : id;
  2. token : string;
  3. read_only : bool;
  4. created_at : ODate.Unix.t;
  5. description : string;
}

Representation of an API key config.

Sourceval id_of_string : string -> id

id_of_string str returns a unique identifier from the Equinix API.

Sourceval to_string : config -> string

to_string config returns a string representating an API key.

Sourceval get_keys : t -> config list io

get_keys t returns the keys available for the current user.

Sourceval create_key : t -> ?read_only:bool -> description:string -> unit -> config io

create_key t ~read_only ~description () creates a new API key on Equinix. Default value to read_only is true.

Sourceval delete_key : t -> id:id -> unit io

delete_key t ~id deletes the key referenced by id from the user keys.

Sourceval pp : config -> unit

pp config prints on stdout the config given.

OCaml

Innovation. Community. Security.