state

package
v0.0.0-...-3b6e1db Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shim

type Shim struct {
	Sha256 []byte
	Path   string
}

func (*Shim) MarshalJSON

func (s *Shim) MarshalJSON() ([]byte, error)

func (*Shim) UnmarshalJSON

func (s *Shim) UnmarshalJSON(data []byte) error

type State

type State struct {
	Shims map[string]*Shim `json:"shims"`
	// contains filtered or unexported fields
}

func Get

func Get(fs afero.Fs, kwasmPath string) (*State, error)

func (*State) RemoveShim

func (l *State) RemoveShim(shimName string)

func (*State) ShimChanged

func (l *State) ShimChanged(shimName string, sha256 []byte, path string) bool

func (*State) UpdateShim

func (l *State) UpdateShim(shimName string, shim Shim)

func (*State) Write

func (l *State) Write() error

Jump to

Keyboard shortcuts

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