-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace generic docker API proxy with specific endpoints
- Loading branch information
Roy Razon
committed
Sep 5, 2023
1 parent
550a3c5
commit d58bd24
Showing
30 changed files
with
473 additions
and
384 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const COMPOSE_TUNNEL_AGENT_SERVICE_LABELS = { | ||
PROFILE_THUMBPRINT: 'preevy.profile_thumbprint', | ||
PRIVATE_MODE: 'preevy.private_mode', | ||
ENV_ID: 'preevy.env_id', | ||
ACCESS: 'preevy.access', | ||
EXPOSE: 'preevy.expose', | ||
} | ||
|
||
export const COMPOSE_TUNNEL_AGENT_SERVICE_NAME = 'preevy_proxy' | ||
export const COMPOSE_TUNNEL_AGENT_PORT = 3000 |
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,13 @@ | ||
import { BadRequestError, NotFoundError } from './http-server-helpers' | ||
|
||
export class MissingContainerIdError extends BadRequestError { | ||
constructor() { | ||
super('Missing container id') | ||
} | ||
} | ||
|
||
export class ContainerNotFoundError extends NotFoundError { | ||
constructor(containerId: string) { | ||
super(`Container "${containerId}" does not exist or is not managed by this agent`) | ||
} | ||
} |
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
Oops, something went wrong.