Skip to content

Make AuthConfig fluent, setters -> with.#454

Merged
KostyaSha merged 2 commits intodocker-java:masterfrom
KostyaSha:authConfig
Feb 9, 2016
Merged

Make AuthConfig fluent, setters -> with.#454
KostyaSha merged 2 commits intodocker-java:masterfrom
KostyaSha:authConfig

Conversation

@KostyaSha
Copy link
Copy Markdown
Member

Resolves #453

@KostyaSha
Copy link
Copy Markdown
Member Author

I failed checkstyle :)

}

public void setServerAddress(String serverAddress) {
public AuthConfig withServerAddress(String serverAddress) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this should be included in this PR but I suggest to rename method to withRegistryUrl. WDYT?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it not url, it just addr:port. Probably withRegistryAddr is better

@KostyaSha KostyaSha changed the title Make AuthConfig fluent setters. Make AuthConfig fluent, setters -> with. Feb 8, 2016
@KostyaSha
Copy link
Copy Markdown
Member Author

@marcuslinke added as separate commit

}

public void setServerAddress(String serverAddress) {
public AuthConfig withRegistryAddres(String serverAddress) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found typo :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename argument also please

@KostyaSha
Copy link
Copy Markdown
Member Author

:E done

This is more correct as auth used only for pull/push operations.
@marcuslinke
Copy link
Copy Markdown
Contributor

LGTM. Feel free to merge!

KostyaSha added a commit that referenced this pull request Feb 9, 2016
Make AuthConfig fluent, setters -> with.
@KostyaSha KostyaSha merged commit e4a7f87 into docker-java:master Feb 9, 2016
@KostyaSha KostyaSha added this to the 3.0.0 milestone Feb 9, 2016
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.

2 participants