open-policy-agent
No long description provided.
Installation
dagger install github.com/tsirysndr/daggerverse/open-policy-agent@8d25d8327e474012c7b977d1e0ceeb217e7b839b
Entrypoint
Return Type
OpenPolicyAgent
Example
dagger -m github.com/tsirysndr/daggerverse/open-policy-agent@8d25d8327e474012c7b977d1e0ceeb217e7b839b 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
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
data | String ! | - | No description provided |
input | String ! | - | No description provided |
query | String ! | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/open-policy-agent@8d25d8327e474012c7b977d1e0ceeb217e7b839b call \
evaluate --src DIR_PATH --data string --input string --query string
func (m *myModule) example(ctx context.Context, src *Directory, data string, input string, query string) string {
return dag.
OpenPolicyAgent().
Evaluate(ctx, src, data, input, query)
}
@function
async def example(src: dagger.Directory, data: str, input: str, query: str) -> str:
return await (
dag.open_policy_agent()
.evaluate(src, data, input, query)
)
@func()
async example(src: Directory, data: string, input: string, query: string): Promise<string> {
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@8d25d8327e474012c7b977d1e0ceeb217e7b839b call \
dev
func (m *myModule) example() *Container {
return dag.
OpenPolicyAgent().
Dev()
}
@function
def example() -> dagger.Container:
return (
dag.open_policy_agent()
.dev()
)
@func()
example(): Container {
return dag
.openPolicyAgent()
.dev()
}