image

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolicyContext

func NewPolicyContext(trustPolicyFile string, disablePolicyChecks bool) (*signature.PolicyContext, error)

NewPolicyContext docs TODO

func RetargetImage

func RetargetImage(imageName string, registryURL string, transport string) types.ImageReference

RetargetImage will take a default image and retarget it to a given registry NOTE: This is different than simply prepending the new destination URL

func Sync

func Sync(policyCtx *signature.PolicyContext,
	sourceImageRefs []types.ImageReference,
	sourceCtx *types.SystemContext,
	destCtx *types.SystemContext, destRegistryURL string,
	syncOpts *SyncOptions)

Sync docs TODO

Types

type SyncOptions

type SyncOptions struct {
	Parallel bool
	Quiet    bool
	Debug    string
	Timeout  time.Duration
}

Jump to

Keyboard shortcuts

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