oci

package
v0.0.0-...-2ce2f72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TektonCatalogMediaType is the root catalog.
	TektonCatalogMediaType = "application/vnd.cdf.tekton.catalog.v1alpha1+json"
	// TektonTaskMediaType is a Tekton task spec.
	TektonTaskMediaType = "application/vnd.cdf.tekton.catalog.task.v1alpha1+yaml"
	// TektonPipelineMediaType is a Tekton pipeline spec.
	TektonPipelineMediaType = "application/vnd.cdf.tekton.catalog.pipeline.v1alpha1+yaml"
	// TektonPipelineResourceMediaType is a Tekton pipeline resource spec.
	TektonPipelineResourceMediaType = "application/vnd.cdf.tekton.catalog.pipelineresource.v1alpha1+yaml"
)

Variables

This section is empty.

Functions

func PullImage

func PullImage(ref name.Reference, kind string, name string) ([]byte, error)

PullImage fetches the image and extracts the Tekton resource with the given kind and name.

func PushImage

func PushImage(ref name.Reference, resources []ParsedTektonResource) error

PushImage bundles the Tekton resources and pushes it to an image with the given reference.

func TektonMediaTypes

func TektonMediaTypes() []string

TektonMediaTypes returns a slice of the various media types supported by our Tekton OCI implementation.

Types

type ParsedTektonResource

type ParsedTektonResource struct {
	Name     string
	Kind     *schema.GroupVersionKind
	Contents string
	Object   runtime.Object
}

ParsedTektonResource represents a full Tekton task, pipeline, etc that has been read in from the user along with metadata about the resource.

func ReadPaths

func ReadPaths(filePaths []string) ([]ParsedTektonResource, error)

ReadPaths will recursively search each file path for Tekton resources and return the parsed specs or an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL