flamenco

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminUsername = "flamencoadmin"

	// When changing this, be sure to also change the installation script.
	// See flamenco-manager-setup-vm.sh.
	UnixGroupName = "flamenco"

	// The VM installation script; it is named locally the same as remotely.
	InstallScriptName = "flamenco-manager-setup-vm.sh"
)

Global constants for Flamenco Manager deployment. Other packages may also have constants; if they are shared between packages, they should go here.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateContext

type TemplateContext struct {
	Name                     string
	AcmeDomainName           string
	PrivateIP                string
	WorkerRegistrationSecret string
	FSTabForStorage          string
	UnixGroupName            string

	AzureLocation    string
	BatchAccountName string
}

TemplateContext contains everything necessary for rendering templates.

func NewTemplateContext

func NewTemplateContext(
	config azconfig.AZConfig,
	netStack aznetwork.NetworkStack,
	fstab string,
) TemplateContext

NewTemplateContext constructs a new context for rendering templated config files.

func (*TemplateContext) RenderTemplate

func (tc *TemplateContext) RenderTemplate(templateFile string) []byte

RenderTemplate renders a templated config file.

Jump to

Keyboard shortcuts

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