carny v1.0.0 Carny.Identifier
Identifiers are the objects that represent a given resource. i.e. bulwark:my-company:deployments:start
Link to this section Summary
Functions
Returns a global identifier, aka "*"
Parse an arn into an identifier struct
Takes an identifier and creates a list of each component. Useful when you're trying to build a string to represent the Identifier.
Replaces all the variables in a given resource with "" if the compared to resource has a "" in that field
Given two identifiers see if the first matches the second
Link to this section Functions
global()
Returns a global identifier, aka "*"
parse(str)
Parse an arn into an identifier struct
Examples
iex> Carny.Identifier.parse("bulwark:my-company:deployments:start")
%Carny.Identifier{domain: "my-company", organization: "bulwark", privilege: "start", resource: "deployments"}
parts(i)
Takes an identifier and creates a list of each component. Useful when you're trying to build a string to represent the Identifier.
replace_wildcards(a, b)
Replaces all the variables in a given resource with "" if the compared to resource has a "" in that field
validate_against(identifier, resource)
Given two identifiers see if the first matches the second