-
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.
- Loading branch information
Showing
38 changed files
with
508 additions
and
141 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
Validating CODEOWNERS rules …
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,10 +1,9 @@ | ||
.github/** @sjmiller609 @nhudson @ianstanton | ||
charts/** @sjmiller609 @nhudson @ianstanton | ||
dataplane-webserver/** @sjmiller609 | ||
tembo-operator/** @sjmiller609 @nhudson @ianstanton @ChuckHend | ||
conductor/** @sjmiller609 @nhudson @ianstanton @ChuckHend | ||
tembo-pod-init/** @nhudson | ||
tembo-cli/** @shahadarsh @vrmiguel @DarrenBaldwin07 @sjmiller609 | ||
tembo-py/** @chuckhend @EvanHStanton | ||
tembo-stacks/** @chuckhend @jasonmp85 @shhnwz | ||
inference-gateway/** @chuckhend @jasonmp85 @shhnwz | ||
.github/** @nhudson @ianstanton @shahadarsh | ||
charts/** @nhudson @ianstanton @shahadarsh | ||
tembo-operator/** @nhudson @ianstanton @ChuckHend | ||
conductor/** @nhudson @ianstanton @ChuckHend | ||
tembo-pod-init/** @nhudson @ianstanton | ||
tembo-cli/** @shahadarsh @vrmiguel @DarrenBaldwin07 @joshuajerin | ||
tembo-py/** @chuckhend | ||
tembo-stacks/** @chuckhend @jasonmp85 | ||
inference-gateway/** @chuckhend @jasonmp85 |
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,62 @@ | ||
// Add this enum at the top of your file or in a separate module | ||
pub struct CloudProviderBuilder { | ||
gcp: bool, | ||
aws: bool, | ||
} | ||
|
||
impl CloudProviderBuilder { | ||
fn new() -> Self { | ||
CloudProviderBuilder { | ||
gcp: false, | ||
aws: false, | ||
} | ||
} | ||
|
||
pub fn gcp(mut self, value: bool) -> Self { | ||
self.gcp = value; | ||
self | ||
} | ||
|
||
pub fn aws(mut self, value: bool) -> Self { | ||
self.aws = value; | ||
self | ||
} | ||
|
||
pub fn build(self) -> CloudProvider { | ||
if self.gcp { | ||
CloudProvider::GCP | ||
} else if self.aws { | ||
CloudProvider::AWS | ||
} else { | ||
CloudProvider::Unknown | ||
} | ||
} | ||
} | ||
|
||
pub enum CloudProvider { | ||
AWS, | ||
GCP, | ||
Unknown, | ||
} | ||
|
||
impl CloudProvider { | ||
pub fn as_str(&self) -> &'static str { | ||
match self { | ||
CloudProvider::AWS => "aws", | ||
CloudProvider::GCP => "gcp", | ||
CloudProvider::Unknown => "unknown", | ||
} | ||
} | ||
|
||
pub fn prefix(&self) -> &'static str { | ||
match self { | ||
CloudProvider::AWS => "s3://", | ||
CloudProvider::GCP => "gs://", | ||
CloudProvider::Unknown => "", | ||
} | ||
} | ||
|
||
pub fn builder() -> CloudProviderBuilder { | ||
CloudProviderBuilder::new() | ||
} | ||
} |
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.