open-policy-agent
No long description provided.
Installation
dagger install github.com/tsirysndr/daggerverse/open-policy-agent@3ccd72d448d5034d9ad13f75d7f74609d721229c
Entrypoint
Return Type
OpenPolicyAgent
Example
dagger -m github.com/tsirysndr/daggerverse/open-policy-agent@3ccd72d448d5034d9ad13f75d7f74609d721229c call \
func (m *myModule) example() *OpenPolicyAgent {
return dag.
OpenPolicyAgent()
}
@function
def example() -> dag.OpenPolicyAgent:
return (
dag.open_policy_agent()
)
@func()
example(): OpenPolicyAgent {
return dag
.openPolicyAgent()
}
Types
OpenPolicyAgent 🔗
evaluate() 🔗
Evaluate a rego query
Return Type
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
data | StringKind ! | - | No description provided |
input | StringKind ! | - | No description provided |
query | StringKind ! | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/open-policy-agent@3ccd72d448d5034d9ad13f75d7f74609d721229c call \
evaluate
func (m *myModule) example(src , data , input , query ) {
return dag.
OpenPolicyAgent().
Evaluate(src, data, input, query)
}
@function
def example(src: , data: , input: , query: ) -> :
return (
dag.open_policy_agent()
.evaluate(src, data, input, query)
)
@func()
example(src: , data: , input: , query: ): {
return dag
.openPolicyAgent()
.evaluate(src, data, input, query)
}
dev() 🔗
Returns a container with Open Policy Agent installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/open-policy-agent@3ccd72d448d5034d9ad13f75d7f74609d721229c call \
dev
func (m *myModule) example() {
return dag.
OpenPolicyAgent().
Dev()
}
@function
def example() -> :
return (
dag.open_policy_agent()
.dev()
)
@func()
example(): {
return dag
.openPolicyAgent()
.dev()
}