Documentation ¶
Index ¶
- Constants
- type Fissile
- func (f *Fissile) CleanCache(targetPath string) error
- func (f *Fissile) Compile(stemcellImageName string, targetPath, roleManifestPath, metricsPath string, ...) error
- func (f *Fissile) DiffConfigurationBases(releasePaths []string, cacheDir string) error
- func (f *Fissile) GenerateKube(defaultFiles []string, settings kube.ExportSettings) error
- func (f *Fissile) GeneratePackagesRoleImage(stemcellImageName string, roleManifest *model.RoleManifest, ...) error
- func (f *Fissile) GeneratePackagesRoleTarball(repository string, roleManifest *model.RoleManifest, noBuild, force bool, ...) error
- func (f *Fissile) GenerateRoleImages(targetPath, registry, organization, repository, stemcellImageName, ... string, ...) error
- func (f *Fissile) GetDiffConfigurationBases(releasePaths []string, cacheDir string) (*HashDiffs, error)
- func (f *Fissile) GraphBegin(outputPath string) error
- func (f *Fissile) GraphEdge(fromNode, toNode string, attrs map[string]string) error
- func (f *Fissile) GraphEnd() error
- func (f *Fissile) GraphNode(nodeName string, attrs map[string]string) error
- func (f *Fissile) ListJobs(verbose bool) error
- func (f *Fissile) ListPackages(verbose bool) error
- func (f *Fissile) ListProperties(outputFormat OutputFormat) error
- func (f *Fissile) ListRoleImages(registry, organization, repository, opinionsPath, darkOpinionsPath string, ...) error
- func (f *Fissile) LoadManifest(roleManifestPath string, releasePaths, releaseNames, releaseVersions []string, ...) error
- func (f *Fissile) SerializeJobs() (map[string]interface{}, error)
- func (f *Fissile) SerializePackages() (map[string]interface{}, error)
- func (f *Fissile) SerializeReleases() (map[string]interface{}, error)
- func (f *Fissile) Validate(lightManifestPath, darkManifestPath string, defaultFiles []string) error
- type HashDiffs
- type OutputFormat
Constants ¶
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 ¶
NewFissileApplication creates a new app.Fissile
func (*Fissile) CleanCache ¶
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 ¶
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 ¶
GraphBegin will start logging hash information to the given file
func (*Fissile) GraphEdge ¶
GraphEdge adds an edge to the hash debugging graph; this implements model.ModelGrapher
func (*Fissile) GraphNode ¶
GraphNode adds a node to the hash debugging graph; this implements model.ModelGrapher
func (*Fissile) ListPackages ¶
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 ¶
SerializeJobs will return all of the jobs within the releases, keyed by fingerprint
func (*Fissile) SerializePackages ¶
SerializePackages returns all packages in loaded releases, keyed by fingerprint
func (*Fissile) SerializeReleases ¶
SerializeReleases will return all of the loaded releases
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