sdkbuildfile

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBuildFile

func IsBuildFile(r io.Reader) bool

func ReadVersion

func ReadVersion(r io.Reader) (string, error)

Types

type BuildFile

type BuildFile struct {
	Info     BuildInfo      `json:"info"`
	Runtimes []*RuntimeData `json:"runtimes"`

	// requirements that are not satisfiable at build time.
	RuntimeRequirements []sdktypes.BuildRequirement `json:"runtime_requirements"`
}

func Read

func Read(r io.Reader) (*BuildFile, error)

Reads a build file from given reader. This does not make sure that all fields in BuildFile are present at the end of the read. Only that what is read is valid.

func (*BuildFile) OmitContent

func (bf *BuildFile) OmitContent()

func (*BuildFile) Write

func (bf *BuildFile) Write(w io.Writer) error

type BuildInfo

type BuildInfo struct {
	Memo map[string]string `json:"memo,omitempty"`
}

type ResourceInfo

type ResourceInfo struct {
	Path   string `json:"path"`
	Status string `json:"status"`
}

type RuntimeData

type RuntimeData struct {
	Info     RuntimeInfo            `json:"info"`
	Artifact sdktypes.BuildArtifact `json:"artifact"`
}

func (*RuntimeData) MergeFrom

func (d *RuntimeData) MergeFrom(other *RuntimeData) error

This does not overwrite Info.

type RuntimeInfo

type RuntimeInfo struct {
	Name sdktypes.Symbol `json:"name"`
}

Jump to

Keyboard shortcuts

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