common

package module
v0.0.0-...-d4fdfcc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindMinioPutEventChan

func BindMinioPutEventChan(conn *nats.EncodedConn, eventChan chan *MinioPutEvent) (*nats.Subscription, error)

func NewJSONEncodedNATSConn

func NewJSONEncodedNATSConn(serverURL string, seedFile string) (*nats.EncodedConn, error)

Types

type MinioPutEvent

type MinioPutEvent struct {
	Key string
}

func (*MinioPutEvent) GetPackageName

func (e *MinioPutEvent) GetPackageName() string

type Runner

type Runner interface {
	Run(image string, env map[string]string, secrets []string, entry string)
}

func NewRunner

func NewRunner(class string) (Runner, error)

type StubRunner

type StubRunner struct {
}

func (*StubRunner) Run

func (r *StubRunner) Run(image string, env map[string]string, secrets []string, entry string)

Jump to

Keyboard shortcuts

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