eventpub

package
v0.0.0-...-e0f7ac1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeRepositoryAdded = "REPOSITORY_ADDED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventPub

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

func NewFromConfig

func NewFromConfig(ctx context.Context, gcCfg *config.GoogleCloudConfig) (*EventPub, error)

func (*EventPub) RepositoryAdded

func (evp *EventPub) RepositoryAdded(event *RepositoryAddedEvent) error

type EventPublisher

type EventPublisher interface{}

type RepositoryAddedEvent

type RepositoryAddedEvent struct {
	Branch     string `json:"branch"`     // master
	Repository string `json:"repository"` // full path, github.com/foo/bar
	GoVersion  string `json:"goVersion"`  // 1.13.6
}

Jump to

Keyboard shortcuts

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