Registry / http-client / drone-drone-go

drone-drone-go

JSON →
library1.7.1gogounverified

Drone Go client library for interacting with the Drone CI/CD API.

go get github.com/drone/drone-go
INSTALL
IMPORT
SIG · DRONE-DRONE-GO
D
drone-drone-go
http-clientgov1.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

drone
github.com/drone/drone-go

Authenticate and fetch current user info from Drone server.

package main import ( "context" "fmt" "github.com/drone/drone-go/drone" "golang.org/x/oauth2" ) func main() { config := new(oauth2.Config) client := drone.NewClient("https://drone.example.com", config.Client(context.Background(), nil)) user, _, err := client.Self.Current() if err != nil { panic(err) } fmt.Printf("User: %s\n", user.Login) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.7.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Resources
drone-drone-go — go get drone-drone-go · libregistry