store

package
v1.13.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextLoaderFactory

func ContextLoaderFactory(s *Store, cmResolver engineapi.ConfigmapResolver) engineapi.ContextLoaderFactory

Types

type Context

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

type Policy

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

type Rule

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

type Store added in v1.12.0

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

func (*Store) AllowApiCall added in v1.12.0

func (s *Store) AllowApiCall(allow bool)

func (*Store) GetForeachElement added in v1.12.0

func (s *Store) GetForeachElement() int

func (*Store) GetPolicy added in v1.12.0

func (s *Store) GetPolicy(policyName string) *Policy

func (*Store) GetPolicyRule added in v1.12.0

func (s *Store) GetPolicyRule(policyName string, ruleName string) *Rule

func (*Store) GetRegistryAccess added in v1.12.0

func (s *Store) GetRegistryAccess() bool

func (*Store) GetRegistryClient added in v1.12.0

func (s *Store) GetRegistryClient() registryclient.Client

func (*Store) HasPolicies added in v1.12.0

func (s *Store) HasPolicies() bool

func (*Store) IsApiCallAllowed added in v1.12.0

func (s *Store) IsApiCallAllowed() bool

func (*Store) IsLocal added in v1.12.0

func (s *Store) IsLocal() bool

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

func (*Store) SetForEachElement added in v1.12.0

func (s *Store) SetForEachElement(element int)

func (*Store) SetLocal added in v1.12.0

func (s *Store) SetLocal(m bool)

SetLocal sets local (clusterless) execution for the CLI

func (*Store) SetPolicies added in v1.12.0

func (s *Store) SetPolicies(p ...Policy)

func (*Store) SetRegistryAccess added in v1.12.0

func (s *Store) SetRegistryAccess(access bool)

Jump to

Keyboard shortcuts

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