package targets

import "github.com/moby/buildkit/frontend/subrequests/targets"

Index

Constants

const RequestTargets = "frontend.targets"

Variables

var SubrequestsTargetsDefinition = subrequests.Request{
	Name:        RequestTargets,
	Version:     "1.0.0",
	Type:        subrequests.TypeRPC,
	Description: "List all targets current build supports",
	Opts:        []subrequests.Named{},
	Metadata: []subrequests.Named{
		{Name: "result.json"},
		{Name: "result.txt"},
	},
}

Functions

func PrintTargets

func PrintTargets(dt []byte, w io.Writer) error

Types

type List

type List struct {
	Targets []Target `json:"targets"`
	Sources [][]byte `json:"sources"`
}

func (List) ToResult

func (l List) ToResult() (*client.Result, error)

type Target

type Target struct {
	Name        string       `json:"name,omitempty"`
	Default     bool         `json:"default,omitempty"`
	Description string       `json:"description,omitempty"`
	Base        string       `json:"base,omitempty"`
	Platform    string       `json:"platform,omitempty"`
	Location    *pb.Location `json:"location,omitempty"`
}

Source Files

targets.go

Version
v0.21.0 (latest)
Published
Apr 11, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
2 days ago

Tools for package owners.