applyspec

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplySpec

type ApplySpec struct {
	Deployment               string                       `json:"deployment"`
	Index                    int                          `json:"index"`
	Packages                 map[string]Blob              `json:"packages"`
	Networks                 map[string]interface{}       `json:"networks"`
	Job                      Job                          `json:"job"`
	RenderedTemplatesArchive RenderedTemplatesArchiveSpec `json:"rendered_templates_archive"`
	ConfigurationHash        string                       `json:"configuration_hash"`
}

func NewApplySpec

func NewApplySpec(
	deploymentName string,
	networksSpec map[string]interface{},
	archivedTemplatesBlobID string,
	archivedTemplatesSha1 string,
	templatesDirSha1 string,
) *ApplySpec

func (*ApplySpec) PopulateJob

func (s *ApplySpec) PopulateJob(stemcellTemplates []bmstemcell.Blob, jobName string)

func (*ApplySpec) PopulatePackages

func (s *ApplySpec) PopulatePackages(stemcellPackages map[string]bmstemcell.Blob)

type Blob

type Blob struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	SHA1        string `json:"sha1"`
	BlobstoreID string `json:"blobstore_id"`
}

type Factory

type Factory interface {
	Create(
		bmstemcell.ApplySpec,
		string,
		string,
		map[string]interface{},
		string,
		string,
		string,
	) ApplySpec
}

func NewFactory

func NewFactory() Factory

type Job

type Job struct {
	Name      string `json:"name"`
	Templates []Blob `json:"templates"`
}

type RenderedTemplatesArchiveSpec

type RenderedTemplatesArchiveSpec struct {
	BlobstoreID string `json:"blobstore_id"`
	SHA1        string `json:"sha1"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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