github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/domain/entities/auto-update.go (about)

     1  package entities
     2  
     3  // AutoUpdateOptions are the options for running auto-update.
     4  type AutoUpdateOptions struct {
     5  	// Authfile to use when contacting registries.
     6  	Authfile string
     7  	// Only check for but do not perform any update.  If an update is
     8  	// pending, it will be indicated in the Updated field of
     9  	// AutoUpdateReport.
    10  	DryRun bool
    11  	// If restarting the service with the new image failed, restart it
    12  	// another time with the previous image.
    13  	Rollback bool
    14  }
    15  
    16  // AutoUpdateReport contains the results from running auto-update.
    17  type AutoUpdateReport struct {
    18  	// ID of the container *before* an update.
    19  	ContainerID string
    20  	// Name of the container *before* an update.
    21  	ContainerName string
    22  	// Name of the image.
    23  	ImageName string
    24  	// The configured auto-update policy.
    25  	Policy string
    26  	// SystemdUnit running a container configured for auto updates.
    27  	SystemdUnit string
    28  	// Indicates the update status: true, false, failed, pending (see
    29  	// DryRun).
    30  	Updated string
    31  }