events

package
v0.0.0-...-552d98a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageEvents

type PackageEvents struct {
	Pulled PulledEvent
	Pushed PushedEvent
}
var Package PackageEvents = PackageEvents{
	Pulled: PulledEvent{
		// contains filtered or unexported fields
	},
}

type Pulled

type Pulled struct {
	Registry string
	Package  *model.Package
	Location string
	Size     int64
}

Pulled is emitted by repositories when a packaged was pulled from the repository

type PulledEvent

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

func (*PulledEvent) Emit

func (e *PulledEvent) Emit(ev *Pulled)

Emit published a Pulled event

func (*PulledEvent) Receive

func (e *PulledEvent) Receive() <-chan *Pulled

Receive return a channel that send all Pull events

type Pushed

type Pushed struct {
	Registry string
	Package  *model.Package
	Token    string
	Location string
}

Pushed is emitted by repositories when a packaged was pushed to the repository

type PushedEvent

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

func (*PushedEvent) Emit

func (e *PushedEvent) Emit(ev *Pushed)

func (*PushedEvent) Receive

func (e *PushedEvent) Receive() chan *Pushed

Receive subscribe to a Pushed event

Jump to

Keyboard shortcuts

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