pub struct GithubProviderConfig { /* private fields */ }Expand description
Fully validated GitHub orchestration policy.
Implementations§
Source§impl GithubProviderConfig
impl GithubProviderConfig
Sourcepub fn new(
repository: Repository,
source_repository: impl Into<String>,
workflow: WorkflowConfig,
workflow_fingerprint: WorkflowFingerprint,
poll_policy: GithubPollingPolicy,
mutation_authorization: GithubMutationAuthorization,
worker_version: &Version,
max_jobs: usize,
) -> Result<Self, GithubProviderConfigError>
pub fn new( repository: Repository, source_repository: impl Into<String>, workflow: WorkflowConfig, workflow_fingerprint: WorkflowFingerprint, poll_policy: GithubPollingPolicy, mutation_authorization: GithubMutationAuthorization, worker_version: &Version, max_jobs: usize, ) -> Result<Self, GithubProviderConfigError>
Bind repository, workflow identity, immutable content, and mutation policy.
§Errors
Rejects a source identity mismatch, fingerprint mismatch, worker-version mismatch, or invalid job bound. The GitHub repository is the execution repository; the source URL may identify a distinct repository.
Sourcepub fn repository(&self) -> &Repository
pub fn repository(&self) -> &Repository
Exact GitHub Actions execution repository.
Sourcepub fn source_repository(&self) -> &str
pub fn source_repository(&self) -> &str
Normalized source repository URL accepted in Git requests.
Sourcepub fn workflow(&self) -> &WorkflowConfig
pub fn workflow(&self) -> &WorkflowConfig
Approved workflow configuration.
Sourcepub fn workflow_fingerprint(&self) -> &WorkflowFingerprint
pub fn workflow_fingerprint(&self) -> &WorkflowFingerprint
Approved exact workflow digest.
Sourcepub const fn poll_policy(&self) -> PollPolicy
pub const fn poll_policy(&self) -> PollPolicy
Bounded run polling policy retained for explicit terminal waits.
External mutation authority captured from the caller.
Sourcepub fn bind_git_endpoints(
self,
source: GithubRemoteSnapshot,
execution: GithubRemoteSnapshot,
) -> Result<Self, GithubProviderConfigError>
pub fn bind_git_endpoints( self, source: GithubRemoteSnapshot, execution: GithubRemoteSnapshot, ) -> Result<Self, GithubProviderConfigError>
Bind immutable canonical Git endpoints captured by setup into the durable provider identity.
§Errors
Rejects snapshots whose repository identities differ from the configured source or execution repositories.
Trait Implementations§
Source§impl Clone for GithubProviderConfig
impl Clone for GithubProviderConfig
Source§impl Debug for GithubProviderConfig
impl Debug for GithubProviderConfig
impl Eq for GithubProviderConfig
Source§impl PartialEq for GithubProviderConfig
impl PartialEq for GithubProviderConfig
impl StructuralPartialEq for GithubProviderConfig
Auto Trait Implementations§
impl Freeze for GithubProviderConfig
impl RefUnwindSafe for GithubProviderConfig
impl Send for GithubProviderConfig
impl Sync for GithubProviderConfig
impl Unpin for GithubProviderConfig
impl UnsafeUnpin for GithubProviderConfig
impl UnwindSafe for GithubProviderConfig
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.