Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci_bindings_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:
branches:
- main
paths:
- "core/core/src/types/capability.rs"
- "dev/src/generate/**"
- "bindings/ocaml/**"
- ".github/actions/setup-ocaml/**"
- ".github/workflows/ci_bindings_ocaml.yml"
Expand Down Expand Up @@ -79,6 +81,13 @@ jobs:
dune build @fmt
dune runtest

- name: Check generated code is up to date
run: |
cargo run --manifest-path=dev/Cargo.toml -- generate -l ocaml
cargo fmt --manifest-path bindings/ocaml/Cargo.toml --all
# `dune build` above also regenerates src/operator.ml{,i} via ocaml-build.
git diff --exit-code

- name: Run getting-started example
run: |
eval $(opam env)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_odev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,15 @@ jobs:
- name: Generate Ruby bindings code
run: cargo run --manifest-path=dev/Cargo.toml -- generate -l ruby

- name: Generate OCaml bindings code
run: cargo run --manifest-path=dev/Cargo.toml -- generate -l ocaml

- name: Generate services documentation data
run: cargo run --manifest-path=dev/Cargo.toml -- generate -l docs
- run: cargo fmt --manifest-path bindings/python/Cargo.toml --all
- run: cargo fmt --manifest-path bindings/dotnet/Cargo.toml --all
- run: cargo fmt --manifest-path bindings/ruby/Cargo.toml --all
- run: cargo fmt --manifest-path bindings/ocaml/Cargo.toml --all

- name: Check diff
run: git diff --exit-code
Expand Down
4 changes: 3 additions & 1 deletion bindings/ocaml/.ocamlformat-ignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
src/**
src/**
lib/capability.ml
lib/capability.mli
120 changes: 120 additions & 0 deletions bindings/ocaml/lib/capability.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
(*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*)

(* DO NOT EDIT IT MANUALLY. This file is generated by
opendal/dev/src/generate/ocaml.rs. *)

let stat = Opendal_core.Operator.capability_stat
let stat_with_if_match = Opendal_core.Operator.capability_stat_with_if_match
let stat_with_if_none_match = Opendal_core.Operator.capability_stat_with_if_none_match
let stat_with_if_version_match = Opendal_core.Operator.capability_stat_with_if_version_match
let stat_with_if_version_not_match = Opendal_core.Operator.capability_stat_with_if_version_not_match
let stat_with_if_modified_since = Opendal_core.Operator.capability_stat_with_if_modified_since
let stat_with_if_unmodified_since = Opendal_core.Operator.capability_stat_with_if_unmodified_since
let stat_with_override_cache_control = Opendal_core.Operator.capability_stat_with_override_cache_control
let stat_with_override_content_disposition = Opendal_core.Operator.capability_stat_with_override_content_disposition
let stat_with_override_content_type = Opendal_core.Operator.capability_stat_with_override_content_type
let stat_with_version = Opendal_core.Operator.capability_stat_with_version
let read = Opendal_core.Operator.capability_read
let read_with_if_match = Opendal_core.Operator.capability_read_with_if_match
let read_with_if_none_match = Opendal_core.Operator.capability_read_with_if_none_match
let read_with_if_version_match = Opendal_core.Operator.capability_read_with_if_version_match
let read_with_if_version_not_match = Opendal_core.Operator.capability_read_with_if_version_not_match
let read_with_if_modified_since = Opendal_core.Operator.capability_read_with_if_modified_since
let read_with_if_unmodified_since = Opendal_core.Operator.capability_read_with_if_unmodified_since
let read_with_override_cache_control = Opendal_core.Operator.capability_read_with_override_cache_control
let read_with_override_content_disposition = Opendal_core.Operator.capability_read_with_override_content_disposition
let read_with_override_content_type = Opendal_core.Operator.capability_read_with_override_content_type
let read_with_version = Opendal_core.Operator.capability_read_with_version
let read_with_suffix = Opendal_core.Operator.capability_read_with_suffix
let read_with_checksum = Opendal_core.Operator.capability_read_with_checksum
let write = Opendal_core.Operator.capability_write
let write_can_multi = Opendal_core.Operator.capability_write_can_multi
let write_can_empty = Opendal_core.Operator.capability_write_can_empty
let write_can_append = Opendal_core.Operator.capability_write_can_append
let write_can_copy_from = Opendal_core.Operator.capability_write_can_copy_from
let write_with_content_type = Opendal_core.Operator.capability_write_with_content_type
let write_with_content_disposition = Opendal_core.Operator.capability_write_with_content_disposition
let write_with_content_encoding = Opendal_core.Operator.capability_write_with_content_encoding
let write_with_content_language = Opendal_core.Operator.capability_write_with_content_language
let write_with_cache_control = Opendal_core.Operator.capability_write_with_cache_control
let write_with_if_match = Opendal_core.Operator.capability_write_with_if_match
let write_with_if_none_match = Opendal_core.Operator.capability_write_with_if_none_match
let write_with_if_version_match = Opendal_core.Operator.capability_write_with_if_version_match
let write_with_if_version_not_match = Opendal_core.Operator.capability_write_with_if_version_not_match
let write_with_if_not_exists = Opendal_core.Operator.capability_write_with_if_not_exists
let write_with_user_metadata = Opendal_core.Operator.capability_write_with_user_metadata
let write_with_expires = Opendal_core.Operator.capability_write_with_expires
let write_with_checksum = Opendal_core.Operator.capability_write_with_checksum
let write_multi_max_size = Opendal_core.Operator.capability_write_multi_max_size
let write_multi_min_size = Opendal_core.Operator.capability_write_multi_min_size
let write_total_max_size = Opendal_core.Operator.capability_write_total_max_size
let create_dir = Opendal_core.Operator.capability_create_dir
let delete = Opendal_core.Operator.capability_delete
let delete_with_version = Opendal_core.Operator.capability_delete_with_version
let delete_with_recursive = Opendal_core.Operator.capability_delete_with_recursive
let delete_with_if_match = Opendal_core.Operator.capability_delete_with_if_match
let delete_with_if_none_match = Opendal_core.Operator.capability_delete_with_if_none_match
let delete_with_if_version_match = Opendal_core.Operator.capability_delete_with_if_version_match
let delete_with_if_version_not_match = Opendal_core.Operator.capability_delete_with_if_version_not_match
let delete_max_size = Opendal_core.Operator.capability_delete_max_size
let copy = Opendal_core.Operator.capability_copy
let copy_with_if_not_exists = Opendal_core.Operator.capability_copy_with_if_not_exists
let copy_with_if_match = Opendal_core.Operator.capability_copy_with_if_match
let copy_with_if_none_match = Opendal_core.Operator.capability_copy_with_if_none_match
let copy_with_if_version_match = Opendal_core.Operator.capability_copy_with_if_version_match
let copy_with_if_version_not_match = Opendal_core.Operator.capability_copy_with_if_version_not_match
let copy_with_source_version = Opendal_core.Operator.capability_copy_with_source_version
let copy_with_user_metadata = Opendal_core.Operator.capability_copy_with_user_metadata
let copy_with_content_type = Opendal_core.Operator.capability_copy_with_content_type
let copy_with_content_language = Opendal_core.Operator.capability_copy_with_content_language
let copy_can_multi = Opendal_core.Operator.capability_copy_can_multi
let copy_multi_max_size = Opendal_core.Operator.capability_copy_multi_max_size
let copy_multi_min_size = Opendal_core.Operator.capability_copy_multi_min_size
let compose = Opendal_core.Operator.capability_compose
let compose_with_content_type = Opendal_core.Operator.capability_compose_with_content_type
let compose_with_content_disposition = Opendal_core.Operator.capability_compose_with_content_disposition
let compose_with_content_encoding = Opendal_core.Operator.capability_compose_with_content_encoding
let compose_with_cache_control = Opendal_core.Operator.capability_compose_with_cache_control
let compose_with_user_metadata = Opendal_core.Operator.capability_compose_with_user_metadata
let compose_with_if_match = Opendal_core.Operator.capability_compose_with_if_match
let compose_with_if_none_match = Opendal_core.Operator.capability_compose_with_if_none_match
let compose_with_if_version_match = Opendal_core.Operator.capability_compose_with_if_version_match
let compose_with_if_version_not_match = Opendal_core.Operator.capability_compose_with_if_version_not_match
let compose_with_if_not_exists = Opendal_core.Operator.capability_compose_with_if_not_exists
let compose_with_source_version = Opendal_core.Operator.capability_compose_with_source_version
let compose_with_source_if_match = Opendal_core.Operator.capability_compose_with_source_if_match
let restore = Opendal_core.Operator.capability_restore
let restore_with_version = Opendal_core.Operator.capability_restore_with_version
let restore_with_if_not_exists = Opendal_core.Operator.capability_restore_with_if_not_exists
let rename = Opendal_core.Operator.capability_rename
let rename_with_if_not_exists = Opendal_core.Operator.capability_rename_with_if_not_exists
let list = Opendal_core.Operator.capability_list
let list_with_limit = Opendal_core.Operator.capability_list_with_limit
let list_with_start_after = Opendal_core.Operator.capability_list_with_start_after
let list_with_recursive = Opendal_core.Operator.capability_list_with_recursive
let list_with_versions = Opendal_core.Operator.capability_list_with_versions
let list_with_deleted = Opendal_core.Operator.capability_list_with_deleted
let list_with_glob = Opendal_core.Operator.capability_list_with_glob
let presign = Opendal_core.Operator.capability_presign
let presign_read = Opendal_core.Operator.capability_presign_read
let presign_stat = Opendal_core.Operator.capability_presign_stat
let presign_write = Opendal_core.Operator.capability_presign_write
let presign_delete = Opendal_core.Operator.capability_presign_delete
let shared = Opendal_core.Operator.capability_shared
Loading
Loading