host

package
v0.0.158 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNixosPatched

func EnsureNixosPatched(ctx context.Context, binary string) (string, error)

func HostPlatform

func HostPlatform() specs.Platform

func IsNixOS

func IsNixOS() bool

Types

type ArtifactList

type ArtifactList map[string]string // platform --> digest

type LocalSDK

type LocalSDK struct {
	Path    string
	Version string
	Binary  string
}

func (LocalSDK) ComputeDigest

func (sdk LocalSDK) ComputeDigest(context.Context) (schema.Digest, error)

type ParsedVersions

type ParsedVersions struct {
	Name     string
	FS       fs.FS
	Filename string
	// contains filtered or unexported fields
}

func (*ParsedVersions) Get

func (*ParsedVersions) SDK

func (p *ParsedVersions) SDK(version string, platform specs.Platform, makeURL func(string, specs.Platform) (string, string)) (compute.Computable[LocalSDK], error)

type PrepareSDK

type PrepareSDK struct {
	Name     string
	Platform specs.Platform
	Binary   string
	Version  string
	Ref      artifacts.Reference

	compute.DoScoped[LocalSDK]
}

func (*PrepareSDK) Action

func (p *PrepareSDK) Action() *tasks.ActionEvent

func (*PrepareSDK) Compute

func (p *PrepareSDK) Compute(ctx context.Context, _ compute.Resolved) (LocalSDK, error)

func (*PrepareSDK) Inputs

func (p *PrepareSDK) Inputs() *compute.In

func (*PrepareSDK) Output

func (p *PrepareSDK) Output() compute.Output

type VersionConfiguration

type VersionConfiguration struct {
	Versions  map[string]string       `json:"versions"`
	Artifacts map[string]ArtifactList `json:"artifacts"`
}

Jump to

Keyboard shortcuts

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