api

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

Group scaffolds the file that defines the registration methods for a certain group and version

func (*Group) SetTemplateDefaults

func (f *Group) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type Types

Types scaffolds the file that defines the schema for a CRD nolint:maligned

func (*Types) SetTemplateDefaults

func (f *Types) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type Webhook

type Webhook struct {
	machinery.TemplateMixin
	machinery.MultiGroupMixin
	machinery.BoilerplateMixin
	machinery.ResourceMixin

	// Is the Group domain for the Resource replacing '.' with '-'
	QualifiedGroupWithDash string

	Force bool
}

Webhook scaffolds the file that defines a webhook for a CRD or a builtin resource

func (*Webhook) SetTemplateDefaults

func (f *Webhook) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type WebhookSuite

type WebhookSuite struct {
	machinery.TemplateMixin
	machinery.MultiGroupMixin
	machinery.BoilerplateMixin
	machinery.ResourceMixin

	// todo: currently is not possible to know if an API was or not scaffolded. We can fix it when #1826 be addressed
	WireResource bool

	// BaseDirectoryRelativePath define the Path for the base directory when it is multigroup
	BaseDirectoryRelativePath string
}

WebhookSuite scaffolds the file that sets up the webhook tests

func (*WebhookSuite) GetCodeFragments

func (f *WebhookSuite) GetCodeFragments() machinery.CodeFragmentsMap

GetCodeFragments implements file.Inserter

func (*WebhookSuite) GetMarkers

func (f *WebhookSuite) GetMarkers() []machinery.Marker

GetMarkers implements file.Inserter

func (*WebhookSuite) SetTemplateDefaults

func (f *WebhookSuite) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

Jump to

Keyboard shortcuts

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