package localstate
import "github.com/docker/buildx/localstate"
Index ¶
- type LocalState
- func New(root string) (*LocalState, error)
- func (ls *LocalState) ReadGroup(id string) (*StateGroup, error)
- func (ls *LocalState) ReadRef(builderName, nodeName, id string) (*State, error)
- func (ls *LocalState) RemoveBuilder(builderName string) error
- func (ls *LocalState) RemoveBuilderNode(builderName string, nodeName string) error
- func (ls *LocalState) SaveGroup(id string, stg StateGroup) error
- func (ls *LocalState) SaveRef(builderName, nodeName, id string, st State) error
- type State
- type StateGroup
Types ¶
type LocalState ¶
type LocalState struct {
// contains filtered or unexported fields
}
func New ¶
func New(root string) (*LocalState, error)
func (*LocalState) ReadGroup ¶
func (ls *LocalState) ReadGroup(id string) (*StateGroup, error)
func (*LocalState) ReadRef ¶
func (ls *LocalState) ReadRef(builderName, nodeName, id string) (*State, error)
func (*LocalState) RemoveBuilder ¶
func (ls *LocalState) RemoveBuilder(builderName string) error
func (*LocalState) RemoveBuilderNode ¶
func (ls *LocalState) RemoveBuilderNode(builderName string, nodeName string) error
RemoveBuilderNode removes all refs for a builder node. This func is not safe for concurrent use from multiple goroutines.
func (*LocalState) SaveGroup ¶
func (ls *LocalState) SaveGroup(id string, stg StateGroup) error
func (*LocalState) SaveRef ¶
func (ls *LocalState) SaveRef(builderName, nodeName, id string, st State) error
type State ¶
type State struct { // Target is the name of the invoked target (default if empty) Target string // LocalPath is the absolute path to the context or remote context LocalPath string // DockerfilePath is the absolute path to the Dockerfile or relative if // context is remote DockerfilePath string // GroupRef is the ref of the state group that this ref belongs to GroupRef string `json:",omitempty"` }
type StateGroup ¶
type StateGroup struct { // Definition is the raw representation of the group (bake definition) Definition []byte // Targets are the targets invoked Targets []string `json:",omitempty"` // Inputs are the user inputs (bake overrides) Inputs []string `json:",omitempty"` // Refs are used to track all the refs that belong to the same group Refs []string }
Source Files ¶
- Version
- v0.17.0-rc2
- Published
- Sep 9, 2024
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 13 hours ago –
Tools for package owners.