Documentation ¶
Index ¶
- func GetCopyOptions(reportWriter io.Writer, signaturePolicyPath string, ...) *cp.Options
- func GetSystemContext(signaturePolicyPath, authFilePath string, forceCompress bool) *types.SystemContext
- func IsFalse(str string) bool
- func IsTrue(str string) bool
- func IsValidBool(str string) bool
- type DockerRegistryOptions
- type SigningOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCopyOptions ¶
func GetCopyOptions(reportWriter io.Writer, signaturePolicyPath string, srcDockerRegistry, destDockerRegistry *DockerRegistryOptions, signing SigningOptions, authFile, manifestType string, forceCompress bool) *cp.Options
GetCopyOptions constructs a new containers/image/copy.Options{} struct from the given parameters
func GetSystemContext ¶
func GetSystemContext(signaturePolicyPath, authFilePath string, forceCompress bool) *types.SystemContext
GetSystemContext Constructs a new containers/image/types.SystemContext{} struct from the given signaturePolicy path
func IsValidBool ¶
IsValidBool determines whether the given string equals "true" or "false"
Types ¶
type DockerRegistryOptions ¶
type DockerRegistryOptions struct { // DockerRegistryCreds is the user name and password to supply in case // we need to pull an image from a registry, and it requires us to // authenticate. DockerRegistryCreds *types.DockerAuthConfig // DockerCertPath is the location of a directory containing CA // certificates which will be used to verify the registry's certificate // (all files with names ending in ".crt"), and possibly client // certificates and private keys (pairs of files with the same name, // except for ".cert" and ".key" suffixes). DockerCertPath string // DockerInsecureSkipTLSVerify turns off verification of TLS // certificates and allows connecting to registries without encryption. DockerInsecureSkipTLSVerify bool }
DockerRegistryOptions encapsulates settings that affect how we connect or authenticate to a remote registry.
func (DockerRegistryOptions) GetSystemContext ¶
func (o DockerRegistryOptions) GetSystemContext(signaturePolicyPath, authFile string, forceCompress bool) *types.SystemContext
GetSystemContext constructs a new system context from the given signaturePolicy path and the values in the DockerRegistryOptions
type SigningOptions ¶
type SigningOptions struct { // RemoveSignatures directs us to remove any signatures which are already present. RemoveSignatures bool // SignBy is a key identifier of some kind, indicating that a signature should be generated using the specified private key and stored with the image. SignBy string }
SigningOptions encapsulates settings that control whether or not we strip or add signatures to images when writing them.
Click to show internal directories.
Click to hide internal directories.