store

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowApiCall added in v1.9.0

func AllowApiCall(allow bool)

func ContextLoaderFactory added in v1.10.0

func ContextLoaderFactory(cmResolver engineapi.ConfigmapResolver) engineapi.ContextLoaderFactory

func GetForeachElement

func GetForeachElement() int

func GetRegistryAccess

func GetRegistryAccess() bool

func GetRegistryClient added in v1.9.0

func GetRegistryClient() registryclient.Client

func HasPolicies added in v1.10.0

func HasPolicies() bool

func IsApiCallAllowed added in v1.10.0

func IsApiCallAllowed() bool

func IsLocal added in v1.10.1

func IsLocal() bool

IsLocal returns 'true' if the CLI is in local (clusterless) execution

func SetForEachElement added in v1.9.0

func SetForEachElement(element int)

func SetLocal added in v1.10.1

func SetLocal(m bool)

SetLocal sets local (clusterless) execution for the CLI

func SetPolicies added in v1.10.0

func SetPolicies(p ...Policy)

func SetRegistryAccess

func SetRegistryAccess(access bool)

Types

type Context

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

type Policy

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

func GetPolicy added in v1.10.0

func GetPolicy(policyName string) *Policy

type Rule

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

func GetPolicyRule added in v1.10.0

func GetPolicyRule(policyName string, ruleName string) *Rule

Jump to

Keyboard shortcuts

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