tekton

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ExamplesKey defines the package examples.
	ExamplesKey = "examples"

	// PipelinesMinVersionKey defines the minimum pipelines version supported.
	PipelinesMinVersionKey = "pipelines.minVersion"

	// PlatformsKey define the package supported plaatforms.
	PlatformsKey = "platforms"

	// RawManifestKey defines the raw manifest.
	RawManifestKey = "manifestRaw"

	// TasksKey defines a list with the pipeline's tasks.
	TasksKey = "tasks"
)

Variables

This section is empty.

Functions

func GetManifest added in v1.2.0

func GetManifest(kind hub.RepositoryKind, pkgName, pkgPath string) (interface{}, []byte, error)

GetManifest reads, parses and validates the package manifest, which can be a Tekton task, pipeline or stepaction manifest.

func PreparePackage added in v1.2.0

func PreparePackage(i *PreparePackageInput) (*hub.Package, error)

PreparePackage prepares a package version using the package manifest and the files in the path provided.

Types

type PreparePackageInput added in v1.10.0

type PreparePackageInput struct {
	R           *hub.Repository
	Tag         string
	Manifest    interface{}
	ManifestRaw []byte
	BasePath    string
	PkgName     string
	PkgPath     string
	PkgVersion  string
}

PreparePackageInput represents the information required to prepare a package of Tekton task, pipeline and stepaction kinds.

type TrackerSource

type TrackerSource struct {
	// contains filtered or unexported fields
}

TrackerSource is a hub.TrackerSource implementation for Tekton repositories.

func NewTrackerSource

func NewTrackerSource(i *hub.TrackerSourceInput) *TrackerSource

NewTrackerSource creates a new TrackerSource instance.

func (*TrackerSource) GetPackagesAvailable

func (s *TrackerSource) GetPackagesAvailable() (map[string]*hub.Package, error)

GetPackagesAvailable implements the TrackerSource interface.

Jump to

Keyboard shortcuts

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