mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-12-22 18:33:30 +01:00
feat: with gen
This commit is contained in:
parent
114f411cdb
commit
9ea18700e7
@ -2775,6 +2775,24 @@ impl Query {
|
||||
graphql_client: self.graphql_client.clone(),
|
||||
};
|
||||
}
|
||||
/// Sets a secret given a user defined name to its plaintext and returns the secret.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `name` - The user defined name for this secret
|
||||
/// * `plaintext` - The plaintext of the secret
|
||||
pub fn set_secret(&self, name: impl Into<String>, plaintext: impl Into<String>) -> Secret {
|
||||
let mut query = self.selection.select("setSecret");
|
||||
|
||||
query = query.arg("name", name.into());
|
||||
query = query.arg("plaintext", plaintext.into());
|
||||
|
||||
return Secret {
|
||||
proc: self.proc.clone(),
|
||||
selection: query,
|
||||
graphql_client: self.graphql_client.clone(),
|
||||
};
|
||||
}
|
||||
/// Loads a socket by its ID.
|
||||
///
|
||||
/// # Arguments
|
||||
|
Loading…
Reference in New Issue
Block a user