files

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDomain

func CreateDomain(spec *Spec) (types.Domain, error)

Types

type Domain

type Domain struct {
	Spec *Spec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (Domain) GetResources

func (d Domain) GetResources(ctx context.Context) (types.DomainResources, error)

GetResources gathers the input files to be tested.

func (Domain) IsExecutable

func (d Domain) IsExecutable() bool

IsExecutable returns false; the file domain is read-only.

The files domain will download remote files into a temporary directory if the file paths are remote, but that is temporary and it is not mutating existing resources.

type FileInfo

type FileInfo struct {
	Name   string `json:"name" yaml:"name"`
	Path   string `json:"path" yaml:"path"`
	Parser string `json:"parser,omitempty" yaml:"parser,omitempty"`
}

type Spec

type Spec struct {
	Filepaths []FileInfo `json:"filepaths" yaml:"filepaths"`
}

Jump to

Keyboard shortcuts

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