resolver

package
v7.0.1-0...-b8e8e6a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver prepares, calculates and resolves the manifest

func NewResolver

func NewResolver(
	m *model.RoleManifest,
	releaseResolver model.ReleaseResolver,
	options model.LoadRoleManifestOptions,
) *Resolver

NewResolver returns a new resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve() (*model.RoleManifest, error)

Resolve pre-processes the manifest calls ResolveRoleManifest() as well as ResolveLinks()

func (r *Resolver) ResolveLinks() validation.ErrorList

ResolveLinks examines the BOSH links specified in the job specs and maps them to the correct role / job that can be looked up at runtime. This method was made public so tests can have their own package and we avoid import cycles.

func (*Resolver) ResolveRoleManifest

func (r *Resolver) ResolveRoleManifest() error

ResolveRoleManifest takes a role manifest and validates it to ensure it has no errors, and that the various ancillary structures are correctly populated. This method was made public so tests can have their own package and we avoid import cycles.

Jump to

Keyboard shortcuts

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