opainit

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BindProperties

func BindProperties(ctx *bootstrap.ApplicationContext) opa.Properties

func InitializeEmbeddedOPA

func InitializeEmbeddedOPA(lc fx.Lifecycle, opa *sdk.OPA, ready opa.EmbeddedOPAReadyCH)

func RegisterHealth

func RegisterHealth(di regDI)

func Use

func Use()

Use Allow service to include this module in main()

Types

type EmbeddedOPADI

type EmbeddedOPADI struct {
	fx.In
	AppCtx      *bootstrap.ApplicationContext
	Properties  opa.Properties
	Customizers []opa.ConfigCustomizer `group:"opa"`
}

type EmbeddedOPAOut

type EmbeddedOPAOut struct {
	fx.Out
	OPA   *sdk.OPA
	Ready opa.EmbeddedOPAReadyCH
}

func ProvideEmbeddedOPA

func ProvideEmbeddedOPA(di EmbeddedOPADI) (EmbeddedOPAOut, error)

type HealthIndicator

type HealthIndicator struct {
	// contains filtered or unexported fields
}

func (*HealthIndicator) Health

func (*HealthIndicator) Name

func (i *HealthIndicator) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL