readme_en.md
March 8, 2024 · View on GitHub
Overview
iam-go-sdk is the SDK of blueking IAM(BK-IAM), your system can use BK-IAM easily via SDK.
Features
- Authentication: IsAllowed / IsAllowedWithCache
- Batch Resource - Single Action Authentication: BatchIsAllowed
- Single Resource - Multiple Actions Authentication: ResourceMultiActionsAllowed
- Batch Resoure - Multiple Actions Authentication: BatchResourceMultiActionsAllowed
- Generate permission application URL: GetApplyURL
- Generate no permission json data: GenPermissionApplyData
- Callback request basic auth: IsBasicAuthAllowed / 以及basic auth middleware
- Get Token of the system: GetToken
- Support prometheus metrics
- A simple framework for callback:dispatcher/provider interface
- Support registry model
- Support model migration
Getting started
Installation
$ go get -u github.com/TencentBlueKing/iam-go-sdk
Usage
Benchmark
$ make bench
BenchmarkExprCellEqual-12 6156810 193 ns/op 32 B/op 1 allocs/op
BenchmarkExprCellNotEqual-12 6286323 190 ns/op 32 B/op 1 allocs/op
BenchmarkExprCellLess-12 8583621 142 ns/op 32 B/op 1 allocs/op
BenchmarkExprCellStartsWith-12 9665572 126 ns/op 32 B/op 1 allocs/op
BenchmarkExprCellIn-12 2872075 411 ns/op 64 B/op 3 allocs/op
Roadmap
Support
- bk forum
- bk DevOps online video tutorial(In Chinese)
- Contact us, technical exchange QQ group:
BlueKing Community
- BK-CI:a continuous integration and continuous delivery system that can easily present your R & D process to you.
- BK-BCS:a basic container service platform which provides orchestration and management for micro-service business.
- BK-BCS-SaaS:a SaaS provides users with highly scalable, flexible and easy-to-use container products and services.
- BK-PaaS:an development platform that allows developers to create, develop, deploy and manage SaaS applications easily and quickly.
- BK-SOPS:an lightweight scheduling SaaS for task flow scheduling and execution through a visual graphical interface.
- BK-CMDB:an enterprise-level configuration management platform for assets and applications.
Contributing
If you have good ideas or suggestions, please let us know by Issues or Pull Requests and contribute to the Blue Whale Open Source Community.
License
Based on the MIT protocol. Please refer to LICENSE
