-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Runner): Continued development of the Synapse Runner application
Signed-off-by: Charles d'Avernas <[email protected]>
- Loading branch information
Showing
75 changed files
with
1,743 additions
and
515 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
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
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
16 changes: 16 additions & 0 deletions
16
src/api/Synapse.Api.Http/Controllers/OperatorsController.cs
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Synapse.Resources; | ||
|
||
namespace Synapse.Api.Http.Controllers; | ||
|
||
/// <summary> | ||
/// Represents the <see cref="NamespacedResourceController{TResource}"/> used to manage <see cref="Operator"/>s | ||
/// </summary> | ||
/// <param name="mediator">The service used to mediate calls</param> | ||
[Route("api/v1/operators")] | ||
public class OperatorsController(IMediator mediator) | ||
: NamespacedResourceController<Operator>(mediator) | ||
{ | ||
|
||
|
||
|
||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Synapse; | ||
|
||
/// <summary> | ||
/// Enumerates all default operator runtime modes | ||
/// </summary> | ||
public static class OperatorRuntimeMode | ||
{ | ||
|
||
/// <summary> | ||
/// Gets the native operator runtime mode | ||
/// </summary> | ||
public const string Native = "native"; | ||
/// <summary> | ||
/// Gets the containerized operator runtime mode | ||
/// </summary> | ||
public const string Containerized = "containerized"; | ||
|
||
/// <summary> | ||
/// Gets a new <see cref="IEnumerable{T}"/> containing all default operator runtime modes | ||
/// </summary> | ||
/// <returns>A new <see cref="IEnumerable{T}"/> containing all default operator runtime modes</returns> | ||
public static IEnumerable<string> AsEnumerable() | ||
{ | ||
yield return Native; | ||
yield return Containerized; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright © 2024-Present Neuroglia SRL. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"), | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace Synapse; | ||
|
||
/// <summary> | ||
/// Exposes all default operator status phases | ||
/// </summary> | ||
public static class OperatorStatusPhase | ||
{ | ||
|
||
/// <summary> | ||
/// Indicates that the operator is running | ||
/// </summary> | ||
public const string Running = "running"; | ||
/// <summary> | ||
/// Indicates that the operator has been stopped and is not running | ||
/// </summary> | ||
public const string Stopped = "stopped"; | ||
|
||
/// <summary> | ||
/// Gets an <see cref="IEnumerable{T}"/> containing default operator status phases | ||
/// </summary> | ||
/// <returns>A new <see cref="IEnumerable{T}"/> containing default operator status phases</returns> | ||
public static IEnumerable<string> AsEnumerable() | ||
{ | ||
yield return Running; | ||
yield return Stopped; | ||
} | ||
|
||
} |
Oops, something went wrong.