rego

package
v0.0.0-...-bd7144e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReadyParser

func NewReadyParser(config *loki.Config) loki.ReadyParser

NewReadyParser instantiates ReadyParser.

func RegisterReadyParser

func RegisterReadyParser()

RegisterReadyParser registers rego ReadyParser into loki.

Types

type ReadyCond

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

ReadyCond performs readiness check based on rego policy.

func (*ReadyCond) Ready

func (r *ReadyCond) Ready(ctx context.Context) (bool, error)

Ready checks whether system is ready.

type ReadyParser

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

ReadyParser parses the ready section to create ReadyCond which identifies readiness based on rego policy.

func (*ReadyParser) Parse

func (parser *ReadyParser) Parse(readyConf map[string]interface{}) (loki.ReadyCond, error)

Parse parses the ready section which uses rego policy and creates ReadyCond.

Jump to

Keyboard shortcuts

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