util

package
v6.0.0-alpha1+incompat... Latest Latest
Warning

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

Go to latest
Published: May 5, 2017 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 Data

type Data struct {
	Event common.MapStr

	Meta Meta
	// contains filtered or unexported fields
}

func NewData

func NewData() *Data

func (*Data) GetEvent

func (d *Data) GetEvent() common.MapStr

GetEvent returns the event in the data object In case meta data contains module and fileset data, the event is enriched with it

func (*Data) GetMetadata

func (d *Data) GetMetadata() common.MapStr

GetMetadata creates a common.MapStr containing the metadata to be associated with the event.

func (*Data) GetState

func (d *Data) GetState() file.State

GetState returns the current state

func (*Data) HasEvent

func (d *Data) HasEvent() bool

HasEvent returns true if the data object contains event data

func (*Data) HasState

func (d *Data) HasState() bool

HasState returns true if the data object contains state data

func (*Data) SetState

func (d *Data) SetState(state file.State)

SetState sets the state

type Meta

type Meta struct {
	Pipeline string
	Fileset  string
	Module   string
}

Jump to

Keyboard shortcuts

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