resolver

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MTAResolver

type MTAResolver struct {
	mta.MTA
	WorkingDir string
	// contains filtered or unexported fields
}

MTAResolver is used to resolve MTA properties' variables

func NewMTAResolver

func NewMTAResolver(m *mta.MTA, workspaceDir string) *MTAResolver

NewMTAResolver is a factory function for MTAResolver

func (*MTAResolver) ResolvePropertiesAndParameters added in v1.0.6

func (m *MTAResolver) ResolvePropertiesAndParameters(module *mta.Module, envFilePath string)

ResolvePropertiesAndParameters is the main function to trigger the resolution

func (*MTAResolver) ResolveResourceProperties added in v1.0.6

func (m *MTAResolver) ResolveResourceProperties(resource *mta.Resource)

ResolveResourceProperties is the main function to trigger the resolution

type ResolveContext

type ResolveContext struct {
	// contains filtered or unexported fields
}

ResolveContext holds context info during resolving of properties

type ResolveResult added in v1.0.1

type ResolveResult struct {
	Properties map[string]string `json:"properties"`
	Messages   []string          `json:"messages"`
}

ResolveResult is the result of the Resolve function. This is serialized to json when requested.

func Resolve

func Resolve(workspaceDir, moduleName, path string, extensions []string, envFile string) (result ResolveResult, messages []string, err error)

Resolve - resolve module's parameters

type VcapService

type VcapService struct {
	Name         string   `json:"name"`
	InstanceName string   `json:"instance_name"`
	Label        string   `json:"label"`
	Tags         []string `json:"tags"`
	Plan         string   `json:"plan"`
}

VcapService - vcap service struct

Jump to

Keyboard shortcuts

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