Esempio n. 1
0
func populateFormationArtifacts(ef *ct.ExpandedFormation, artifacts map[string]*ct.Artifact) {
	ef.ImageArtifact = artifacts[ef.Release.ImageArtifactID()]

	ef.FileArtifacts = make([]*ct.Artifact, len(ef.Release.FileArtifactIDs()))
	for i, id := range ef.Release.FileArtifactIDs() {
		ef.FileArtifacts[i] = artifacts[id]
	}
}
Esempio n. 2
0
func populateFormationArtifacts(ef *ct.ExpandedFormation, artifacts map[string]*ct.Artifact) {
	ef.Artifacts = make([]*ct.Artifact, len(ef.Release.ArtifactIDs))
	for i, id := range ef.Release.ArtifactIDs {
		ef.Artifacts[i] = artifacts[id]
	}
}