Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAdmissionWebhookBuilderHandler ¶
type AddAdmissionWebhookBuilderHandler struct { file.TemplateMixin file.RepositoryMixin file.BoilerplateMixin file.ResourceMixin Config }
AddAdmissionWebhookBuilderHandler scaffolds adds a new admission webhook builder.
func (*AddAdmissionWebhookBuilderHandler) SetTemplateDefaults ¶
func (f *AddAdmissionWebhookBuilderHandler) SetTemplateDefaults() error
SetTemplateDefaults implements input.Template
type AddServer ¶
type AddServer struct { file.TemplateMixin file.RepositoryMixin file.BoilerplateMixin Config }
AddServer scaffolds adds a new webhook server.
func (*AddServer) SetTemplateDefaults ¶
SetTemplateDefaults implements input.Template
type AdmissionHandler ¶
type AdmissionHandler struct { file.TemplateMixin file.BoilerplateMixin file.ResourceMixin Config BuilderName string OperationsString string Mutate bool }
AdmissionHandler scaffolds an admission handler
func (*AdmissionHandler) SetTemplateDefaults ¶
func (f *AdmissionHandler) SetTemplateDefaults() error
SetTemplateDefaults implements input.Template
type AdmissionWebhookBuilder ¶
type AdmissionWebhookBuilder struct { file.TemplateMixin file.DomainMixin file.BoilerplateMixin file.ResourceMixin Config BuilderName string OperationsParameterString string Mutating bool }
AdmissionWebhookBuilder scaffolds adds a new webhook server.
func (*AdmissionWebhookBuilder) SetTemplateDefaults ¶
func (f *AdmissionWebhookBuilder) SetTemplateDefaults() error
SetTemplateDefaults implements input.Template
type AdmissionWebhooks ¶
type AdmissionWebhooks struct { file.TemplateMixin file.BoilerplateMixin file.ResourceMixin Config }
AdmissionWebhooks scaffolds how to construct a webhook server and register webhooks.
func (*AdmissionWebhooks) SetTemplateDefaults ¶
func (f *AdmissionWebhooks) SetTemplateDefaults() error
SetTemplateDefaults implements input.Template
type Config ¶
type Config struct { // Server is the name of the server. Server string // Type is the type of the webhook. Type string // Operations that the webhook will intercept, e.g. create, update, delete, connect Operations []string }
Config contains the information required to scaffold files for a webhook.
type Server ¶
type Server struct { file.TemplateMixin file.BoilerplateMixin Config }
Server scaffolds how to construct a webhook server and register webhooks.
func (*Server) SetTemplateDefaults ¶
SetTemplateDefaults implements input.Template