CFoundry: Cloud Foundry Swift Client
Features
- Compatible with Cloud Foundry v2 API
- Ability to list Organizations, Spaces, and Applications
- Details such as Application Summary, Service Bindings, Instance information, and Events
- Recent & Realtime Application Log Streaming
Installation
CocoaPods
You can use CocoaPods to install CFoundry by adding it to your Podfile:
use_frameworks!
target 'MyApp' do
pod 'CFoundry'
endCarthage
You can use Carthage to install CFoundry by adding it to your Cartfile:
github "osis/cf-swift-sdk"
If you use Carthage to build your dependencies, make sure you have added CFoundry.framework to the "Linked Frameworks and Libraries" section of your target, and have included them in your Carthage framework copying build phase.
Sample
CFApi.info(apiURL: urlString) { (info: CFInfo?, error: Error?) in
if let e = error {
return
}
if let i = info {
print(i.apiVersion)
}
}