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

Prepare soci-store to be linked into and run by the executor #9

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

iain-macdonald
Copy link
Collaborator

This PR makes a few changes so that the soci-store can be run in-process as a goroutine in the executor:

  • Move local file paths to be passed via the config object rather than referenced directly.
  • Move the local_keychain port flag specification into main (we can get rid of the grpc service after it's running in-process too).
  • Makes the Mount() function return the fuse server so it can be unmounted directly on SIGINT.

@@ -124,14 +118,24 @@ func (kc *keychain) GetCredentials(host string, refspec reference.Spec) (string,
return "", "", nil
}

func Keychain(ctx context.Context) *keychain {
func Keychain(ctx context.Context, port int) *keychain {
Copy link
Member

Choose a reason for hiding this comment

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

nit: I would call this func Init

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good call, done

@iain-macdonald iain-macdonald merged commit 32adcb0 into main Aug 28, 2023
@iain-macdonald iain-macdonald deleted the configify branch August 28, 2023 18:02
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