webhook

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAdmissionWebhookBuilderHandler

type AddAdmissionWebhookBuilderHandler struct {
	file.TemplateMixin
	file.RepositoryMixin
	file.BoilerplateMixin
	file.ResourceMixin

	Config
}

AddAdmissionWebhookBuilderHandler scaffolds adds a new admission webhook builder.

func (*AddAdmissionWebhookBuilderHandler) SetTemplateDefaults

func (f *AddAdmissionWebhookBuilderHandler) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type AddServer

AddServer scaffolds adds a new webhook server.

func (*AddServer) SetTemplateDefaults

func (f *AddServer) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type AdmissionHandler

type AdmissionHandler struct {
	file.TemplateMixin
	file.BoilerplateMixin
	file.ResourceMixin

	Config

	BuilderName string

	OperationsString string

	Mutate bool
}

AdmissionHandler scaffolds an admission handler

func (*AdmissionHandler) SetTemplateDefaults

func (f *AdmissionHandler) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type AdmissionWebhookBuilder

type AdmissionWebhookBuilder struct {
	file.TemplateMixin
	file.DomainMixin
	file.BoilerplateMixin
	file.ResourceMixin

	Config

	BuilderName string

	OperationsParameterString string

	Mutating bool
}

AdmissionWebhookBuilder scaffolds adds a new webhook server.

func (*AdmissionWebhookBuilder) SetTemplateDefaults

func (f *AdmissionWebhookBuilder) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type AdmissionWebhooks

type AdmissionWebhooks struct {
	file.TemplateMixin
	file.BoilerplateMixin
	file.ResourceMixin

	Config
}

AdmissionWebhooks scaffolds how to construct a webhook server and register webhooks.

func (*AdmissionWebhooks) SetTemplateDefaults

func (f *AdmissionWebhooks) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type Config

type Config struct {
	// Server is the name of the server.
	Server string
	// Type is the type of the webhook.
	Type string
	// Operations that the webhook will intercept, e.g. create, update, delete, connect
	Operations []string
}

Config contains the information required to scaffold files for a webhook.

type Server

type Server struct {
	file.TemplateMixin
	file.BoilerplateMixin

	Config
}

Server scaffolds how to construct a webhook server and register webhooks.

func (*Server) SetTemplateDefaults

func (f *Server) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

Jump to

Keyboard shortcuts

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