Skip to content

lint for volume/*#14818

Merged
LK4D4 merged 1 commit intomoby:masterfrom
MHBauer:volume-lint
Jul 28, 2015
Merged

lint for volume/*#14818
LK4D4 merged 1 commit intomoby:masterfrom
MHBauer:volume-lint

Conversation

@MHBauer
Copy link
Contributor

@MHBauer MHBauer commented Jul 21, 2015

I am not familiar enough with volumes to understand totally what is going on in detail.

I need more expert eyes to make sure these are factual sentences.

for #14756

@calavera
Copy link
Contributor

LGTM

@LK4D4
Copy link
Contributor

LK4D4 commented Jul 22, 2015

Ping @cpuguy83 for review.

Copy link
Member

Choose a reason for hiding this comment

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

VolumeDriver in this context is explicitly for facilitating communications with plugins, and that is all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at volumes and plugins for different reasons and I think I understand this a bit more. How is:
VolumeDriver defines the available functions that volume plugins must implement.

@cpuguy83
Copy link
Member

Some comments, these could probably even be improved.

@MHBauer MHBauer force-pushed the volume-lint branch 2 times, most recently from 9ca923e to 3ad1fee Compare July 24, 2015 03:55
Copy link
Contributor

Choose a reason for hiding this comment

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

collisions

@MHBauer MHBauer force-pushed the volume-lint branch 2 times, most recently from f3a8f3b to 9df12aa Compare July 27, 2015 17:58
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be volume/drivers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm still learning go, so this is confusing to me. The directory path is volume/drivers, but the actual package name is volumedrivers which leads me to think it should be volume/volumedrivers. I realize it's the directory, not the actual name. Thanks.

 - comments on exported values
 - constant string replaced by constant reference
 - unexport implementation details of VolumeDriver 'local'
 - add fixed packages to linter list

Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants