twitter

package
v0.0.0-...-8b94992 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventNewVulnerability = EventType(1)
	EventFixVulnerability = EventType(2)
)
View Source
var EventFixVulnerabilityExp = regexp.MustCompile(`use latest`)

matches "fix $(selector) with feda3fe222"

View Source
var EventNewVulnerabilityExp = regexp.MustCompile(`(CVE-\d+-\d+)\s+in\s+([^\s-]+)`)

matches "CVE-2013-11111 in fed34532hash432"

Functions

This section is empty.

Types

type Event

type Event struct {
	Vulnerable *Vulnerable
	CVE        string
	Image      string
	Type       EventType
	Tweet      anaconda.Tweet
}

type EventType

type EventType int

type Stream

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

func NewStream

func NewStream(name string) (*Stream, error)

func (*Stream) Close

func (s *Stream) Close()

func (*Stream) Events

func (s *Stream) Events() chan interface{}

func (*Stream) ReplyVulnerable

func (s *Stream) ReplyVulnerable(ev Event, hostname string, vul *Vulnerable) error

func (*Stream) Start

func (s *Stream) Start() chan Event

func (*Stream) Stop

func (s *Stream) Stop()

type Vulnerable

type Vulnerable struct {
	CVE        string
	Containers []docker.APIContainers
	Images     []docker.APIImages
}

Jump to

Keyboard shortcuts

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