app

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 44 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

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) error

func (*PolicyApp) Images

func (c *PolicyApp) Images() error

func (*PolicyApp) ImagesRemote

func (c *PolicyApp) ImagesRemote(server, org string, showEmpty bool) error

func (*PolicyApp) Init

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

Init path is rootpath of project

func (*PolicyApp) Inspect

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

func (*PolicyApp) Ping

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

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

func (*PolicyApp) Repl

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

func (*PolicyApp) Rm

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

func (*PolicyApp) RmRemote

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

func (*PolicyApp) Save

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

func (*PolicyApp) SaveServerCreds

func (c *PolicyApp) SaveServerCreds(server string, creds config.ServerCredentials) error

func (*PolicyApp) SetVisibility

func (c *PolicyApp) SetVisibility(server, policy string, public bool) error

func (*PolicyApp) Tag

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

func (*PolicyApp) TemplateApply

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

func (*PolicyApp) TemplatesList

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