app

package
v0.0.0-...-3b61a40 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

View Source
const (
	OutputFormatHuman = "human" // output for human consumption
	OutputFormatJSON  = "json"  // output as JSON
	OutputFormatYAML  = "yaml"  // output as YAML
)

Valid output formats

Variables

This section is empty.

Functions

This section is empty.

Types

type Fissile

type Fissile struct {
	Version  string
	UI       *termui.UI
	Manifest *model.RoleManifest
	// contains filtered or unexported fields
}

Fissile represents a fissile application

func NewFissileApplication

func NewFissileApplication(version string, ui *termui.UI) *Fissile

NewFissileApplication creates a new app.Fissile

func (*Fissile) CleanCache

func (f *Fissile) CleanCache(targetPath string) error

CleanCache inspects the compilation cache and removes all packages which are not referenced (anymore).

func (*Fissile) Compile

func (f *Fissile) Compile(stemcellImageName string, targetPath, roleManifestPath, metricsPath string, instanceGroupNames, releaseNames []string, workerCount int, dockerNetworkMode string, withoutDocker, verbose bool, packageCacheConfigFilename string) error

Compile will compile a list of dev BOSH releases

func (*Fissile) DiffConfigurationBases

func (f *Fissile) DiffConfigurationBases(releasePaths []string, cacheDir string) error

DiffConfigurationBases generates a diff comparing the specs for two different BOSH releases

func (*Fissile) GenerateKube

func (f *Fissile) GenerateKube(defaultFiles []string, settings kube.ExportSettings) error

GenerateKube will create a set of configuration files suitable for deployment on Kubernetes

func (*Fissile) GeneratePackagesRoleImage

func (f *Fissile) GeneratePackagesRoleImage(stemcellImageName string, roleManifest *model.RoleManifest, noBuild, force bool, instanceGroups model.InstanceGroups, packagesImageBuilder *builder.PackagesImageBuilder, labels map[string]string) error

GeneratePackagesRoleImage builds the docker image for the packages layer where all packages are included

func (*Fissile) GeneratePackagesRoleTarball

func (f *Fissile) GeneratePackagesRoleTarball(repository string, roleManifest *model.RoleManifest, noBuild, force bool, instanceGroups model.InstanceGroups, outputDirectory string, packagesImageBuilder *builder.PackagesImageBuilder, labels map[string]string) error

GeneratePackagesRoleTarball builds a tarball snapshot of the build context for the docker image for the packages layer where all packages are included

func (*Fissile) GenerateRoleImages

func (f *Fissile) GenerateRoleImages(targetPath, registry, organization, repository, stemcellImageName, stemcellImageID, metricsPath string, noBuild, force bool, tagExtra string, instanceGroupNames []string, workerCount int, compiledPackagesPath, lightManifestPath, darkManifestPath, outputDirectory string, labels map[string]string) error

GenerateRoleImages generates all role images using releases

func (*Fissile) GetDiffConfigurationBases

func (f *Fissile) GetDiffConfigurationBases(releasePaths []string, cacheDir string) (*HashDiffs, error)

GetDiffConfigurationBases calculates the difference in configs and returns a hash

func (*Fissile) GraphBegin

func (f *Fissile) GraphBegin(outputPath string) error

GraphBegin will start logging hash information to the given file

func (*Fissile) GraphEdge

func (f *Fissile) GraphEdge(fromNode, toNode string, attrs map[string]string) error

GraphEdge adds an edge to the hash debugging graph; this implements model.ModelGrapher

func (*Fissile) GraphEnd

func (f *Fissile) GraphEnd() error

GraphEnd will stop logging hash information

func (*Fissile) GraphNode

func (f *Fissile) GraphNode(nodeName string, attrs map[string]string) error

GraphNode adds a node to the hash debugging graph; this implements model.ModelGrapher

func (*Fissile) ListJobs

func (f *Fissile) ListJobs(verbose bool) error

ListJobs will list all jobs within a list of releases

func (*Fissile) ListPackages

func (f *Fissile) ListPackages(verbose bool) error

ListPackages will list all BOSH packages within a list of releases

func (*Fissile) ListProperties

func (f *Fissile) ListProperties(outputFormat OutputFormat) error

ListProperties will list all properties in all jobs within a list of releases

func (*Fissile) ListRoleImages

func (f *Fissile) ListRoleImages(registry, organization, repository, opinionsPath, darkOpinionsPath string, existingOnDocker, withVirtualSize bool, tagExtra string) error

ListRoleImages lists all dev role images

func (*Fissile) LoadManifest

func (f *Fissile) LoadManifest(roleManifestPath string, releasePaths, releaseNames, releaseVersions []string, cacheDir string) error

LoadManifest loads the manifest in use by fissile

func (*Fissile) SerializeJobs

func (f *Fissile) SerializeJobs() (map[string]interface{}, error)

SerializeJobs will return all of the jobs within the releases, keyed by fingerprint

func (*Fissile) SerializePackages

func (f *Fissile) SerializePackages() (map[string]interface{}, error)

SerializePackages returns all packages in loaded releases, keyed by fingerprint

func (*Fissile) SerializeReleases

func (f *Fissile) SerializeReleases() (map[string]interface{}, error)

SerializeReleases will return all of the loaded releases

func (*Fissile) Validate

func (f *Fissile) Validate(lightManifestPath, darkManifestPath string, defaultFiles []string) error

Validate runs all checks against all inputs

type HashDiffs

type HashDiffs struct {
	AddedKeys     []string
	DeletedKeys   []string
	ChangedValues map[string][2]string
}

HashDiffs summarizes the diffs between the two configs

type OutputFormat

type OutputFormat string

OutputFormat is one of the known output formats for commands showing loaded information

Jump to

Keyboard shortcuts

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