Skip to content

Conversation

@rhatdan
Copy link
Contributor

@rhatdan rhatdan commented Dec 16, 2017

AddMount should also take a rspec.Mount object rather then a json string.
We are using generate as a library not using the command line tool.
The tool should translate the json into a rspec.Mount.

Signed-off-by: Daniel J Walsh [email protected]

AddMount should also take a rspec.Mount object rather then a json string.
We are using generate as a library not using the command line tool.
The tool should translate the json into a rspec.Mount.

Signed-off-by: Daniel J Walsh <[email protected]>
@wking
Copy link
Contributor

wking commented Dec 16, 2017

We are using generate as a library not using the command line tool.

I think this use-case would be more convenient with #266, although you can get similar access with the current Spec(). An API oriented around direct config access would shift the JSON umarshall under cmd/ (like you do here) and drop AddMounts entirely (because it's easy to call append yourself).

@mrunalp
Copy link
Contributor

mrunalp commented Dec 17, 2017

This is an improvement to the current API. LGTM.

@mrunalp
Copy link
Contributor

mrunalp commented Dec 17, 2017

LGTM

Approved with PullApprove

1 similar comment
@zhouhao3
Copy link

zhouhao3 commented Dec 18, 2017

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit d445714 into opencontainers:master Dec 18, 2017
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

Successfully merging this pull request may close these issues.

4 participants