jenkinsbootstrapper

package
v3.11.11-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJenkinsBootstrapper

func NewJenkinsBootstrapper() admission.Interface

NewJenkinsBootstrapper returns an admission plugin that will create required jenkins resources as the user if they are needed.

func Register

func Register(plugins *admission.Plugins)

func Validate

func Validate(plugins []admission.Interface) error

Validate will call the Validate function in each plugin if they implement the Validator interface.

Types

type PluginInitializer

type PluginInitializer struct {
	JenkinsPipelineConfig configapi.JenkinsPipelineConfig
}

func (*PluginInitializer) Initialize

func (i *PluginInitializer) Initialize(plugin admission.Interface)

Initialize will check the initialization interfaces implemented by each plugin and provide the appropriate initialization data

type WantsJenkinsPipelineConfig

type WantsJenkinsPipelineConfig interface {
	SetJenkinsPipelineConfig(jenkinsConfig configapi.JenkinsPipelineConfig)
	admission.InitializationValidator
}

WantsJenkinsPipelineConfig gives access to the JenkinsPipelineConfig. This is a historical oddity. It's likely that what we really wanted was this as an admission plugin config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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