在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tumblr/go-collins开源软件地址:https://github.com/tumblr/go-collins开源编程语言:Go 99.2%开源软件介绍:go-collinsgo-collins is a client library for Collins (our inventory management database) written in Go. It covers the full API and allows you to manage your assets and their data from Go applications. It is very much influenced by the beautiful go-github project. UsageWe use semantic versioning to indicate what the scope of changes between versions are. You can use this to ensure breaking changes aren't introduced in to your application by using gopkg.in to get the package, and specify the major version there.
The current gopkg version is v0, which means that the package is of alpha or beta quality. While we do actively use go-collins at Tumblr and will try to maintain a stable interface, for now consider this a work-in-progress in that breaking changes may be made. To start querying collins, import go-collins and set up a new
In the client struct, there are pointers to services that can be used to talk to specific parts of the API. The most common use (at least at Tumblr) is talking to the asset API for things like getting the number of physical CPUs in an asset:
Or finding assets that match certain criteria:
PaginationSome routes in the API (finding assets and fetching logs) are paginated. To
support pagination we include pagination information in the Request struct
returned by the functions. The members are
ContributingBug reports and patches are very welcome. Before contributing code, please see CONTRIBUTING.md. ContributorsLicenceCopyright 2016 Tumblr Inc. Licensed 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论