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: 2

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