statefile

package
v0.0.0-...-30a59cf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveLocalFile

func SaveLocalFile(filename string, s State) error

func SetStateParsed

func SetStateParsed(result State) model.NewDocumentOption

Types

type State

type State struct {
	Tasks map[string]StateTask `json:"tasks"`
}

func FromDocument

func FromDocument(ctx context.Context, d model.Document) *State

func FromLocalFile

func FromLocalFile(filename string) (State, error)

type StateTask

type StateTask struct {
	Files map[string]StateTaskFile `json:"files,omitempty"`
}

type StateTaskFile

type StateTaskFile struct {
	Rule StateTaskFileRule `json:"rule"`
	MD5  string            `json:"md5,omitempty"`
}

type StateTaskFileRule

type StateTaskFileRule struct {
	Paths   []string `json:"paths"`
	Ignores []string `json:"ignores"`
}

Jump to

Keyboard shortcuts

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