Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 15-Feb-2020 | - | ||||
.gitignore | H A D | 15-Feb-2020 | 300 | 30 | 23 | |
.travis.yml | H A D | 15-Feb-2020 | 267 | 15 | 13 | |
Gopkg.lock | H A D | 15-Feb-2020 | 4 KiB | 175 | 154 | |
Gopkg.toml | H A D | 15-Feb-2020 | 1.2 KiB | 59 | 47 | |
LICENSE | H A D | 15-Feb-2020 | 1 KiB | 22 | 17 | |
README.md | H A D | 15-Feb-2020 | 1.8 KiB | 60 | 42 | |
app_update.go | H A D | 15-Feb-2020 | 5 KiB | 108 | 101 | |
app_usage_events.go | H A D | 15-Feb-2020 | 2.9 KiB | 81 | 71 | |
appevents.go | H A D | 15-Feb-2020 | 6 KiB | 183 | 132 | |
apps.go | H A D | 15-Feb-2020 | 21.2 KiB | 660 | 556 | |
buildpacks.go | H A D | 15-Feb-2020 | 6.6 KiB | 248 | 220 | |
cf_error.go | H A D | 15-Feb-2020 | 92.9 KiB | 3,172 | 1,810 | |
client.go | H A D | 15-Feb-2020 | 9.9 KiB | 408 | 315 | |
domains.go | H A D | 15-Feb-2020 | 8.4 KiB | 291 | 262 | |
environmentvariablegroups.go | H A D | 15-Feb-2020 | 1.5 KiB | 60 | 47 | |
error.go | H A D | 15-Feb-2020 | 1.2 KiB | 55 | 42 | |
events.go | H A D | 15-Feb-2020 | 2.8 KiB | 95 | 78 | |
go.mod | H A D | 15-Feb-2020 | 1 KiB | 21 | 19 | |
go.sum | H A D | 15-Feb-2020 | 6.2 KiB | 66 | 65 | |
info.go | H A D | 15-Feb-2020 | 1.5 KiB | 44 | 37 | |
isolationsegments.go | H A D | 15-Feb-2020 | 7.5 KiB | 252 | 222 | |
org_quotas.go | H A D | 15-Feb-2020 | 5.9 KiB | 185 | 169 | |
orgs.go | H A D | 15-Feb-2020 | 24.8 KiB | 833 | 736 | |
processes.go | H A D | 15-Feb-2020 | 2.9 KiB | 125 | 101 | |
route_mappings.go | H A D | 15-Feb-2020 | 4.4 KiB | 160 | 143 | |
routes.go | H A D | 15-Feb-2020 | 4.9 KiB | 169 | 149 | |
secgroups.go | H A D | 15-Feb-2020 | 17.8 KiB | 566 | 425 | |
service_bindings.go | H A D | 15-Feb-2020 | 5.9 KiB | 177 | 157 | |
service_brokers.go | H A D | 15-Feb-2020 | 5.8 KiB | 208 | 186 | |
service_instances.go | H A D | 15-Feb-2020 | 6.1 KiB | 187 | 160 | |
service_keys.go | H A D | 15-Feb-2020 | 4.9 KiB | 172 | 144 | |
service_plan_visibilities.go | H A D | 15-Feb-2020 | 6.3 KiB | 170 | 153 | |
service_plans.go | H A D | 15-Feb-2020 | 3.7 KiB | 130 | 112 | |
service_usage_events.go | H A D | 15-Feb-2020 | 2.4 KiB | 73 | 63 | |
services.go | H A D | 15-Feb-2020 | 3 KiB | 108 | 96 | |
space_quotas.go | H A D | 15-Feb-2020 | 5.8 KiB | 184 | 167 | |
spaces.go | H A D | 15-Feb-2020 | 24.2 KiB | 791 | 685 | |
stacks.go | H A D | 15-Feb-2020 | 1.9 KiB | 77 | 68 | |
tasks.go | H A D | 15-Feb-2020 | 6.1 KiB | 205 | 161 | |
types.go | H A D | 15-Feb-2020 | 178 | 9 | 7 | |
user_provided_service_instances.go | H A D | 15-Feb-2020 | 6.4 KiB | 186 | 165 | |
users.go | H A D | 15-Feb-2020 | 5.5 KiB | 202 | 178 | |
v3types.go | H A D | 15-Feb-2020 | 479 | 18 | 13 |
README.md
1# go-cfclient 2[![Travis-CI](https://travis-ci.org/cloudfoundry-community/go-cfclient.svg)](https://travis-ci.org/cloudfoundry-community/go-cfclient) 3[![GoDoc](https://godoc.org/github.com/cloudfoundry-community/go-cfclient?status.svg)](http://godoc.org/github.com/cloudfoundry-community/go-cfclient) 4[![Report card](https://goreportcard.com/badge/github.com/cloudfoundry-community/go-cfclient)](https://goreportcard.com/report/github.com/cloudfoundry-community/go-cfclient) 5 6### Overview 7 8`cfclient` is a package to assist you in writing apps that need to interact with [Cloud Foundry](http://cloudfoundry.org). 9It provides functions and structures to retrieve and update 10 11 12### Usage 13 14``` 15go get github.com/cloudfoundry-community/go-cfclient 16``` 17 18NOTE: Currently this project is not versioning its releases and so breaking changes might be introduced. 19Whilst hopefully notifications of breaking changes are made via commit messages, ideally your project will use a local 20vendoring system to lock in a version of `go-cfclient` that is known to work for you. 21This will allow you to control the timing and maintenance of upgrades to newer versions of this library. 22 23Some example code: 24 25```go 26package main 27 28import ( 29 "github.com/cloudfoundry-community/go-cfclient" 30) 31 32func main() { 33 c := &cfclient.Config{ 34 ApiAddress: "https://api.10.244.0.34.xip.io", 35 Username: "admin", 36 Password: "admin", 37 } 38 client, _ := cfclient.NewClient(c) 39 apps, _ := client.ListApps() 40 fmt.Println(apps) 41} 42``` 43 44### Development 45 46#### Errors 47 48If the Cloud Foundry error definitions change at <https://github.com/cloudfoundry/cloud_controller_ng/blob/master/vendor/errors/v2.yml> 49then the error predicate functions in this package need to be regenerated. 50 51To do this, simply use Go to regenerate the code: 52 53``` 54go generate 55``` 56 57### Contributing 58 59Pull requests welcome. 60