{"id":28194311,"url":"https://github.com/monkey-projects/oci-fn","last_synced_at":"2025-07-27T13:07:50.764Z","repository":{"id":197182314,"uuid":"698130058","full_name":"monkey-projects/oci-fn","owner":"monkey-projects","description":"OCI client lib to access fnproject api","archived":false,"fork":false,"pushed_at":"2023-10-03T16:29:49.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T13:11:52.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkey-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-29T08:16:59.000Z","updated_at":"2023-09-29T08:18:50.000Z","dependencies_parsed_at":"2023-09-29T11:20:36.093Z","dependency_job_id":"485442e2-a714-43a5-9d48-33ad181ea494","html_url":"https://github.com/monkey-projects/oci-fn","commit_stats":null,"previous_names":["monkey-projects/oci-fn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monkey-projects/oci-fn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-fn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-fn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-fn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-fn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkey-projects","download_url":"https://codeload.github.com/monkey-projects/oci-fn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-fn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267361499,"owners_count":24074942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-16T13:11:52.377Z","updated_at":"2025-07-27T13:07:50.722Z","avatar_url":"https://github.com/monkey-projects.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCI Fn library\n\nThis is a Clojure lib that provides functions for accessing the [OCI Functions\nservice API](https://docs.oracle.com/en-us/iaas/api/#/en/functions/20181201/).\n\nIt uses [Martian](https://github.com/oliyh/martian) to map routing configuration\nto actual functions.\n\n## Usage\n\nInclude the lib in your project.\nFor CLI tools (`deps.edn`):\n```clojure\n{:com.monkeyprojects/oci-fn {:mvn/version \"\u003cversion\u003e\"}}\n```\nOr Leiningen:\n```clojure\n[com.monkeyprojects/oci-fn \"\u003cversion\u003e\"]\n```\n\nThe functions are in the `monkey.oci.fn.core` namespace.  First of all, you'll\nhave to create a context.  This must be passed to all functions subsequently.\nThe config needed to create the context should include all fields necessary\nto access the API.  The private key must be a Java PrivateKey object.  You can\nparse one using `monkey.oci.common.utils/load-privkey`.\n\n```clojure\n(require '[monkey.oci.fn.core :as fc])\n(require '[monkey.oci.common.utils :as u])\n\n;; The config is required to access the OCI API\n(def config {:user-ocid \"my-user-ocid\"\n             :tenancy-ocid \"my-tenancy\"\n\t     :key-fingerprint \"some fingerprint\"\n\t     :region \"eu-frankfurt-1\"\n\t     :private-key (u/load-privkey \"my-key-file\")})\n\t     \n\n(def ctx (fc/make-context config))\n\n;; Do some stuff\n@(fc/list-applications ctx {})\n; =\u003e Functions return a deferred to deref it\n```\n\nThe functions return the raw response from the API, where the body is parsed from JSON.\nThis is because sometimes you'll need the headers, e.g. for pagination.  Mostly you'll\njust need the `:body` and `:status`.\n\n### Available Endpoints\n\nThe endpoints are auto-generated from the routes declared in the [core namespace](src/monkey/oci/fn/core.clj)\nand they reflect those declared in the [Fn api documentation](https://docs.oracle.com/en-us/iaas/api/#/en/functions/20181201/).\n\n## License\n\nMIT license, see [LICENSE](LICENSE).\nCopyright (c) 2023 by [Monkey Projects BV](https://www.monkeyprojects.be).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Foci-fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkey-projects%2Foci-fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Foci-fn/lists"}