2022-02-19 05:45:21 -08:00
|
|
|
---
|
|
|
|
id: cftarget
|
|
|
|
title: Cloud Foundry Target
|
|
|
|
sidebar_label: Cloud Foundry Target
|
|
|
|
---
|
|
|
|
|
|
|
|
## What
|
|
|
|
|
|
|
|
Display the details of the logged [Cloud Foundry endpoint][cf-target] (`cf target` details).
|
|
|
|
|
|
|
|
## Sample Configuration
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"background": "#a7cae1",
|
|
|
|
"foreground": "#100e23",
|
|
|
|
"powerline_symbol": "\ue0b0",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " \uf40a {{ .Org }}/{{ .Space }} ",
|
2022-02-19 05:45:21 -08:00
|
|
|
"style": "powerline",
|
|
|
|
"type": "cftarget"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Template ([info][templates])
|
|
|
|
|
|
|
|
:::note default template
|
|
|
|
|
|
|
|
```template
|
|
|
|
{{if .Org }}{{ .Org }}{{ end }}{{ if .Space }}/{{ .Space }}{{ end }}
|
|
|
|
```
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2022-05-16 08:20:03 -07:00
|
|
|
### Properties
|
2022-02-19 05:45:21 -08:00
|
|
|
|
2022-09-16 07:32:48 -07:00
|
|
|
| Name | Type | Description |
|
|
|
|
| -------- | -------- | -------------------------- |
|
|
|
|
| `.Org` | `string` | Cloud Foundry organization |
|
|
|
|
| `.Space` | `string` | Cloud Foundry space |
|
|
|
|
| `.URL` | `string` | Cloud Foundry API URL |
|
|
|
|
| `.User` | `string` | logged in user |
|
2022-02-19 05:45:21 -08:00
|
|
|
|
2022-04-20 09:43:59 -07:00
|
|
|
[templates]: /docs/configuration/templates
|
2022-02-19 05:45:21 -08:00
|
|
|
[cf-target]: https://cli.cloudfoundry.org/en-US/v8/target.html
|