{"modulePath":"github.com/Coding/drone","version":"v0.4.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Types\n\n```go\ntype Client interface {\n\t// Sign returns a cryptographic signature for the input string.\n\tSign(string, string, []byte) ([]byte, error)\n\n\t// SecretPost create or updates a repository secret.\n\tSecretPost(string, string, *model.Secret) error\n\n\t// SecretDel deletes a named repository secret.\n\tSecretDel(string, string, string) error\n\n\t// Pull pulls work from the server queue.\n\tPull(os, arch string) (*queue.Work, error)\n\n\t// Push pushes an update to the server.\n\tPush(*queue.Work) error\n\n\t// Stream streams the build logs to the server.\n\tStream(int64, io.ReadCloser) error\n\n\t// Wait waits for the job to the complete.\n\tWait(int64) *Wait\n}\n```\nClient is used to communicate with a Drone server.\n\n```go\nfunc NewClient(uri string) Client\n```\nNewClient returns a client at the specified url.\n\n```go\nfunc NewClientToken(uri, token string) Client\n```\nNewClientToken returns a client at the specified url that authenticates all outbound requests with the given token.\n\n```go\nfunc NewClientTokenTLS(uri, token string, c *tls.Config) Client\n```\nNewClientTokenTLS returns a client at the specified url that authenticates all outbound requests with the given token and tls.Config if provided.\n\n```go\ntype Wait struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (w *Wait) Cancel()\n```\n\n```go\nfunc (w *Wait) Done() (*model.Job, error)\n```\n\n","path":"github.com/Coding/drone/client","name":"client","synopsis":"","isRedistributable":true}
