model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LayerSHA

func LayerSHA(l *Layer) ([]byte, error)

Types

type Layer

type Layer struct {
	SHA          []byte      `json:"sha"`
	Name         string      `json:"name"`
	Files        []LayerFile `json:"files"`
	Dependencies []string    `json:"dependencies"`
}

func (*Layer) FromJSON

func (l *Layer) FromJSON(data io.Reader) error

func (*Layer) ToJSON

func (l *Layer) ToJSON() ([]byte, error)

type LayerFile

type LayerFile struct {
	Path    string `json:"path"`
	Content []byte `json:"content"`
}

Jump to

Keyboard shortcuts

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