Add a new generic container registry client via a new `container` package. Use this to create a command line utility as well as a new upload target for container registries. The code uses the github.com/containers/* project and packages to interact with container registires that is also used by skopeo, podman et al. One if the dependencies is `proglottis/gpgme` that is using cgo to bind libgpgme, so we have to add the corresponding devel package to the BuildRequires as well as installing it on CI. Checks will follow later via an integration test.
17 lines
441 B
Go
17 lines
441 B
Go
package target
|
|
|
|
type ContainerTargetOptions struct {
|
|
Filename string `json:"filename"`
|
|
Reference string `json:"reference"`
|
|
|
|
Username string `json:"username,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
|
|
TlsVerify *bool `json:"tls_verify,omitempty"`
|
|
}
|
|
|
|
func (ContainerTargetOptions) isTargetOptions() {}
|
|
|
|
func NewContainerTarget(options *ContainerTargetOptions) *Target {
|
|
return newTarget("org.osbuild.container", options)
|
|
}
|