github

package
v0.3.6-beta Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: BSD-2-Clause-Patent Imports: 19 Imported by: 0

Documentation

Overview

Package harness provides support for executing Github plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environ

func Environ(src []string) []string

Environ function converts harness or drone environment variables to github action environment variables.

func Is

func Is(root string) bool

Is returns true if the root path is a Harness plugin repository.

func ParseLookup

func ParseLookup(s string) (repo string, ref string, ok bool)

ParseLookup parses the step string and returns the associated repository and ref.

Types

type Execer

type Execer struct {
	Name       string
	Environ    []string
	Source     string
	OutputFile string
	Stdout     io.Writer
	Stderr     io.Writer
}

Execer executes a github action.

func (*Execer) Exec

func (e *Execer) Exec(ctx context.Context) error

Exec executes a github action.

Jump to

Keyboard shortcuts

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