Skip to content
This repository was archived by the owner on Apr 28, 2018. It is now read-only.

Need cmdlet to generate Docker.DotNet.Models.AuthConfig object #123

Open
bgelens opened this issue Aug 11, 2016 · 1 comment
Open

Need cmdlet to generate Docker.DotNet.Models.AuthConfig object #123

bgelens opened this issue Aug 11, 2016 · 1 comment

Comments

@bgelens
Copy link

bgelens commented Aug 11, 2016

Currently I need to instantiate an AuthConfig object myself and then specify username and password.

$DockerAuth = [Docker.DotNet.Models.AuthConfig]::new()
$DockerAuth.Username = 'bgelens'
$DockerAuth.Password = 'mypassword'

Normally in the PowerShell world, there would be a wrapper cmdlet which would instantiate the object for me. Cmdlets are easier to discover for most users.

The class has no constructors. It would be nicer (in the current context) to have a constructor so we can pass in a pscredential or username and password during instantiation.

@jterry75
Copy link
Contributor

@swernli - I think the cmdlet would have to do the conversion before Docker.DotNet otherwise AuthConfig would have to understand code like PSCredential.

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

No branches or pull requests

2 participants