helper

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfig

type ApplicationConfig struct {
	Path        string
	ContextRoot string
	Type        string
}

type FileLinker

type FileLinker struct {
	Bindings        libcnb.Bindings
	Logger          bard.Logger
	BaseLayerPath   string
	RuntimeRootPath string
	ServerRootPath  string
}

func (FileLinker) Configure

func (f FileLinker) Configure(workspacePath string) error

func (FileLinker) ContributeApp

func (f FileLinker) ContributeApp(workspacePath string, config ServerConfig, binding libcnb.Binding) error

func (FileLinker) ContributeDefaultHttpEndpoint

func (f FileLinker) ContributeDefaultHttpEndpoint(config ServerConfig, binding libcnb.Binding) error

func (FileLinker) ContributeUserFeatures

func (f FileLinker) ContributeUserFeatures(serverName, configTemplatePath string) error

func (FileLinker) Execute

func (f FileLinker) Execute() (map[string]string, error)

type ServerConfig

type ServerConfig struct {
	XMLName     xml.Name `xml:"server"`
	Application struct {
		XMLName xml.Name `xml:"application"`
		Name    string   `xml:"name,attr"`
	} `xml:"application"`
	HTTPEndpoint struct {
		XMLName xml.Name `xml:"httpEndpoint"`
		Host    string   `xml:"host,attr"`
	} `xml:"httpEndpoint"`
}

Jump to

Keyboard shortcuts

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