Skip to main content

Crate opencode_cloud_core

Crate opencode_cloud_core 

Source
Expand description

opencode-cloud-core - Core library for opencode-cloud

This library provides the shared functionality for both the Rust CLI and Node.js bindings via NAPI-RS.

Re-exports§

pub use version::get_version;
pub use version::get_version_long;
pub use config::Config;
pub use config::get_hosts_path;
pub use config::load_config;
pub use config::save_config;
pub use singleton::InstanceLock;
pub use singleton::SingletonError;
pub use docker::CONTAINER_NAME;
pub use docker::DockerClient;
pub use docker::DockerError;
pub use docker::OPENCODE_WEB_PORT;
pub use platform::InstallResult;
pub use platform::ServiceConfig;
pub use platform::ServiceManager;
pub use platform::get_service_manager;
pub use platform::is_service_registration_supported;
pub use host::DistroFamily;
pub use host::DistroInfo;
pub use host::HostConfig;
pub use host::HostError;
pub use host::HostsFile;
pub use host::SshConfigMatch;
pub use host::SshTunnel;
pub use host::detect_distro;
pub use host::get_docker_install_commands;
pub use host::get_ssh_config_path;
pub use host::host_exists_in_ssh_config;
pub use host::install_docker;
pub use host::load_hosts;
pub use host::query_ssh_config;
pub use host::save_hosts;
pub use host::test_connection;
pub use host::verify_docker_installed;
pub use host::write_ssh_config_entry;
pub use bollard;

Modules§

config
Configuration management for opencode-cloud
docker
Docker operations module
host
Host management module
platform
Platform-specific service manager abstraction
singleton
Singleton enforcement via PID lock
version
Version information for opencode-cloud