templates

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 6 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 = `` /* 244-byte string literal not displayed */

TODO: pass in the name of the operator i.e. replace Memcached

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

type SrcMainJava

type SrcMainJava struct {
	machinery.TemplateMixin
}

func (*SrcMainJava) SetTemplateDefaults

func (s *SrcMainJava) SetTemplateDefaults() error

SetTemplateDefaults implements machinery.Template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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