devbox

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client) *Client

func (*Client) Pkg added in v0.2.0

func (client *Client) Pkg(request PkgRequest) (*PkgResponse, error)

func (*Client) Resolve

func (client *Client) Resolve(request ResolveRequest) (*ResolveResponse, error)

type Config

type Config struct {
	Name        string
	Description string
	Packages    []PackageSpec
	Env         map[string]string
}

func ParseConfig

func ParseConfig(r io.Reader) (*Config, error)

type FlakeInstallable added in v0.2.0

type FlakeInstallable struct {
	Ref      Ref    `json:"ref,omitempty"`
	AttrPath string `json:"attr_path,omitempty"`
}

type Output added in v0.2.0

type Output struct {
	Name    string `json:"name,omitempty"`
	Path    string `json:"path,omitempty"`
	Default bool   `json:"default,omitempty"`
}

type PackageSpec

type PackageSpec struct {
	Name    string
	Version string
}

type PkgRequest added in v0.2.0

type PkgRequest struct {
	Name string
}

type PkgResponse added in v0.2.0

type PkgResponse struct {
	Name        string    `json:"name,omitempty"`
	Summary     string    `json:"summary,omitempty"`
	HomepageUrl string    `json:"homepage_url,omitempty"`
	License     string    `json:"string,omitempty"`
	Releases    []Release `json:"releases,omitempty"`
}

type Platform added in v0.2.0

type Platform struct {
	Arch          string   `json:"arch,omitempty"`
	Os            string   `json:"os,omitempty"`
	System        string   `json:"system,omitempty"`
	AttributePath string   `json:"attribute_path,omitempty"`
	CommitHash    string   `json:"commit_hash,omitempty"`
	Date          string   `json:"date,omitempty"`
	Outputs       []Output `json:"outputs,omitempty"`
}

type Ref added in v0.2.0

type Ref struct {
	Type  string `json:"type,omitempty"`
	Owner string `json:"owner,omitempty"`
	Repo  string `json:"repo,omitempty"`
	Rev   string `json:"rev,omitempty"`
}

type Release added in v0.2.0

type Release struct {
	Version          string     `json:"version,omitempty"`
	LastUpdated      string     `json:"last_updated,omitempty"`
	Platforms        []Platform `json:"platforms,omitempty"`
	PlatformsSummary string     `json:"platforms_summary,omitempty"`
	OutputsSummary   string     `json:"outputs_summary,omitempty"`
}

type ResolveRequest

type ResolveRequest struct {
	Name    string
	Version string
}

type ResolveResponse

type ResolveResponse struct {
	Name    string            `json:"name,omitempty"`
	Version string            `json:"version,omitempty"`
	Summary string            `json:"summary,omitempty"`
	Systems map[string]System `json:"systems,omitempty"`
}

type System added in v0.2.0

type System struct {
	FlakeInstallable FlakeInstallable `json:"flake_installable,omitempty"`
	LastUpdated      string           `json:"last_updated,omitempty"`
	Outputs          []Output         `json:"outputs,omitempty"`
}

Jump to

Keyboard shortcuts

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