pipline_events

package
v1.3.412 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESIssue

type ESIssue struct {
	v1.IssueSummary
	Environment map[string]string
}

type ElasticsearchProvider

type ElasticsearchProvider struct {
	Client    *http.Client
	BasicAuth string
	BaseURL   string
}

ElasticsearchProvider implements PipelineEventsProvider interface for elasticsearch

func (ElasticsearchProvider) SendActivity

func (e ElasticsearchProvider) SendActivity(a *v1.PipelineActivity) error

func (ElasticsearchProvider) SendIssue

func (e ElasticsearchProvider) SendIssue(i *ESIssue) error

func (ElasticsearchProvider) SendRelease

func (e ElasticsearchProvider) SendRelease(r *v1.Release) error

type Index

type Index struct {
	Created bool
	Id      string `json:"_id,omitempty"`
}

type PipelineEventsProvider

type PipelineEventsProvider interface {
	SendActivity(a *v1.PipelineActivity) error
	SendRelease(a *v1.Release) error
}

func NewElasticsearchProvider

func NewElasticsearchProvider(server *auth.AuthServer, user *auth.UserAuth) (PipelineEventsProvider, error)

Jump to

Keyboard shortcuts

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