hooks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: Unlicense Imports: 11 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHook

func DefaultHook() *v1.Hook

func FilterAll

func FilterAll(hooks []*v1.Hook, c *v1.ContainerInfo, f Filter) []*v1.Hook

func IsValid

func IsValid(c *v1.Condition, v string) bool

Types

type Cache

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

func NewCache

func NewCache(ctx context.Context, d time.Duration, store storage.HookStore) *Cache

func (*Cache) Hooks

func (c *Cache) Hooks() []*v1.Hook

type CriteriaFilter

type CriteriaFilter struct{}

func (*CriteriaFilter) Match

func (f *CriteriaFilter) Match(hook *v1.Hook, c *v1.ContainerInfo) bool

type Filter

type Filter interface {
	Match(hook *v1.Hook, c *v1.ContainerInfo) bool
}

type LiveShooter

type LiveShooter struct {
	HttpClient *http.Client
}

func (*LiveShooter) Fire

func (s *LiveShooter) Fire(ctx context.Context, r *v1.Reaction) error

type MockShooter

type MockShooter struct{}

func (*MockShooter) Fire

func (s *MockShooter) Fire(ctx context.Context, r *v1.Reaction) error

type Shooter

type Shooter interface {
	Fire(ctx context.Context, r *v1.Reaction) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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