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 ¶
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 or a pipeline manifest.
func PreparePackage ¶
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 ¶
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 and pipelines 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.
Click to show internal directories.
Click to hide internal directories.