git

package
v0.34.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 12 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"`
}

Arguments configures the module.git component.

func (*Arguments) UnmarshalRiver

func (args *Arguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements river.Unmarshaler and applies default settings to args.

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) Handler

func (c *Component) Handler() http.Handler

Handler implements component.HTTPComponent.

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