execution

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionHandler added in v0.5.0

type ExecutionHandler interface {
	Handle() http.HandlerFunc
	Status() http.HandlerFunc
	// contains filtered or unexported methods
}

func NewExecutionHandler added in v0.5.0

func NewExecutionHandler(auditor audit.Auditor, store storage.Store, executioner Executioner) ExecutionHandler

type Executioner

type Executioner interface {
	Execute(*postgres.JobsExecutionAuditLog, string, map[string]string) (string, error)
}

func NewExecutioner

func NewExecutioner(kubeClient kubernetes.Client, metadataStore metadata.Store, secretsStore secrets.Store) Executioner

type Job

type Job struct {
	Name        string            `json:"name"`
	Args        map[string]string `json:"args"`
	CallbackURL string            `json:"callback_url"`
}

type MockExecutioner

type MockExecutioner struct {
	mock.Mock
}

func (*MockExecutioner) Execute added in v0.5.0

func (m *MockExecutioner) Execute(jobExecutionAuditLog *postgres.JobsExecutionAuditLog, jobName string, jobArgs map[string]string) (string, error)

Jump to

Keyboard shortcuts

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