git

package
v0.37.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package git implements the module.git component.

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Revision:      "HEAD",
	PullFrequency: time.Minute,
}

DefaultArguments holds default settings for Arguments.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Repository    string        `river:"repository,attr"`
	Revision      string        `river:"revision,attr,optional"`
	Path          string        `river:"path,attr"`
	PullFrequency time.Duration `river:"pull_frequency,attr,optional"`

	Arguments     map[string]any    `river:"arguments,block,optional"`
	GitAuthConfig vcs.GitAuthConfig `river:",squash"`
}

Arguments configures the module.git component.

func (*Arguments) SetToDefault added in v0.35.0

func (args *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

type Component

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

Component implements the module.git component.

func New

func New(o component.Options, args Arguments) (*Component, error)

New creates a new module.git component.

func (*Component) CurrentHealth

func (c *Component) CurrentHealth() component.Health

CurrentHealth implements component.HealthComponent.

func (*Component) DebugInfo

func (c *Component) DebugInfo() interface{}

DebugInfo implements component.DebugComponent.

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

Run implements component.Component.

func (*Component) Update

func (c *Component) Update(args component.Arguments) (err error)

Update implements component.Component.

Directories

Path Synopsis
internal
vcs

Jump to

Keyboard shortcuts

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