model

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsurePackageIsUnpacked

func EnsurePackageIsUnpacked(context interfaces.Context, pkg string) error

Types

type Archiver

type Archiver struct{}

func NewReleaseArchiver

func NewReleaseArchiver() *Archiver

func (*Archiver) Archive

func (a *Archiver) Archive(metadata *core.ReleaseMetadata, forceOverwrite bool) (string, error)

type Context

type Context struct {
	EscapeConfig       *config.EscapeConfig
	EscapePlan         *escape_plan.EscapePlan
	ReleaseMetadata    *core.ReleaseMetadata
	EnvironmentState   *types.EnvironmentState
	Logger             api.Logger
	LogConsumers       []api.LogConsumer
	DependencyMetadata map[string]*core.ReleaseMetadata
	RootDeploymentName string
}

func NewContext

func NewContext() *Context

func (*Context) CompileEscapePlan

func (c *Context) CompileEscapePlan() error

func (*Context) GetDependencyMetadata

func (c *Context) GetDependencyMetadata(dep *core.DependencyConfig) (*core.ReleaseMetadata, error)

func (*Context) GetEnvironmentState

func (c *Context) GetEnvironmentState() *types.EnvironmentState

func (*Context) GetEscapeConfig

func (c *Context) GetEscapeConfig() *config.EscapeConfig

func (*Context) GetEscapePlan

func (c *Context) GetEscapePlan() *escape_plan.EscapePlan

func (*Context) GetInventory

func (c *Context) GetInventory() inventory.Inventory

func (*Context) GetLogger

func (c *Context) GetLogger() api.Logger

func (*Context) GetReleaseMetadata

func (c *Context) GetReleaseMetadata() *core.ReleaseMetadata

func (*Context) GetRootDeploymentName

func (c *Context) GetRootDeploymentName() string

func (*Context) InitFromLocalEscapePlanAndState

func (c *Context) InitFromLocalEscapePlanAndState(state, environment, planPath string) error

func (*Context) InitReleaseMetadataByReleaseId

func (c *Context) InitReleaseMetadataByReleaseId(releaseId string) error

func (*Context) LoadEscapeConfig

func (c *Context) LoadEscapeConfig(cfgFile, cfgProfile string) error

func (*Context) LoadEscapePlan

func (c *Context) LoadEscapePlan(cfgFile string) error

func (*Context) LoadLocalState

func (c *Context) LoadLocalState(stateFile, environment string, useProfileState bool) error

func (*Context) LoadReleaseJson

func (c *Context) LoadReleaseJson() error

func (*Context) LoadRemoteState

func (c *Context) LoadRemoteState(project, environment string) error

func (*Context) Log

func (c *Context) Log(key string, values map[string]string)

func (*Context) PopLogRelease

func (c *Context) PopLogRelease()

func (*Context) PopLogSection

func (c *Context) PopLogSection()

func (*Context) PushLogRelease

func (c *Context) PushLogRelease(release string)

func (*Context) PushLogSection

func (c *Context) PushLogSection(section string)

func (*Context) QueryReleaseMetadata

func (c *Context) QueryReleaseMetadata(dep *core.DependencyConfig) (*core.ReleaseMetadata, error)

func (*Context) SetLogger

func (c *Context) SetLogger(logger api.Logger)

func (*Context) SetRootDeploymentName

func (c *Context) SetRootDeploymentName(name string)

type DependencyResolver

type DependencyResolver struct{}

func (DependencyResolver) Resolve

func (resolver DependencyResolver) Resolve(cfg *config.EscapeConfig, resolveDependencies []*core.DependencyConfig) error

type ReleaseFetcher

type ReleaseFetcher struct{}

func (ReleaseFetcher) Fetch

func (ReleaseFetcher) Fetch(cfg *config.EscapeConfig, path *paths.Path, dep *core.Dependency) error

Jump to

Keyboard shortcuts

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