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

Strong types for package API #14

Open
cpuguy83 opened this issue Apr 24, 2017 · 0 comments
Open

Strong types for package API #14

cpuguy83 opened this issue Apr 24, 2017 · 0 comments

Comments

@cpuguy83
Copy link
Contributor

Currently we're relying on string parsing for setting selinux labels. This requires runtime checking and is prone to error.
It would be good if the package provided a strongly typed object for interacting with.

Swarmkit uses this:

type SELinuxContext struct {
	Disable bool

	User  string
	Role  string
	Type  string
	Level string
}
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

1 participant