templates

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package templates contains the files which have templates for the files being output by the scaffolders.

Index

Constants

View Source
const ApplicationPropertiesTemplate = `` /* 792-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationPropertiesFile

type ApplicationPropertiesFile struct {
	machinery.TemplateMixin
	OrgName     string
	ProjectName string
}

func (*ApplicationPropertiesFile) SetTemplateDefaults

func (f *ApplicationPropertiesFile) SetTemplateDefaults() error

type GitIgnore

type GitIgnore struct {
	machinery.TemplateMixin
}

GitIgnore scaffolds the .gitignore file

func (*GitIgnore) SetTemplateDefaults

func (f *GitIgnore) SetTemplateDefaults() error

SetTemplateDefaults implements input.Template

type Makefile

type Makefile struct {
	machinery.TemplateMixin

	// Image is controller manager image name
	Image string

	// OS is the operating system to use for building the image
	OS string

	// Arch is the architecture to use for building the image
	Arch string

	// Kustomize version to use in the project
	KustomizeVersion string
}

Makefile scaffolds the Makefile

func (*Makefile) SetTemplateDefaults

func (f *Makefile) SetTemplateDefaults() error

SetTemplateDefaults implements machinery.Template

type OperatorFile

type OperatorFile struct {
	machinery.TemplateMixin

	// Package is the source files package
	Package string

	// Name of the operator used for the main file.
	OperatorName string
}

func (*OperatorFile) SetTemplateDefaults

func (f *OperatorFile) SetTemplateDefaults() error

type PomXmlFile

type PomXmlFile struct {
	machinery.TemplateMixin

	// Package is the source files package
	Package         string
	ProjectName     string
	OperatorVersion string
}

func (*PomXmlFile) SetTemplateDefaults

func (f *PomXmlFile) SetTemplateDefaults() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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