store

package
v1.3.6-rc4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mock bool

Functions

func GetMock

func GetMock() bool

func SetContext

func SetContext(context Context)

func SetMock

func SetMock(mock bool)

Types

type Context

type Context struct {
	Policies []Policy `json:"policies"`
}
var ContextVar Context

func GetContext

func GetContext() Context

type Policy

type Policy struct {
	Name  string `json:"name"`
	Rules []Rule `json:"rules"`
}

func GetPolicyFromContext

func GetPolicyFromContext(policyName string) *Policy

type Rule

type Rule struct {
	Name   string            `json:"name"`
	Values map[string]string `json:"values"`
}

func GetPolicyRuleFromContext

func GetPolicyRuleFromContext(policyName string, ruleName string) *Rule

Jump to

Keyboard shortcuts

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