1Password Connect 的 Go SDK
The 1Password Connect Go SDK provides access to the 1Password Connect API, to facilitate communication with the Connect server hosted on your infrastructure and 1Password. The library is intended to be used by your applications, pipelines, and other automations to simplify accessing items stored in your 1Password vaults.
This project is licensed under MIT. Use of the 1Password APIs and services accessed through these tools is governed by the 1Password API Terms of Service.
Download and install the 1Password Connect Go SDK:
go get github.com/1Password/connect-sdk-goExport the OP_CONNECT_HOST and OP_CONNECT_TOKEN environment variables:
export OP_CONNECT_HOST= && \
export OP_CONNECT_TOKEN=Use it in your code
Read a secret:
import "github.com/1Password/connect-sdk-go/connect"
func main () {
client := connect.NewClientFromEnvironment()
item, err := client.GetItem("", "")
if err != nil {
log.Fatal(err)
}
}Write a secret:
…For more examples, check out USAGE.md.
1Password requests you practice responsible disclosure if you discover a vulnerability.
Please file requests by sending an email to [email protected].
暂无开放 Issues,或尚未同步最近议题。