registry

package
v0.14.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package registry provides the ability for Vela to integrate with different supported Template registries.

Usage:

import "github.com/go-vela/server/compiler/registry"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Parse defines a function that creates the
	// registry source object from a template path.
	Parse(string) (*Source, error)

	// Template defines a function that captures the
	// templated pipeline configuration from a repo.
	Template(*library.User, *Source) ([]byte, error)
}

Service represents the interface for Vela integrating with the different supported template registries.

type Source

type Source struct {
	Host string
	Org  string
	Repo string
	Name string
	Ref  string
}

Source represents a registry object for retrieving templates.

Directories

Path Synopsis
Package github provides the ability for Vela to integrate with GitHub or GitHub Enterprise as a template registry.
Package github provides the ability for Vela to integrate with GitHub or GitHub Enterprise as a template registry.

Jump to

Keyboard shortcuts

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