• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Feb-2020-

.gitignoreH A D15-Feb-2020300 3023

.travis.ymlH A D15-Feb-2020267 1513

Gopkg.lockH A D15-Feb-20204 KiB175154

Gopkg.tomlH A D15-Feb-20201.2 KiB5947

LICENSEH A D15-Feb-20201 KiB2217

README.mdH A D15-Feb-20201.8 KiB6042

app_update.goH A D15-Feb-20205 KiB108101

app_usage_events.goH A D15-Feb-20202.9 KiB8171

appevents.goH A D15-Feb-20206 KiB183132

apps.goH A D15-Feb-202021.2 KiB660556

buildpacks.goH A D15-Feb-20206.6 KiB248220

cf_error.goH A D15-Feb-202092.9 KiB3,1721,810

client.goH A D15-Feb-20209.9 KiB408315

domains.goH A D15-Feb-20208.4 KiB291262

environmentvariablegroups.goH A D15-Feb-20201.5 KiB6047

error.goH A D15-Feb-20201.2 KiB5542

events.goH A D15-Feb-20202.8 KiB9578

go.modH A D15-Feb-20201 KiB2119

go.sumH A D15-Feb-20206.2 KiB6665

info.goH A D15-Feb-20201.5 KiB4437

isolationsegments.goH A D15-Feb-20207.5 KiB252222

org_quotas.goH A D15-Feb-20205.9 KiB185169

orgs.goH A D15-Feb-202024.8 KiB833736

processes.goH A D15-Feb-20202.9 KiB125101

route_mappings.goH A D15-Feb-20204.4 KiB160143

routes.goH A D15-Feb-20204.9 KiB169149

secgroups.goH A D15-Feb-202017.8 KiB566425

service_bindings.goH A D15-Feb-20205.9 KiB177157

service_brokers.goH A D15-Feb-20205.8 KiB208186

service_instances.goH A D15-Feb-20206.1 KiB187160

service_keys.goH A D15-Feb-20204.9 KiB172144

service_plan_visibilities.goH A D15-Feb-20206.3 KiB170153

service_plans.goH A D15-Feb-20203.7 KiB130112

service_usage_events.goH A D15-Feb-20202.4 KiB7363

services.goH A D15-Feb-20203 KiB10896

space_quotas.goH A D15-Feb-20205.8 KiB184167

spaces.goH A D15-Feb-202024.2 KiB791685

stacks.goH A D15-Feb-20201.9 KiB7768

tasks.goH A D15-Feb-20206.1 KiB205161

types.goH A D15-Feb-2020178 97

user_provided_service_instances.goH A D15-Feb-20206.4 KiB186165

users.goH A D15-Feb-20205.5 KiB202178

v3types.goH A D15-Feb-2020479 1813

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