{"id":23564221,"url":"https://github.com/selectel/craas-go","last_synced_at":"2026-02-18T11:06:22.584Z","repository":{"id":136164856,"uuid":"551417758","full_name":"selectel/craas-go","owner":"selectel","description":"Go SDK for Container Registry Service","archived":false,"fork":false,"pushed_at":"2025-07-22T13:53:03.000Z","size":81,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-08-25T18:48:50.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/selectel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-14T11:10:13.000Z","updated_at":"2025-07-22T13:50:02.000Z","dependencies_parsed_at":"2025-07-22T15:35:30.459Z","dependency_job_id":null,"html_url":"https://github.com/selectel/craas-go","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/selectel/craas-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fcraas-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fcraas-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fcraas-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fcraas-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selectel","download_url":"https://codeload.github.com/selectel/craas-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fcraas-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-12-26T17:13:21.492Z","updated_at":"2026-02-18T11:06:22.579Z","avatar_url":"https://github.com/selectel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# craas-go: Go SDK for Container Registry Service\n\n[![Go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/selectel/craas-go/)\n[![Go Report Card](https://goreportcard.com/badge/github.com/selectel/craas-go)](https://goreportcard.com/report/github.com/selectel/craas-go)\n[![Coverage Status](https://coveralls.io/repos/github/selectel/craas-go/badge.svg?branch=master)](https://coveralls.io/github/selectel/craas-go?branch=master)\n\nPackage craas-go provides Go SDK to work with the Selectel Container Registry Service.\n\n## Documentation\n\nThe Go library documentation is available at [go.dev](https://pkg.go.dev/github.com/selectel/craas-go/).\n\n## What this library is capable of\n\nYou can use this library to work with the following objects of the Selectel Container Registry Service:\n\n* [token](https://pkg.go.dev/github.com/selectel/craas-go/pkg/v1/token)\n* [registry](https://pkg.go.dev/github.com/selectel/craas-go/pkg/v1/registry)\n* [repository](https://pkg.go.dev/github.com/selectel/craas-go/pkg/v1/repository)\n* [garbage-collection](https://pkg.go.dev/github.com/selectel/craas-go/pkg/v1/gc)\n\n## Getting started\n\n### Installation\n\nYou can install needed `craas-go` packages via `go get` command:\n\n```bash\ngo get github.com/selectel/craas-go/pkg/v1/registry\n```\n\n### Authentication\n\nTo work with the Selectel Container Registry API you first need to:\n\n* Create a Selectel account: [registration page](https://my.selectel.ru/registration).\n* Create a project in Selectel Cloud Platform [projects](https://my.selectel.ru/vpc/projects).\n* Retrieve a token for your project via API or [go-selvpcclient](https://github.com/selectel/go-selvpcclient).\n\n### Endpoints\n\nSelectel Container Registry Service currently has the following API endpoints:\n\n| URL                           |\n|-------------------------------|\n| https://cr.selcloud.ru/api/v1 |\n\n### Usage example\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\tv1 \"github.com/selectel/craas-go/pkg\"\n\t\"github.com/selectel/craas-go/pkg/v1/registry\"\n\t\"github.com/selectel/craas-go/pkg/v1/repository\"\n)\n\nfunc main() {\n\t// Token to work with Selectel Cloud project.\n\ttoken := \"gAAAAABeVNzu-...\"\n\n\t// CRaaS endpoint to work with.\n\tendpoint := \"https://cr.selcloud.ru/api/v1\"\n\n\t// Create a new CRaaS client.\n\tcrClient := v1.NewCRaaSClientV1(token, endpoint)\n\n\t// Prepare empty context.\n\tctx := context.Background()\n\n\t// Create a new registry.\n\tcreatedRegistry, _, err := registry.Create(ctx, crClient, \"my-registry\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Print the registry fields.\n\tfmt.Printf(\"Created registry: %+v\", createdRegistry)\n\n\t// Get a list of registry repositories.\n\trepositories, _, err := repository.ListRepositories(ctx, crClient, createdRegistry.ID)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Print the repository fields.\n\tfor _, repo := range repositories {\n\t\tfmt.Printf(\"Repository: %+v\", repo)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectel%2Fcraas-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselectel%2Fcraas-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectel%2Fcraas-go/lists"}