app

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MediaTypeImageLayer = "application/vnd.opa.policy.v1.tar+gzip"
	MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar+gzip"
	MediaTypeConfig     = "application/vnd.oci.image.config.v1+json"

	DefaultCanonicalDomain = "docker.io"
)

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(logWriter io.Writer, configPath config.Path, overrides config.Overrider) (*PolicyApp, func(), error)

func BuildTestPolicyApp

func BuildTestPolicyApp(logWriter io.Writer, configPath config.Path, overrides config.Overrider) (*PolicyApp, func(), error)

func (*PolicyApp) Build

func (c *PolicyApp) Build(ref string, path []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 added in v0.0.32

func (c *PolicyApp) Images() error

func (*PolicyApp) ImagesRemote added in v0.0.32

func (c *PolicyApp) ImagesRemote(server 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) error

func (*PolicyApp) Save

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

func (*PolicyApp) SaveServerCreds

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

func (*PolicyApp) Tag

func (c *PolicyApp) Tag(existingRef, newRef string) 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