pub struct WorkflowConfig { /* private fields */ }Expand description
Fully validated inputs for the signed physical-iPhone workflow.
Implementations§
Source§impl WorkflowConfig
impl WorkflowConfig
Sourcepub fn new(
filename: WorkflowFileName,
protected_environment: ProtectedEnvironment,
secret_names: SigningSecretNames,
worker: WorkerDistribution,
public_source_repository: PublicSourceRepository,
trusted_source_ref: TrustedSourceRef,
temporary_branch_namespace: TemporaryBranchNamespace,
) -> Result<Self, WorkflowConfigError>
pub fn new( filename: WorkflowFileName, protected_environment: ProtectedEnvironment, secret_names: SigningSecretNames, worker: WorkerDistribution, public_source_repository: PublicSourceRepository, trusted_source_ref: TrustedSourceRef, temporary_branch_namespace: TemporaryBranchNamespace, ) -> Result<Self, WorkflowConfigError>
Bind the security-sensitive workflow configuration.
Defaults to push dispatch through the temporary branch namespace.
§Errors
Rejects a trusted branch that lives inside the temporary job namespace.
Sourcepub fn new_with_run_trigger(
filename: WorkflowFileName,
protected_environment: ProtectedEnvironment,
secret_names: SigningSecretNames,
worker: WorkerDistribution,
public_source_repository: PublicSourceRepository,
trusted_source_ref: TrustedSourceRef,
temporary_branch_namespace: TemporaryBranchNamespace,
run_trigger: WorkflowRunTrigger,
) -> Result<Self, WorkflowConfigError>
pub fn new_with_run_trigger( filename: WorkflowFileName, protected_environment: ProtectedEnvironment, secret_names: SigningSecretNames, worker: WorkerDistribution, public_source_repository: PublicSourceRepository, trusted_source_ref: TrustedSourceRef, temporary_branch_namespace: TemporaryBranchNamespace, run_trigger: WorkflowRunTrigger, ) -> Result<Self, WorkflowConfigError>
Bind the security-sensitive workflow configuration and one exact run trigger.
§Errors
Rejects a trusted branch that lives inside the temporary job namespace.
Sourcepub fn with_developer_directory(
self,
developer_directory: DeveloperDirectory,
) -> Self
pub fn with_developer_directory( self, developer_directory: DeveloperDirectory, ) -> Self
Select a validated per-job Xcode developer directory.
Sourcepub fn with_limits(self, limits: WorkflowLimits) -> Self
pub fn with_limits(self, limits: WorkflowLimits) -> Self
Apply bounded timeout and retention policy.
Sourcepub fn filename(&self) -> &WorkflowFileName
pub fn filename(&self) -> &WorkflowFileName
Generated workflow basename.
Sourcepub fn protected_environment(&self) -> &ProtectedEnvironment
pub fn protected_environment(&self) -> &ProtectedEnvironment
Protected signing environment.
Sourcepub fn secret_names(&self) -> &SigningSecretNames
pub fn secret_names(&self) -> &SigningSecretNames
Opaque signing secret reference names.
Sourcepub fn worker(&self) -> &WorkerDistribution
pub fn worker(&self) -> &WorkerDistribution
Trusted worker provisioning policy.
Sourcepub fn public_source_repository(&self) -> &PublicSourceRepository
pub fn public_source_repository(&self) -> &PublicSourceRepository
Public GitHub repository containing trusted and requested source.
Sourcepub fn trusted_source_ref(&self) -> &TrustedSourceRef
pub fn trusted_source_ref(&self) -> &TrustedSourceRef
Allowlisted source branch or tag.
Sourcepub fn temporary_branch_namespace(&self) -> &TemporaryBranchNamespace
pub fn temporary_branch_namespace(&self) -> &TemporaryBranchNamespace
Temporary provider branch namespace.
Sourcepub fn developer_directory(&self) -> &DeveloperDirectory
pub fn developer_directory(&self) -> &DeveloperDirectory
Per-job Xcode selection.
Sourcepub const fn limits(&self) -> WorkflowLimits
pub const fn limits(&self) -> WorkflowLimits
Bounded execution policy.
Sourcepub const fn run_trigger(&self) -> WorkflowRunTrigger
pub const fn run_trigger(&self) -> WorkflowRunTrigger
Exact GitHub event admitted by the generated workflow.
Trait Implementations§
Source§impl Clone for WorkflowConfig
impl Clone for WorkflowConfig
Source§impl Debug for WorkflowConfig
impl Debug for WorkflowConfig
impl Eq for WorkflowConfig
Source§impl PartialEq for WorkflowConfig
impl PartialEq for WorkflowConfig
impl StructuralPartialEq for WorkflowConfig
Auto Trait Implementations§
impl Freeze for WorkflowConfig
impl RefUnwindSafe for WorkflowConfig
impl Send for WorkflowConfig
impl Sync for WorkflowConfig
impl Unpin for WorkflowConfig
impl UnsafeUnpin for WorkflowConfig
impl UnwindSafe for WorkflowConfig
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
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§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.