hashctrl

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoxHashFileName

func BoxHashFileName(path string) (string, error)

func GenerateKLConfigHash

func GenerateKLConfigHash(kf *fileclient.KLFileType) (string, error)

func SyncBoxHash

func SyncBoxHash(apic apiclient.ApiClient, fc fileclient.FileClient, fpath string) error

Types

type PersistedEnv

type PersistedEnv struct {
	Packages      []string          `yaml:"packages" json:"packages"`
	PackageHashes map[string]string `yaml:"packageHashes" json:"packageHashes"`
	Env           map[string]string `yaml:"env" json:"env"`
	Mounts        map[string]string `yaml:"mounts" json:"mounts"`
	KLConfHash    string            `yaml:"klConfHash" json:"klConfHash"`
}

func BoxHashFile

func BoxHashFile(workspacePath string) (*PersistedEnv, error)

func (*PersistedEnv) ParseJson

func (k *PersistedEnv) ParseJson(b []byte) error

func (*PersistedEnv) ToJson

func (k *PersistedEnv) ToJson() ([]byte, error)

Jump to

Keyboard shortcuts

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