hooks

package
v0.24.0-rc4 Latest Latest
Warning

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

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

Documentation

Overview

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks provides HTTP handlers for the mutating webhook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitRepositoryMutationHook

func NewGitRepositoryMutationHook() operations.Hook

NewGitRepositoryMutationHook creates a new instance of the git repo mutation hook.

func NewPodMutationHook

func NewPodMutationHook() operations.Hook

NewPodMutationHook creates a new instance of pods mutation hook.

Types

type GenericGitRepo

type GenericGitRepo struct {
	Spec struct {
		URL       string    `json:"url"`
		SecretRef SecretRef `json:"secretRef,omitempty"`
	}
}

GenericGitRepo contains the URL of a git repo and the secret that corresponds to it for use with Flux.

type SecretRef

type SecretRef struct {
	Name string `json:"name"`
}

SecretRef contains the name used to reference a git repository secret.

Jump to

Keyboard shortcuts

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