diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-12 03:13:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 03:13:12 -0700 |
commit | 2ad59d311b8c573186574cec6d4dc57bff0c3a53 (patch) | |
tree | 70697fa1d2431eb06d8128fa69f2693e156e187a /pkg/domain/entities | |
parent | 7837bf3c071f1259bc08d8f9e52ed2b4edbda428 (diff) | |
parent | 1c3bd95b81e5247b7db3f8333aeb01ea58073fe9 (diff) | |
download | podman-2ad59d311b8c573186574cec6d4dc57bff0c3a53.tar.gz podman-2ad59d311b8c573186574cec6d4dc57bff0c3a53.tar.bz2 podman-2ad59d311b8c573186574cec6d4dc57bff0c3a53.zip |
Merge pull request #6186 from vrothberg/auto-update
auto-update: support authfiles
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/auto-update.go | 6 | ||||
-rw-r--r-- | pkg/domain/entities/engine_container.go | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pkg/domain/entities/auto-update.go b/pkg/domain/entities/auto-update.go index aef8fc46b..c51158816 100644 --- a/pkg/domain/entities/auto-update.go +++ b/pkg/domain/entities/auto-update.go @@ -1,5 +1,11 @@ package entities +// AutoUpdateOptions are the options for running auto-update. +type AutoUpdateOptions struct { + // Authfile to use when contacting registries. + Authfile string +} + // AutoUpdateReport contains the results from running auto-update. type AutoUpdateReport struct { // Units - the restarted systemd units during auto-update. diff --git a/pkg/domain/entities/engine_container.go b/pkg/domain/entities/engine_container.go index 719ac3f9e..e77f0758b 100644 --- a/pkg/domain/entities/engine_container.go +++ b/pkg/domain/entities/engine_container.go @@ -10,7 +10,7 @@ import ( ) type ContainerEngine interface { - AutoUpdate(ctx context.Context) (*AutoUpdateReport, []error) + AutoUpdate(ctx context.Context, options AutoUpdateOptions) (*AutoUpdateReport, []error) Config(ctx context.Context) (*config.Config, error) ContainerAttach(ctx context.Context, nameOrId string, options AttachOptions) error ContainerCheckpoint(ctx context.Context, namesOrIds []string, options CheckpointOptions) ([]*CheckpointReport, error) |