state

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemotePackageCompiler

func NewRemotePackageCompiler(
	blobstore biblobstore.Blobstore,
	agentClient biagentclient.AgentClient,
	packageRepo bistatepkg.CompiledPackageRepo,
) bistatepkg.Compiler

Types

type BlobRef

type BlobRef struct {
	BlobstoreID string
	SHA1        string
}

BlobRef is a reference to a file uploaded to the blobstore,

type Builder

type Builder interface {
	Build(jobName string, instanceID int, deploymentManifest bideplmanifest.Manifest, stage biui.Stage, agentState agentclient.AgentState) (State, error)
	BuildInitialState(jobName string, instanceID int, deploymentManifest bideplmanifest.Manifest) (State, error)
}

func NewBuilder

func NewBuilder(
	releaseJobResolver bideplrel.JobResolver,
	jobDependencyCompiler bistatejob.DependencyCompiler,
	jobListRenderer bitemplate.JobListRenderer,
	renderedJobListCompressor bitemplate.RenderedJobListCompressor,
	blobstore biblobstore.Blobstore,
	logger boshlog.Logger,
) Builder

type BuilderFactory

type BuilderFactory interface {
	NewBuilder(biblobstore.Blobstore, biagentclient.AgentClient) Builder
}

func NewBuilderFactory

func NewBuilderFactory(
	packageRepo bistatepkg.CompiledPackageRepo,
	releaseJobResolver bideplrel.JobResolver,
	jobRenderer bitemplate.JobListRenderer,
	renderedJobListCompressor bitemplate.RenderedJobListCompressor,
	logger boshlog.Logger,
) BuilderFactory

type JobRef

type JobRef struct {
	Name    string
	Version string
}

JobRef is a reference to a rendered job. Individual JobRefs do not have Archives because they are aggregated in RenderedJobListArchive.

type NetworkRef

type NetworkRef struct {
	Name string
	// Interface would ideally be a struct with IP, Type & CloudProperties, but the agent supports arbitrary key/value pairs. :(
	Interface map[string]interface{}
}

NetworkRef is a reference to a deployment network, with the interface the instance should use to connect to it.

type PackageRef

type PackageRef struct {
	Name    string
	Version string
	Archive BlobRef
}

PackageRef is a reference to a compiled package,

type State

type State interface {
	NetworkInterfaces() []NetworkRef
	RenderedJobs() []JobRef
	CompiledPackages() []PackageRef
	RenderedJobListArchive() BlobRef
	ToApplySpec() bias.ApplySpec
}

func NewState

func NewState(
	deploymentName string,
	name string,
	id int,
	networks []NetworkRef,
	renderedJobs []JobRef,
	compiledPackages []PackageRef,
	renderedJobListArchive BlobRef,
	hash string,
) State

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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