Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PipelinesMinVersionKey represents the key used in the package's data // field that contains the minimum pipelines version supported. PipelinesMinVersionKey = "pipelines.minVersion" // RawManifestKey represents the key used in the package's data field that // contains the raw manifest. RawManifestKey = "manifestRaw" // TasksKey represents the key used in the package's data field that // contains 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, pkgPath string) (interface{}, []byte, error)
GetManifest reads and parses the package manifest, which can be a Tekton task or a pipeline manifest.
func PreparePackage ¶ added in v1.2.0
func PreparePackage( r *hub.Repository, manifest interface{}, manifestRaw []byte, basePath string, pkgPath string, ) (*hub.Package, error)
PreparePackage prepares a package version using the package manifest and the files in the path provided.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.