https://github.com/osis/cf-swift-client
Swift Client Library for Cloud Foundry
https://github.com/osis/cf-swift-client
apple-tv apple-watch cloud-foundry ios macos
Last synced: 6 months ago
JSON representation
Swift Client Library for Cloud Foundry
- Host: GitHub
- URL: https://github.com/osis/cf-swift-client
- Owner: osis
- License: apache-2.0
- Created: 2018-02-11T00:33:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-17T22:36:51.000Z (over 7 years ago)
- Last Synced: 2025-03-18T23:40:52.889Z (7 months ago)
- Topics: apple-tv, apple-watch, cloud-foundry, ios, macos
- Language: Swift
- Homepage:
- Size: 2.18 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CFoundry: Cloud Foundry Swift Client
[](https://travis-ci.org/osis/cf-swift-client) [](https://codebeat.co/projects/github-com-osis-cf-swift-sdk-master) [](https://github.com/Carthage/Carthage)  ## 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](http://cocoapods.org/) to install `CFoundry` by adding it to your `Podfile`:
```ruby
use_frameworks!target 'MyApp' do
pod 'CFoundry'
end
```#### Carthage
You can use [Carthage](https://github.com/Carthage/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
```swift
CFApi.info(apiURL: urlString) { (info: CFInfo?, error: Error?) in
if let e = error {
return
}
if let i = info {
print(i.apiVersion)
}
}
```## In Use
[CF Apps IOS](https://github.com/osis/cf-apps-ios)