Documentation
¶
Overview ¶
Package hash contains important functions of hash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseHash ¶
type ReleaseHash struct { ClusterStack string `json:"clusterStack"` ClusterAddonDir string `json:"clusterAddonDir"` ClusterAddonValues string `json:"clusterAddonValues"` NodeImageDir string `json:"nodeImageDir,omitempty"` }
ReleaseHash contains the information of release hash.
func ParseReleaseHash ¶ added in v0.0.4
func ParseReleaseHash(path string) (ReleaseHash, error)
ParseReleaseHash parses the cluster-stack release hash.
func (ReleaseHash) GetClusterStackHash ¶
func (r ReleaseHash) GetClusterStackHash() string
GetClusterStackHash returns the 7 character hash of the cluster stack content.
func (ReleaseHash) ValidateWithLatestReleaseHash ¶
func (r ReleaseHash) ValidateWithLatestReleaseHash(latestReleaseHash ReleaseHash) error
ValidateWithLatestReleaseHash compare current hash with latest release hash.
Click to show internal directories.
Click to hide internal directories.