templates

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Index

Constants

View Source
const ApplicationPropertiesTemplate = `` /* 244-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

	// 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