Documentation
¶
Overview ¶
Package upstreamcommit manages generated component configuration files that pin resolved upstream commits.
Index ¶
- Constants
- type Store
- func (s *Store) Dir() string
- func (s *Store) Exists(componentName string) (bool, error)
- func (s *Store) FindOrphans(components map[string]projectconfig.ComponentConfig) ([]string, error)
- func (s *Store) Get(componentName string) (commit string, exists bool, err error)
- func (s *Store) Path(componentName string) (string, error)
- func (s *Store) PruneOrphans(components map[string]projectconfig.ComponentConfig) (int, error)
- func (s *Store) Remove(componentName string) (bool, error)
- func (s *Store) Save(componentName, upstreamCommit string) error
Constants ¶
View Source
const DefaultDir = "base/upstream-commits"
DefaultDir is the project-relative directory that holds the generated per-component upstream-commit TOML files.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store reads and writes generated upstream-commit component configuration.
func (*Store) FindOrphans ¶
func (s *Store) FindOrphans( components map[string]projectconfig.ComponentConfig, ) ([]string, error)
FindOrphans returns generated component TOMLs that do not correspond to an upstream component in components.
func (*Store) PruneOrphans ¶
func (s *Store) PruneOrphans(components map[string]projectconfig.ComponentConfig) (int, error)
PruneOrphans removes generated TOMLs that are no longer needed.
Click to show internal directories.
Click to hide internal directories.