-
Notifications
You must be signed in to change notification settings - Fork 246
[keychain]: add functionality for container registry list command #502
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
base: main
Are you sure you want to change the base?
[keychain]: add functionality for container registry list command #502
Conversation
jglogan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saehejkang a couple suggestions so that it fits better with the managed resource plan. I've been swamped with other things and need time to think through the design a bit further for that, but we will get there soon.
| } | ||
|
|
||
| /// List all hostnames in the keychain. | ||
| public func listHosts(id: String) throws -> [String] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a public version of two calls if we implement the suggestion above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we do not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT: I am actually unsure how this would work. I feel like both functions need to be public, unless I am interpreting your comment incorrectly?
jglogan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saehejkang Looks good but could you clean up the parameter usage as I mentioned in the comments? Thank you!
| } | ||
| } | ||
|
|
||
| /// List all registry entries for this domain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make the following formal parameter changes in KeychainHelper and KeychainQuery?
- Use
usernameandpasswordfor account name and credentials (notaccountoruser). - Use
securityDomaininstead ofid. - Use
hostnameinstead ofdomainorhost(orregistry domainin docc).
Also can you full docc (description and parameters) on both types?
| public var createdDate: Date | ||
| } | ||
|
|
||
| /// Holds the stored attributes for a registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this in its own file, and add docc for the fields (hostname is a domain name and optional port, for example).
Type of Change
Motivation and Context
container registry listcommandRelates to: apple/container#1088
Testing