engine

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessor

type Accessor interface {
	GetNamespace() string
	GetName() string
}

type File

type File struct {
	Name     string
	Metadata *json.RawMessage
}

type MetadataExtractor

type MetadataExtractor interface {
	Extract(ctx context.Context, object Accessor, basePath string, files []string, services []v1alpha2.WebhookService) ([]File, error)
}

func NewMetadataExtractor

func NewMetadataExtractor(webhook assethook.Webhook, timeout time.Duration) MetadataExtractor

type Mutator

type Mutator interface {
	Mutate(ctx context.Context, object Accessor, basePath string, files []string, services []v1alpha2.AssetWebhookService) error
}

func NewMutator

func NewMutator(webhook assethook.Webhook, timeout time.Duration) Mutator

type ValidationMessage

type ValidationMessage struct {
	Filename string
	Message  string
}

type ValidationResult

type ValidationResult struct {
	Success  bool
	Messages map[string][]ValidationMessage
}

type Validator

type Validator interface {
	Validate(ctx context.Context, object Accessor, basePath string, files []string, services []v1alpha2.AssetWebhookService) (ValidationResult, error)
}

func NewValidator

func NewValidator(webhook assethook.Webhook, timeout time.Duration) Validator

Directories

Path Synopsis
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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