scaffold

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: 22 Imported by: 0

Documentation

Overview

Package scaffold contains libraries for scaffolding code to use with controller-runtime

Index

Constants

View Source
const (
	// ControllerRuntimeVersion is the kubernetes-sigs/controller-runtime version to be used in the project
	ControllerRuntimeVersion = "v0.5.0"
	// ControllerToolsVersion is the kubernetes-sigs/controller-tools version to be used in the project
	ControllerToolsVersion = "v0.2.5"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scaffolder

type Scaffolder interface {
	// Scaffold performs the scaffolding
	Scaffold() error
}

Scaffolder interface creates files to set up a controller manager

func NewAPIScaffolder

func NewAPIScaffolder(
	config *config.Config,
	boilerplate string,
	res *resource.Resource,
	doResource, doController bool,
	plugins []model.Plugin,
) Scaffolder

NewAPIScaffolder returns a new Scaffolder for API/controller creation operations

func NewEditScaffolder

func NewEditScaffolder(config *config.Config, multigroup bool) Scaffolder

NewEditScaffolder returns a new Scaffolder for configuration edit operations

func NewInitScaffolder

func NewInitScaffolder(config *config.Config, license, owner string) Scaffolder

NewInitScaffolder returns a new Scaffolder for project initialization operations

func NewUpdateScaffolder

func NewUpdateScaffolder(config *config.Config) Scaffolder

NewUpdateScaffolder returns a new Scaffolder for vendor update operations

func NewV1WebhookScaffolder

func NewV1WebhookScaffolder(
	config *config.Config,
	boilerplate string,
	resource *resource.Resource,
	server string,
	webhookType string,
	operations []string,
) Scaffolder

NewV1WebhookScaffolder returns a new Scaffolder for v1 webhook creation operations

func NewV2WebhookScaffolder

func NewV2WebhookScaffolder(
	config *config.Config,
	boilerplate string,
	resource *resource.Resource,
	defaulting bool,
	validation bool,
	conversion bool,
) Scaffolder

NewV2WebhookScaffolder returns a new Scaffolder for v2 webhook creation operations

Jump to

Keyboard shortcuts

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