hash

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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 GetHash

func GetHash(path string) (ReleaseHash, error)

GetHash returns the 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL