This service can be used to:
root: Set the work directory for backendtoken: Github access tokenowner: Github ownerrepo: Github repositoryYou can refer to [GithubBuilder]'s docs for more information
use opendal_core::Operator; use opendal_core::Result; use opendal_service_github::Github; #[tokio::main] async fn main() -> Result<()> { // create backend builder let mut builder = Github::default() // set the storage root for OpenDAL .root("/") // set the access token for Github API .token("your_access_token") // set the owner for Github .owner("your_owner") // set the repository for Github .repo("your_repo"); let op: Operator = Operator::new(builder)?.finish(); Ok(()) }