github

package
v0.28.10 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Usage:

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.27.0

type Client struct {
	URL string
	API string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, address, token string) (*Client, error)

New returns a Registry implementation that integrates with GitHub or a GitHub Enterprise instance.

func (*Client) Equal added in v0.27.0

func (c *Client) Equal(other *Client) bool

func (*Client) Parse added in v0.27.0

func (c *Client) Parse(path string) (*registry.Source, error)

Parse creates the registry source object from a template path and default branch.

func (*Client) Template added in v0.27.0

func (c *Client) Template(ctx context.Context, r *api.Repo, u *api.User, s *registry.Source, token string) ([]byte, error)

Template captures the templated pipeline configuration from the GitHub repo.

Jump to

Keyboard shortcuts

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