gitlab_runner

package module
v0.0.0-...-8477713 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 10 Imported by: 0

README

GitLab Runner Module

Package git-runner-module is a Go module for GitLab-Runner access through shell commands.

License

This project is under the MIT License. See the LICENSE file for the full license text.

Documentation

Index

Constants

View Source
const DefaultTimeout = time.Minute

Variables

View Source
var ErrExecTimeout = errors.New("execution was timed out")

Functions

func BinVersion

func BinVersion() (string, error)

func SetOutput

func SetOutput(output io.Writer)

SetOutput sets the output writer for logs.

func SetPrefix

func SetPrefix(prefix string)

SetPrefix sets the prefix to be prepended to each log entry.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(args ...string) *Command

func (*Command) AddArgs

func (c *Command) AddArgs(args ...string) *Command

func (*Command) AddEnvs

func (c *Command) AddEnvs(envs ...string) *Command

func (*Command) Run

func (c *Command) Run() ([]byte, error)

func (*Command) RunInDir

func (c *Command) RunInDir(dir string) ([]byte, error)

func (*Command) RunInDirPipeline

func (c *Command) RunInDirPipeline(stdout, stderr io.Writer, dir string) error

func (*Command) RunInDirPipelineWithTimeout

func (c *Command) RunInDirPipelineWithTimeout(timeout time.Duration, stdout, stderr io.Writer, dir string) (err error)

func (*Command) RunInDirWithTimeout

func (c *Command) RunInDirWithTimeout(timeout time.Duration, dir string) ([]byte, error)

func (*Command) RunWithTimeout

func (c *Command) RunWithTimeout(timeout time.Duration) ([]byte, error)

func (*Command) String

func (c *Command) String() string

Jump to

Keyboard shortcuts

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