buildconfig

package
v3.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupStrategy is the logic that applies when creating and updating BuildConfig objects
	// in the Group api.
	// This differs from the LegacyStrategy in that on create it will set a default build
	// pruning limit value for both successful and failed builds.  This is new behavior that
	// can only be introduced to users consuming the new group based api.
	GroupStrategy = groupStrategy{strategy{legacyscheme.Scheme, names.SimpleNameGenerator}}

	// LegacyStrategy is the default logic that applies when creating BuildConfig objects.
	// Specifically it will not set the default build pruning limit values because that was not
	// part of the legacy api.
	LegacyStrategy = legacyStrategy{strategy{legacyscheme.Scheme, names.SimpleNameGenerator}}
)

Functions

This section is empty.

Types

type WebHook added in v1.3.0

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

func NewWebHookREST

func NewWebHookREST(buildConfigClient buildclient.BuildInterface, secretsClient kcoreclient.SecretsGetter, groupVersion schema.GroupVersion, plugins map[string]webhook.Plugin) *WebHook

NewWebHookREST returns the webhook handler

func (*WebHook) Connect

func (h *WebHook) Connect(ctx apirequest.Context, name string, options runtime.Object, responder rest.Responder) (http.Handler, error)

Connect responds to connections with a ConnectHandler

func (*WebHook) ConnectMethods

func (h *WebHook) ConnectMethods() []string

ConnectMethods returns the supported web hook types.

func (*WebHook) New

func (h *WebHook) New() runtime.Object

New() responds with the status object.

func (*WebHook) NewConnectOptions

func (h *WebHook) NewConnectOptions() (runtime.Object, bool, string)

NewConnectionOptions identifies the options that should be passed to this hook

type WebHookHandler

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

WebHookHandler responds to web hook requests from the master.

func (*WebHookHandler) ProcessWebHook

func (w *WebHookHandler) ProcessWebHook(writer http.ResponseWriter, req *http.Request, ctx apirequest.Context, name, subpath string) error

ProcessWebHook does the actual work of processing the webhook request

func (*WebHookHandler) ServeHTTP

func (h *WebHookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the standard http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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