Skip to content

Commit

Permalink
Implement handlers
Browse files Browse the repository at this point in the history
and go mod tidy/vendor

Signed-off-by: Kirtana Ashok <[email protected]>
  • Loading branch information
kiashok committed Jan 4, 2025
1 parent 301ac92 commit 915a38f
Show file tree
Hide file tree
Showing 98 changed files with 7,939 additions and 167 deletions.
162 changes: 0 additions & 162 deletions cmd/gcs-sidecar/bridge/handlers.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
// - b.quitCh is to be used if stop/shutdownContainer validation fails only right?
// - cherry pick commit to add annotations for securityPolicy
// - shimdiag.exe exec uvmID

// TODO: Do we need to support schema1 request types?
type requestMessage interface {
Base() *requestBase
}
Expand All @@ -33,6 +33,7 @@ type responseMessage interface {
Base() *responseBase
}

/*
// rpc represents an outstanding rpc request to the guest
type rpc struct {
proc rpcProc
Expand All @@ -42,7 +43,7 @@ type rpc struct {
brdgErr error // error encountered when sending the request or unmarshaling the result
ch chan struct{}
}

*/
// TODO: 'B'ridge to 'b'ridge
type Bridge struct {
shimConn io.ReadWriteCloser
Expand Down Expand Up @@ -170,7 +171,7 @@ func (b *Bridge) AssignHandlers() {
b.HandleFunc(rpcStart, b.startContainer)
b.HandleFunc(rpcShutdownGraceful, b.shutdownGraceful)
b.HandleFunc(rpcShutdownForced, b.shutdownForced)
b.HandleFunc(rpcExecuteProcess, b.createProcess)
b.HandleFunc(rpcExecuteProcess, b.executeProcess)
b.HandleFunc(rpcWaitForProcess, b.waitForProcess)
b.HandleFunc(rpcSignalProcess, b.signalProcess)
b.HandleFunc(rpcResizeConsole, b.resizeConsole)
Expand Down
Loading

0 comments on commit 915a38f

Please sign in to comment.