-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
286 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 1,29 @@ | ||
package api | ||
|
||
import ( | ||
"github.com/ranna-go/ranna/internal/config" | ||
"github.com/ranna-go/ranna/internal/sandbox" | ||
"github.com/ranna-go/ranna/internal/spec" | ||
"github.com/ranna-go/ranna/pkg/models" | ||
) | ||
|
||
type ConfigProvider interface { | ||
Config() *config.Config | ||
} | ||
|
||
type SpecProvider interface { | ||
Spec() *spec.SafeSpecMap | ||
} | ||
|
||
type SandboxManager interface { | ||
RunInSandbox( | ||
req *models.ExecutionRequest, | ||
cSpn chan string, | ||
cOut, cErr chan []byte, | ||
cClose chan bool, | ||
) (err error) | ||
PrepareEnvironments(force bool) []error | ||
KillAndCleanUp(id string) (bool, error) | ||
Cleanup() []error | ||
GetProvider() sandbox.Provider | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 1,29 @@ | ||
package v1 | ||
|
||
import ( | ||
"github.com/ranna-go/ranna/internal/config" | ||
"github.com/ranna-go/ranna/internal/sandbox" | ||
"github.com/ranna-go/ranna/internal/spec" | ||
"github.com/ranna-go/ranna/pkg/models" | ||
) | ||
|
||
type SpecProvider interface { | ||
Spec() *spec.SafeSpecMap | ||
} | ||
|
||
type ConfigProvider interface { | ||
Config() *config.Config | ||
} | ||
|
||
type SandboxManager interface { | ||
RunInSandbox( | ||
req *models.ExecutionRequest, | ||
cSpn chan string, | ||
cOut, cErr chan []byte, | ||
cClose chan bool, | ||
) (err error) | ||
PrepareEnvironments(force bool) []error | ||
KillAndCleanUp(id string) (bool, error) | ||
Cleanup() []error | ||
GetProvider() sandbox.Provider | ||
} |
Oops, something went wrong.