webhook

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 7 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 {
	input.Input

	// Resource is a resource in the API group
	Resource *resource.Resource

	Config
}

AddAdmissionWebhookBuilderHandler scaffolds adds a new admission webhook builder.

func (*AddAdmissionWebhookBuilderHandler) GetInput

GetInput implements input.File

type AddServer

type AddServer struct {
	input.Input

	// Resource is a resource in the API group
	Resource *resource.Resource

	Config
}

AddServer scaffolds adds a new webhook server.

func (*AddServer) GetInput

func (a *AddServer) GetInput() (input.Input, error)

GetInput implements input.File

type AdmissionHandler

type AdmissionHandler struct {
	input.Input

	// ResourcePackage is the package of the Resource
	ResourcePackage string

	// GroupDomain is the Group + "." + Domain for the Resource
	GroupDomain string

	// Resource is a resource in the API group
	Resource *resource.Resource

	Config

	BuilderName string

	OperationsString string

	Mutate bool
}

AdmissionHandler scaffolds an admission handler

func (*AdmissionHandler) GetInput

func (a *AdmissionHandler) GetInput() (input.Input, error)

GetInput implements input.File

type AdmissionWebhookBuilder

type AdmissionWebhookBuilder struct {
	input.Input

	// Resource is a resource in the API group
	Resource *resource.Resource

	// ResourcePackage is the package of the Resource
	ResourcePackage string

	// GroupDomain is the Group + "." + Domain for the Resource
	GroupDomain string

	Config

	BuilderName string

	OperationsParameterString string

	Mutating bool
}

AdmissionWebhookBuilder scaffolds adds a new webhook server.

func (*AdmissionWebhookBuilder) GetInput

func (a *AdmissionWebhookBuilder) GetInput() (input.Input, error)

GetInput implements input.File

type AdmissionWebhooks

type AdmissionWebhooks struct {
	input.Input

	// Resource is a resource in the API group
	Resource *resource.Resource

	Config
}

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

func (*AdmissionWebhooks) GetInput

func (a *AdmissionWebhooks) GetInput() (input.Input, error)

GetInput implements input.File

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 {
	input.Input

	// Resource is a resource in the API group
	Resource *resource.Resource

	Config
}

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

func (*Server) GetInput

func (a *Server) GetInput() (input.Input, error)

GetInput implements input.File

Jump to

Keyboard shortcuts

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