github

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

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, u *api.User, s *registry.Source) ([]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