Documentation ¶
Index ¶
- Constants
- type PolicyApp
- func (c *PolicyApp) Build(ref string, path []string, runConfigFile string, target string, ...) error
- func (c *PolicyApp) Images() error
- func (c *PolicyApp) ImagesRemote(server string) error
- func (c *PolicyApp) Ping(server, username, password string) error
- func (c *PolicyApp) Pull(userRef string) error
- func (c *PolicyApp) Push(userRef string) error
- func (c *PolicyApp) RemoveServerCreds(server string) error
- func (c *PolicyApp) Repl(ref string, maxErrors int) error
- func (c *PolicyApp) Rm(existingRef string) error
- func (c *PolicyApp) Save(userRef, outputFile string) error
- func (c *PolicyApp) SaveServerCreds(server string, creds config.ServerCredentials) error
- func (c *PolicyApp) Tag(existingRef, newRef string) error
- func (c *PolicyApp) TransportWithTrustedCAs() *http.Transport
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 BuildTestPolicyApp ¶
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) ImagesRemote ¶ added in v0.0.32
func (*PolicyApp) RemoveServerCreds ¶ added in v0.0.36
func (*PolicyApp) SaveServerCreds ¶
func (c *PolicyApp) SaveServerCreds(server string, creds config.ServerCredentials) error
func (*PolicyApp) TransportWithTrustedCAs ¶
Click to show internal directories.
Click to hide internal directories.