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 ¶
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.
Click to show internal directories.
Click to hide internal directories.