mutator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonPatchWebhookMutator added in v0.0.3

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

func NewJsonPatchWebhookMutator added in v0.0.3

func NewJsonPatchWebhookMutator(name string, endpoint string, method string, logger hclog.Logger) (*JsonPatchWebhookMutator, error)

func (*JsonPatchWebhookMutator) Mutate added in v0.0.3

func (j *JsonPatchWebhookMutator) Mutate(job *api.Job) (*api.Job, []error, error)

func (*JsonPatchWebhookMutator) Name added in v0.0.3

func (j *JsonPatchWebhookMutator) Name() string

type OpaJsonPatchMutator

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

func NewOpaJsonPatchMutator

func NewOpaJsonPatchMutator(name, filename, query string, logger hclog.Logger, ImageVerifier notation.ImageVerifier) (*OpaJsonPatchMutator, error)

func (*OpaJsonPatchMutator) Mutate

func (j *OpaJsonPatchMutator) Mutate(job *api.Job) (*api.Job, []error, error)

func (*OpaJsonPatchMutator) Name

func (j *OpaJsonPatchMutator) Name() string

type WebhookMutator

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

func NewWebhookMutator

func NewWebhookMutator(name string, endpoint *url.URL, method string) *WebhookMutator

func (*WebhookMutator) Mutate

func (w *WebhookMutator) Mutate(job *api.Job) (out *api.Job, warnings []error, err error)

func (*WebhookMutator) Name

func (w *WebhookMutator) Name() string

Jump to

Keyboard shortcuts

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