mutator

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MPL-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 JsonPatchWebhookMutator

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

func NewJsonPatchWebhookMutator

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

func (*JsonPatchWebhookMutator) Mutate

func (j *JsonPatchWebhookMutator) Mutate(ctx context.Context, payload *types.Payload) (*api.Job, bool, []error, error)

func (*JsonPatchWebhookMutator) Name

func (j *JsonPatchWebhookMutator) Name() string

type OpaJsonPatchMutator

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

func NewOpaJsonPatchMutator

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

func (*OpaJsonPatchMutator) Mutate

func (j *OpaJsonPatchMutator) Mutate(ctx context.Context, payload *types.Payload) (*api.Job, bool, []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(ctx context.Context, payload *types.Payload) (out *api.Job, mutated bool, warnings []error, err error)

func (*WebhookMutator) Name

func (w *WebhookMutator) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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