Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help to use gosexy/yaml to parse fig.yml file #2

Open
isymbo opened this issue Nov 30, 2014 · 1 comment
Open

Help to use gosexy/yaml to parse fig.yml file #2

isymbo opened this issue Nov 30, 2014 · 1 comment

Comments

@isymbo
Copy link

isymbo commented Nov 30, 2014

Hi there,

A typical fig.xml contains service names at the first level as illustrated below, however the service names (db, web and concole in this case) are arbitrary, so I have to get the names of the service names first. The problem is that I could not use Getter method to retrieve since I don't know the service names in advance. While the Yaml.settings field is private, what could I do a get a full list of first level of nodes(service names) in yaml file? Any suggestions will be appreciated, thanks!

Sample fig.xml file

db:
  image: busybox:latest
  command: /bin/sleep 300
web:
  image: busybox:latest
  command: /bin/sleep 300
  links:
    - db:db
console:
  image: busybox:latest
  command: /bin/sleep 300
@quicksandznzn
Copy link

package menteslibres.net/gosexy/yaml: unrecognized import path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants