app

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationPolicyRegistryType = "org.openpolicyregistry.type"
	PolicyTypePolicy             = "policy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyApp

type PolicyApp struct {
	Context       context.Context
	Cancel        context.CancelFunc
	Logger        *zerolog.Logger
	Configuration *config.Config
	UI            *clui.UI
}

PolicyApp represents the policy CLI.

func BuildPolicyApp

func BuildPolicyApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, overrides config.Overrider) (*PolicyApp, func(), error)

func BuildTestPolicyApp

func BuildTestPolicyApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, overrides config.Overrider) (*PolicyApp, func(), error)

func (*PolicyApp) Build

func (c *PolicyApp) Build(ref string, path []string, annotations map[string]string,
	runConfigFile string,
	target string,
	optimizationLevel int,
	entrypoints []string,
	revision string,
	ignore []string,
	capabilities string,
	verificationKey string,
	verificationKeyID string,
	algorithm string,
	scope string,
	excludeVerifyFiles []string,
	signingKey string,
	claimsFile string,
	regoV1 bool) error

func (*PolicyApp) Images added in v0.0.32

func (c *PolicyApp) Images() error

func (*PolicyApp) Init added in v0.1.4

func (c *PolicyApp) Init(path, user, server, repo, scc, token string, overwrite, noSrc bool) error

Init: path is rootpath of project.

func (*PolicyApp) Inspect added in v0.0.53

func (c *PolicyApp) Inspect(userRef string) error

func (*PolicyApp) Ping added in v0.0.29

func (c *PolicyApp) Ping(server, username, password string) error

func (*PolicyApp) Pull

func (c *PolicyApp) Pull(userRef string) error

func (*PolicyApp) Push

func (c *PolicyApp) Push(userRef string) error

func (*PolicyApp) RemoveServerCreds added in v0.0.36

func (c *PolicyApp) RemoveServerCreds(server string) error

func (*PolicyApp) Repl added in v0.0.26

func (c *PolicyApp) Repl(ref string, maxErrors int) error

func (*PolicyApp) Rm

func (c *PolicyApp) Rm(existingRef string, force bool) error

func (*PolicyApp) Save

func (c *PolicyApp) Save(userRef, outputFilePath string) error

func (*PolicyApp) SaveServerCreds

func (c *PolicyApp) SaveServerCreds(creds *types.AuthConfig) error

func (*PolicyApp) Tag

func (c *PolicyApp) Tag(existingRef, newRef string) error

func (*PolicyApp) TemplateApply added in v0.1.27

func (c *PolicyApp) TemplateApply(name, outPath string, overwrite bool) error

func (*PolicyApp) TemplatesList added in v0.1.27

func (c *PolicyApp) TemplatesList() error

func (*PolicyApp) TransportWithTrustedCAs

func (c *PolicyApp) TransportWithTrustedCAs() *http.Transport

Jump to

Keyboard shortcuts

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