Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ID ¶
type ID = string
ID is to prevent from detecting state changes unexpected by package name changing By using fixed string instead of package name, we can forcus on detecting the changes of only package contents itself.
type Resource ¶
type Resource struct { ID ID `json:"id"` Name string `json:"name"` Home string `json:"home"` Type string `json:"type"` Version string `json:"version"` Paths []string `json:"paths"` }
func (Resource) GetResource ¶
type State ¶
type State struct { // State itself of state file Self // No record in state file Additions []Resource // Exists in state file but no in config file // so maybe users had deleted the package from config file Deletions []Resource // Something changes happened between config file and state file // Currently only version (github.release.tag) is detected as changes Changes []Resource // All items recorded in state file. It means no changes between state file // and config file NoChanges []Resource // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.