pub struct CloudRunFlags {
pub gcloud: GCloudFlags,
pub cloud_run: CloudRunServiceFlags,
pub proxy: LocalProxyFlags,
pub build: BuildFlags,
pub source: SourceFlags,
pub bin: String,
pub target: Option<CargoTarget>,
}Expand description
The flags of gadk deploy cloudrun, plus gadk’s --bin and the resolved Cargo target.
Fields§
§gcloud: GCloudFlags§cloud_run: CloudRunServiceFlags§proxy: LocalProxyFlags§build: BuildFlags§source: SourceFlags§bin: Stringgadk’s --bin (not printed).
target: Option<CargoTarget>The Cargo target compute_flags resolved (not printed).
Implementations§
Source§impl CloudRunFlags
impl CloudRunFlags
Sourcepub fn go_v(&self) -> String
pub fn go_v(&self) -> String
The one-line form of the flags (without the newline), printed before deploying:
every flag group in braces in field order, values space-separated (durations as
nanoseconds, derived fields as they are now), byte-identical to the line ADK’s tool
prints; bin and target are not printed.
Sourcepub fn note_passed_oidc_flags(&mut self, passed: &dyn Fn(&str) -> bool)
pub fn note_passed_oidc_flags(&mut self, passed: &dyn Fn(&str) -> bool)
Records which OIDC flags were passed on the command line.
Sourcepub async fn compute_flags(&mut self, env: &Env) -> Result<(), String>
pub async fn compute_flags(&mut self, env: &Env) -> Result<(), String>
Computes the derived flags: the checks in order, target resolution, the shell-safe
checks, then the cloudrun_<local time>__* temp dir and the derived paths.
Sourcepub async fn stage_source(&mut self, env: &Env) -> Result<(), String>
pub async fn stage_source(&mut self, env: &Env) -> Result<(), String>
"Staging source": copies the workspace into
the temp dir and writes a .gcloudignore when the copy has none.
Sourcepub async fn prepare_dockerfile(&self, env: &Env) -> Result<(), String>
pub async fn prepare_dockerfile(&self, env: &Env) -> Result<(), String>
Prepares the Dockerfile: reads only the receiver; the generated Dockerfile
replaces any copied root Dockerfile (removed first, so a symbolic link is never
followed out of the temp dir).
Sourcepub async fn gcloud_deploy_to_cloud_run(&self, env: &Env) -> Result<(), String>
pub async fn gcloud_deploy_to_cloud_run(&self, env: &Env) -> Result<(), String>
Deploys to Cloud Run with gcloud run deploy.
Sourcepub async fn run_gcloud_proxy(&self, env: &Env) -> Result<(), String>
pub async fn run_gcloud_proxy(&self, env: &Env) -> Result<(), String>
Runs the local proxy (banner and gcloud run services proxy).
Sourcepub async fn deploy_on_cloud_run(&mut self, env: &Env) -> Result<(), String>
pub async fn deploy_on_cloud_run(&mut self, env: &Env) -> Result<(), String>
Deploys: prints CloudRunFlags::go_v, then compute → stage →
Dockerfile → deploy → clean → proxy, stopping at the first error (the temp dir is kept).
Trait Implementations§
Source§impl Clone for CloudRunFlags
impl Clone for CloudRunFlags
Source§impl Debug for CloudRunFlags
impl Debug for CloudRunFlags
Source§impl Default for CloudRunFlags
impl Default for CloudRunFlags
impl Eq for CloudRunFlags
Source§impl PartialEq for CloudRunFlags
impl PartialEq for CloudRunFlags
impl StructuralPartialEq for CloudRunFlags
Auto Trait Implementations§
impl Forget for CloudRunFlags
impl Freeze for CloudRunFlags
impl Move for CloudRunFlags
impl RefUnwindSafe for CloudRunFlags
impl Send for CloudRunFlags
impl Sync for CloudRunFlags
impl Unpin for CloudRunFlags
impl UnsafeUnpin for CloudRunFlags
impl UnwindSafe for CloudRunFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.