Documentation
¶
Index ¶
- Variables
- func AddCacheFlags(flags *pflag.FlagSet, opts *CacheOptions)
- func AddRemoteFlags(flags *pflag.FlagSet, opts *RemoteOptions)
- func BuildTektonBundle(contents []string, annotations map[string]string, log io.Writer) (v1.Image, error)
- func Get(img v1.Image, pkind, name string, visitor ObjectVisitor) error
- func List(img v1.Image, visitor ObjectVisitor) error
- func ListKind(img v1.Image, pkind string, visitor ObjectVisitor) error
- func Read(ref name.Reference, cacheOptions *CacheOptions, opts ...remoteimg.Option) (v1.Image, error)
- func Write(img v1.Image, ref name.Reference, opts ...remoteimg.Option) (string, error)
- type CacheOptions
- type ObjectVisitor
- type RemoteOptions
Constants ¶
This section is empty.
Variables ¶
var PodmanKeyChain authn.Keychain = &podmanKeychain{}
Functions ¶
func AddCacheFlags ¶
func AddCacheFlags(flags *pflag.FlagSet, opts *CacheOptions)
AddCacheFlags will define a set of flags to control how Tekton Bundle caching is done.
func AddRemoteFlags ¶
func AddRemoteFlags(flags *pflag.FlagSet, opts *RemoteOptions)
AddRemoteFlags will define a common set of flags that can be used to change how images are pushed/fetched from remote image repositories.
func BuildTektonBundle ¶
func BuildTektonBundle(contents []string, annotations map[string]string, log io.Writer) (v1.Image, error)
BuildTektonBundle will return a complete OCI Image usable as a Tekton Bundle built by parsing, decoding, and compressing the provided contents as Tekton objects.
func Get ¶
func Get(img v1.Image, pkind, name string, visitor ObjectVisitor) error
Get returns a single named element of a specific kind from the Tekton Bundle.
func List ¶
func List(img v1.Image, visitor ObjectVisitor) error
List will call visitor for every single layer in the img.
func ListKind ¶
func ListKind(img v1.Image, pkind string, visitor ObjectVisitor) error
ListKind is like #List but only returns elements of a single kind. Kind will be lowercased to conform to the Tekton Bundle spec.
Types ¶
type CacheOptions ¶
type CacheOptions struct {
// contains filtered or unexported fields
}
PullOptions configure how an image is cached once it is fetched from the remote.
type ObjectVisitor ¶
ObjectVisitor is an input function that callers of this file's methods can implement to act on the read contents of a Tekton bundle. The `version`, `kind`, and `name` fields map 1:1 with the same named fields in the Tekton Bundle spec.
type RemoteOptions ¶
type RemoteOptions struct {
// contains filtered or unexported fields
}
RemoteOptions is a set of flags that are used configure the connection options to a registry.
func (*RemoteOptions) ToOptions ¶
func (r *RemoteOptions) ToOptions() []remoteimg.Option
ToOptions outputs a list of `remoteimg.Option`s that can be passed into various fetch/write calls to a remote registry.