event

package
v0.4.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package event implements a simple event stream and defines all events generated by different parts of Terramate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream[T any] chan T

Stream is a stream of events.

func NewStream

func NewStream[T any](buffsize int) Stream[T]

NewStream creates a new stream.

func (Stream[T]) Send

func (s Stream[T]) Send(event T) bool

Send event on this event stream. Returns true if stream is not full, false if the stream is full.

type VendorProgress

type VendorProgress struct {
	Message   string
	TargetDir project.Path
	Module    tf.Source
}

VendorProgress represents a vendor progress event.

type VendorRequest

type VendorRequest struct {
	// Source is the source of the module.
	Source tf.Source
	// VendorDir is where the source is supposed to be vendored.
	VendorDir project.Path
}

VendorRequest represents an event indicating that a request to vendor was made.

Jump to

Keyboard shortcuts

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