文件名称:drone-go:使用Drone API的客户端
文件大小:72KB
文件格式:ZIP
更新时间:2024-05-28 10:40:37
Go
无人驾驶飞机 package main import ( "fmt" "github.com/drone/drone-go/drone" "golang.org/x/oauth2" ) const ( token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" host = "http://drone.company.com" ) func main () { // create an http client with oauth authentication. config := new (oauth2. Config ) auther := config . Client ( oauth2 . NoContext , & oauth2. Token { AccessToken : token , }, ) //
【文件预览】:
drone-go-master
----NOTICE(116B)
----drone()
--------testdata()
--------const.go(1KB)
--------client_test.go(16KB)
--------client.go(20KB)
--------interface.go(7KB)
--------types.go(12KB)
----LICENSE(11KB)
----.drone.yml(114B)
----plugin()
--------registry()
--------config()
--------internal()
--------webhook()
--------admission()
--------converter()
--------environ()
--------logger()
--------validator()
--------secret()
----go.sum(418B)
----README.md(803B)
----go.mod(163B)