Documentation ¶
Index ¶
- Variables
- type Marker
- type Store
- func (s *Store) Artifacts() (StoredArtifactMap, error)
- func (s *Store) BuildEngine() (model.BuildEngine, error)
- func (s *Store) BuildPlan() (*bpModel.Build, error)
- func (s *Store) BuildPlanRaw() ([]byte, error)
- func (s *Store) BuildScript() (*buildscript.Script, error)
- func (s *Store) CommitID() (string, error)
- func (s *Store) DeleteArtifactStore(id artifact.ArtifactID) error
- func (s *Store) EnvDef() (*envdef.EnvironmentDefinition, error)
- func (s *Store) Environ(inherit bool) (map[string]string, error)
- func (s *Store) HasMarker() bool
- func (s *Store) InstallPath() string
- func (s *Store) MarkInstallationComplete(commitID strfmt.UUID, namespace string) error
- func (s *Store) MarkerIsValid(commitID strfmt.UUID) bool
- func (s *Store) Namespace() (string, error)
- func (s *Store) Recipe() (*inventory_models.Recipe, error)
- func (s *Store) StoreArtifact(artf StoredArtifact) error
- func (s *Store) StoreBuildEngine(buildEngine model.BuildEngine) error
- func (s *Store) StoreBuildPlan(build *bpModel.Build) error
- func (s *Store) StoreBuildScript(script *buildscript.Script) error
- func (s *Store) StoreRecipe(recipe *inventory_models.Recipe) error
- func (s *Store) UpdateEnviron(orderedArtifacts []artifact.ArtifactID) (*envdef.EnvironmentDefinition, error)
- type StoredArtifact
- type StoredArtifactMap
Constants ¶
This section is empty.
Variables ¶
var ErrNoBuildPlanFile = errs.New("no build plan file")
var ErrNoBuildScriptFile = errs.New("no buildscript file")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages the storing and loading of persistable information about the runtime
func (*Store) Artifacts ¶
func (s *Store) Artifacts() (StoredArtifactMap, error)
Artifacts loads artifact information collected during the installation. It includes the environment definition configuration and files installed for this artifact.
func (*Store) BuildEngine ¶
func (s *Store) BuildEngine() (model.BuildEngine, error)
BuildEngine returns the runtime build engine value stored in the runtime directory
func (*Store) BuildPlanRaw ¶
func (*Store) BuildScript ¶
func (s *Store) BuildScript() (*buildscript.Script, error)
func (*Store) DeleteArtifactStore ¶
func (s *Store) DeleteArtifactStore(id artifact.ArtifactID) error
DeleteArtifactStore deletes the stored information for a specific artifact from the store
func (*Store) InstallPath ¶
InstallPath returns the installation path of the runtime
func (*Store) MarkInstallationComplete ¶
MarkInstallationComplete writes the installation complete marker to the runtime directory
func (*Store) MarkerIsValid ¶
MarkerIsValid checks if stored runtime is complete and can be loaded
func (*Store) Recipe ¶
func (s *Store) Recipe() (*inventory_models.Recipe, error)
Recipe returns the recipe the stored runtime has been built with
func (*Store) StoreArtifact ¶
func (s *Store) StoreArtifact(artf StoredArtifact) error
func (*Store) StoreBuildEngine ¶
func (s *Store) StoreBuildEngine(buildEngine model.BuildEngine) error
StoreBuildEngine stores the build engine value in the runtime directory
func (*Store) StoreBuildScript ¶
func (s *Store) StoreBuildScript(script *buildscript.Script) error
func (*Store) StoreRecipe ¶
func (s *Store) StoreRecipe(recipe *inventory_models.Recipe) error
StoreRecipe stores a along side the stored runtime
func (*Store) UpdateEnviron ¶
func (s *Store) UpdateEnviron(orderedArtifacts []artifact.ArtifactID) (*envdef.EnvironmentDefinition, error)
type StoredArtifact ¶
type StoredArtifact struct { ArtifactID artifact.ArtifactID `json:"artifactID"` Files []string `json:"files"` Dirs []string `json:"dirs"` EnvDef *envdef.EnvironmentDefinition `json:"envdef"` }
func NewStoredArtifact ¶
func NewStoredArtifact(artifactID artifact.ArtifactID, files []string, dirs []string, envDef *envdef.EnvironmentDefinition) StoredArtifact
type StoredArtifactMap ¶
type StoredArtifactMap = map[artifact.ArtifactID]StoredArtifact