Ion.lock types — track installed skills with pinned versions and checksums across Git, binary, and local sources.
LockedSkill
Fields
| Name | Type | Description |
|---|
name | String | |
source | String | |
path | Option<String> | |
version | Option<String> | |
kind | LockedSkillKind | |
Methods
git
pub fn git(name: impl Into<String>, source: impl Into<String>, commit: String, checksum: String) -> Self
binary
pub fn binary(name: impl Into<String>, source: impl Into<String>, binary_name: impl Into<String>, binary_version: Option<String>, binary_checksum: Option<String>) -> Self
local
pub fn local(name: impl Into<String>) -> Self
http
pub fn http(name: impl Into<String>, source: impl Into<String>) -> Self
path
pub fn path(name: impl Into<String>, source: impl Into<String>) -> Self
with_path
pub fn with_path(self, path: impl Into<String>) -> Self
with_version
pub fn with_version(self, version: impl Into<String>) -> Self
with_source
pub fn with_source(self, source: impl Into<String>) -> Self
with_checksum
pub fn with_checksum(self, checksum: impl Into<String>) -> Self
with_dev
pub fn with_dev(self) -> Self
is_binary
pub fn is_binary(&self) -> bool
is_dev
pub fn is_dev(&self) -> bool
binary_name
pub fn binary_name(&self) -> Option<&str>
binary_version
pub fn binary_version(&self) -> Option<&str>
commit
pub fn commit(&self) -> Option<&str>
checksum
pub fn checksum(&self) -> Option<&str>
Trait Implementations
Lockfile
Fields
| Name | Type | Description |
|---|
skills | Vec<LockedSkill> | |
agents | Option<AgentsLockEntry> | |
Methods
from_file
pub fn from_file(path: &Path) -> Result<Self>
write_to
pub fn write_to(&self, path: &Path) -> Result<()>
find
pub fn find(&self, name: &str) -> Option<&LockedSkill>
upsert
pub fn upsert(&mut self, skill: LockedSkill)
remove
pub fn remove(&mut self, name: &str)
Trait Implementations
LockedSkillKind
Variants
Git { commit: String, checksum: String }
Binary { binary_name: String, binary_version: Option<String>, binary_checksum: Option<String>, dev: bool }
Local { checksum: Option<String> }
Http { checksum: Option<String> }
Path { checksum: Option<String> }
Trait Implementations