1
0
mirror of https://github.com/ko-build/ko.git synced 2024-12-12 08:54:09 +02:00
ko-build/pkg/commands/options
jonjohnsonjr 3c6a907da9
Add additional output formats (tarball and layout) (#134)
* Create a MultiPublisher

MultiPublisher mimics io.MultiWriter in that it will publish an image to
multiple publish.Interface implementations.

* Add publish.{Tarball,Layout}Publisher

This adds support for publishing in the tarball format and to an OCI
image layout.

The tarball format isn't great, yet. It only supports writing once
instead of appending.

* Consolidate options

These were spread all over the place for no reasons. Now all the
publisher related options are grouped together.

* Add options for tarball/layout

Adds --oci-layout-path, --tarball, and --push flags.

--push=false will disable the default behavior of publishing to a
registry.

* go mod vendor

* Add Close method to publish.Interface

This allows us to defer writing to the tarball until we've collected all
the images that have been published.

* Fix tests
2020-02-19 09:30:01 -08:00
..
build.go Remove extra dashes (#86) 2019-09-20 09:39:18 -07:00
filestuff.go Moving options to pkg/commands/options. (#28) 2019-04-26 15:25:40 -07:00
publish.go Add additional output formats (tarball and layout) (#134) 2020-02-19 09:30:01 -08:00
selector.go add selector flag and logic (#46) 2019-06-27 13:55:47 -07:00
strict.go Make callers type out all of --strict 2019-08-15 21:44:56 -04:00