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

Make some symbols in internal packages package-private #1855

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Feb 17, 2023

… just to express more precisely how they are used, and to possibly help compilers/linters with scope analysis.

Should not change behavior. All of these types are internal, so we can trivially make them public again if necessary.

It is only really usable as a counterpart to
Sigstore.blobChunk, which is package-private already.

External users can use signature.Blob.

Also fix the documentatino of signature.Blob.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
The type is already private, and the fields are
only used inside the type's methods; so reflect
that in the field names.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
The fields are only used inside the type's methods; so reflect
that in the field names.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@vrothberg vrothberg merged commit cb41bde into containers:main Feb 17, 2023
@mtrmac mtrmac deleted the internal-scopes branch February 17, 2023 17:30
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