{"id":18510070,"url":"https://github.com/gitana/cloudcms-go-driver","last_synced_at":"2025-05-14T11:14:17.658Z","repository":{"id":57696539,"uuid":"491240878","full_name":"gitana/cloudcms-go-driver","owner":"gitana","description":"Cloud CMS Go Driver","archived":false,"fork":false,"pushed_at":"2025-01-23T02:44:48.000Z","size":362,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-23T03:27:11.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitana.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitana.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}},"created_at":"2022-05-11T19:08:26.000Z","updated_at":"2025-01-23T02:44:52.000Z","dependencies_parsed_at":"2022-09-15T21:11:41.980Z","dependency_job_id":null,"html_url":"https://github.com/gitana/cloudcms-go-driver","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-go-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-go-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-go-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-go-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitana","download_url":"https://codeload.github.com/gitana/cloudcms-go-driver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239225764,"owners_count":19603158,"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","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":"2024-11-06T15:20:43.268Z","updated_at":"2025-02-17T02:41:17.587Z","avatar_url":"https://github.com/gitana.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudcms-go-driver\n\nHTTP Driver for the for the [Cloud CMS](https://gitana.io) API\n\n## Installation\n\nIn your module directory, run:\n\n`go get github.com/gitana/cloudcms-go-driver`\n## Examples\n\nBelow are some examples of how you might use this driver:\n\n```go\npackage main\n\nimport (\n\t\"github.com/gitana/cloudcms-go-driver\"\n)\n\nfunc main() {\n    // Connect to CloudCMS using gitana.json in working directory\n    session, err := cloudcms.ConnectDefault()\n\tif err != nil {\n\t\tfmt.Println(err)\n        return\n\t}\n\n    var repositoryId string\n\n\n    // List branches\n    branches, _ := session.ListBranches(repositoryId, nil)\n\n    // Read branch\n    branchId := \"master\"\n    branch, _ := session.ReadBranch(repositoryId, branchId)\n\n    // Read Node\n    node, _ := session.ReadNode(repositoryId, branchId, nodeId)\n\n    // Create Node\n    nodeObj := cloudcms.JsonObject{\n        \"title\": \"Twelfth Night\",\n        \"description\": \"An old play\",\n    }\n    nodeId, _ := session.createNode(repositoryId, branchId, nodeObj, nil)\n\n    // Query Nodes\n    query := cloudcms.JsonObject{\n        \"_type\": \"store:book\",\n    }\n    pagination := cloudcms.JsonObject{\n        \"limit\": 1,\n    }\n    queriedNodes, _ session.QueryNodes(repositoryId, branchId, query, pagination)\n\n    // Find Nodes\n    find := cloudcms.JsonObject{\n        \"search\": \"Shakespeare\",\n        \"query\": JsonObject{\n            \"_type\": \"store:book\",\n        }\n    }\n    findNodes, _ := session.FindNodes(repositoryId, branchId, find ,nil)\n}\n```\n\n## Resources\n\n* Cloud CMS: https://gitana.io\n* Github: https://github.com/gitana/cloudcms-go-driver\n* Go Driver Download: TODO\n* Cloud CMS Documentation: https://gitana.io/documentation.html\n* Developers Guide: https://gitana.io/developers.html\n\n## Support\n\nFor information or questions about the Go Driver, please contact Cloud CMS\nat [support@cloudcms.com](mailto:support@cloudcms.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fcloudcms-go-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitana%2Fcloudcms-go-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fcloudcms-go-driver/lists"}