GitHunt
SA

sambryant4/go-cfclient

Golang client lib for Cloud Foundry

go-cfclient

Overview

Build Status GoDoc

cfclient is a package to assist you in writing apps that need information out of Cloud Foundry. It provides functions and structures to retrieve

Usage

go get github.com/cloudfoundry-community/go-cfclient

Some example code:

package main

import (
	"github.com/cloudfoundry-community/go-cfclient"
)

func main() {
  c := &cfclient.Config{
    ApiAddress:   "https://api.10.244.0.34.xip.io",
    Username:     "admin",
    Password:     "admin",
  }
  client, _ := cfclient.NewClient(c)
  apps, _ := client.ListApps()
  fmt.Println(apps)
}

Developing & Contributing

You can use Godep to restore the dependency
Tested with go1.5.3

godep go build

Pull requests welcome.

Languages

Go100.0%
MIT License
Created July 17, 2017
Updated April 30, 2024
sambryant4/go-cfclient | GitHunt