github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/domain/infra/abi/auto-update.go (about)

     1  package abi
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/containers/podman/v2/pkg/autoupdate"
     7  	"github.com/containers/podman/v2/pkg/domain/entities"
     8  )
     9  
    10  func (ic *ContainerEngine) AutoUpdate(ctx context.Context, options entities.AutoUpdateOptions) (*entities.AutoUpdateReport, []error) {
    11  	// Convert the entities options to the autoupdate ones.  We can't use
    12  	// them in the entities package as low-level packages must not leak
    13  	// into the remote client.
    14  	autoOpts := autoupdate.Options{Authfile: options.Authfile}
    15  	units, failures := autoupdate.AutoUpdate(ic.Libpod, autoOpts)
    16  	return &entities.AutoUpdateReport{Units: units}, failures
    17  }