mirror of
https://github.com/containers/podman.git
synced 2025-09-26 16:25:00 +08:00
Migrate to cobra CLI
We intend to migrate to the cobra cli from urfave/cli because the project is more well maintained. There are also some technical reasons as well which extend into our remote client work. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
47
vendor/github.com/containers/buildah/config.go
generated
vendored
47
vendor/github.com/containers/buildah/config.go
generated
vendored
@ -574,3 +574,50 @@ func (b *Builder) SetHealthcheck(config *docker.HealthConfig) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// AddPrependedEmptyLayer adds an item to the history that we'll create when
|
||||
// commiting the image, after any history we inherit from the base image, but
|
||||
// before the history item that we'll use to describe the new layer that we're
|
||||
// adding.
|
||||
func (b *Builder) AddPrependedEmptyLayer(created *time.Time, createdBy, author, comment string) {
|
||||
if created != nil {
|
||||
copiedTimestamp := *created
|
||||
created = &copiedTimestamp
|
||||
}
|
||||
b.PrependedEmptyLayers = append(b.PrependedEmptyLayers, ociv1.History{
|
||||
Created: created,
|
||||
CreatedBy: createdBy,
|
||||
Author: author,
|
||||
Comment: comment,
|
||||
EmptyLayer: true,
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPrependedEmptyLayers clears the list of history entries that we'll add
|
||||
// to the committed image before the entry for the layer that we're adding.
|
||||
func (b *Builder) ClearPrependedEmptyLayers() {
|
||||
b.PrependedEmptyLayers = nil
|
||||
}
|
||||
|
||||
// AddAppendedEmptyLayer adds an item to the history that we'll create when
|
||||
// commiting the image, after the history item that we'll use to describe the
|
||||
// new layer that we're adding.
|
||||
func (b *Builder) AddAppendedEmptyLayer(created *time.Time, createdBy, author, comment string) {
|
||||
if created != nil {
|
||||
copiedTimestamp := *created
|
||||
created = &copiedTimestamp
|
||||
}
|
||||
b.AppendedEmptyLayers = append(b.AppendedEmptyLayers, ociv1.History{
|
||||
Created: created,
|
||||
CreatedBy: createdBy,
|
||||
Author: author,
|
||||
Comment: comment,
|
||||
EmptyLayer: true,
|
||||
})
|
||||
}
|
||||
|
||||
// ClearAppendedEmptyLayers clears the list of history entries that we'll add
|
||||
// to the committed image after the entry for the layer that we're adding.
|
||||
func (b *Builder) ClearAppendedEmptyLayers() {
|
||||
b.AppendedEmptyLayers = nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user