PreferredStack returns the cflinuxfs4 stack name if it present, otherwise cflinuxfs3 is returned.
()
| 38 | |
| 39 | // PreferredStack returns the cflinuxfs4 stack name if it present, otherwise cflinuxfs3 is returned. |
| 40 | func PreferredStack() string { |
| 41 | stacks := FetchStacks() |
| 42 | |
| 43 | for _, name := range stacks { |
| 44 | if name == "cflinuxfs4" { |
| 45 | return name |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | return "cflinuxfs3" |
| 50 | } |
| 51 | |
| 52 | // CreateStack creates a new stack with the user provided name. If a name is not provided, a random name is used |
| 53 | func CreateStack(names ...string) string { |
no test coverage detected