manifest

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

NOTICE: This is a derivative work of https://github.com/bluemixgaragelondon/cf-blue-green-deploy/blob/master/manifest.go.

NOTICE: This is a derivative work of https://github.com/cloudfoundry/cli/blob/master/cf/manifest/manifest_disk_repository.go.

NOTICE: This is a derivative work of https://github.com/cloudfoundry/cli/blob/27a6d92bbcc298f73713983f0f798f3621ef8b1d/util/generic/merge_reduce.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepMerge

func DeepMerge(maps ...map[string]interface{}) (map[string]interface{}, error)

func IsMappable

func IsMappable(value interface{}) bool

func IsSliceable

func IsSliceable(value interface{}) bool

func Mappify

func Mappify(data interface{}) (map[string]interface{}, error)

func Reduce

func Reduce(collections []map[string]interface{}, resultVal map[string]interface{}, cb Reducer) (map[string]interface{}, error)

func RoutesFromManifest

func RoutesFromManifest(defaultDomain string, Hosts []string, Domains []string) []plugin_models.GetApp_RouteSummary

Types

type FileManifestReader

type FileManifestReader struct {
	ManifestPath string
}

func (FileManifestReader) Read

func (manifestReader FileManifestReader) Read() (*Manifest, error)

type Manifest

type Manifest struct {
	Path string
	Data map[string]interface{}
}

func (Manifest) Applications

func (m Manifest) Applications(defaultDomain string) ([]plugin_models.GetAppModel, error)

func (*Manifest) GetAppParams

func (manifest *Manifest) GetAppParams(appName, defaultDomain string) *plugin_models.GetAppModel

type ManifestReader

type ManifestReader interface {
	Read() (*Manifest, error)
}

type Reducer

type Reducer func(key string, val interface{}, reducedVal map[string]interface{}) (map[string]interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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