chain

package
v0.0.0-...-0d1de6e Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainedPlugin

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

ChainedPlugin allows you to chain drone plugins

func New

func New() *ChainedPlugin

New initializes a ChainedPlugin instance

func (*ChainedPlugin) AdmissionHandler

func (p *ChainedPlugin) AdmissionHandler(secret string) http.Handler

AdmissionHandler wraps the plugin in an admission handler

func (*ChainedPlugin) Admit

func (p *ChainedPlugin) Admit(ctx context.Context, req *admission.Request) (*drone.User, error)

Admit calls all of the admission plugins that are chained

func (*ChainedPlugin) Convert

func (p *ChainedPlugin) Convert(ctx context.Context, req *converter.Request) (*drone.Config, error)

Convert calls all of the convert plugins that are chained

func (*ChainedPlugin) ConvertHandler

func (p *ChainedPlugin) ConvertHandler(secret string) http.Handler

ConvertHandler wraps the plugin in a converter handler

func (*ChainedPlugin) Find

func (p *ChainedPlugin) Find(ctx context.Context, req *secret.Request) (*drone.Secret, error)

Find calls all of the secret plugins that are chained and returns the first secret it finds

func (*ChainedPlugin) SecretHandler

func (p *ChainedPlugin) SecretHandler(s string) http.Handler

SecretHandler wraps the plugin in a secret handler

func (*ChainedPlugin) WithAdmission

func (p *ChainedPlugin) WithAdmission(admit []admission.Plugin) *ChainedPlugin

WithAdmission adds a series of admission plugins

func (*ChainedPlugin) WithConverters

func (p *ChainedPlugin) WithConverters(converters []converter.Plugin) *ChainedPlugin

WithConverters adds a series of converter plugins

func (*ChainedPlugin) WithSecrets

func (p *ChainedPlugin) WithSecrets(secrets []secret.Plugin) *ChainedPlugin

WithSecrets adds a series of secret plugins

Jump to

Keyboard shortcuts

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