WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Strong types for package API #14

@cpuguy83

Description

@cpuguy83

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions