package store
import "github.com/docker/buildx/store"
Index ¶
- func GenerateName(txn *Txn) (string, error)
- func IsErrInvalidName(err error) bool
- func ValidateName(s string) (string, error)
- type Node
- type NodeGroup
- func (ng *NodeGroup) Copy() *NodeGroup
- func (ng *NodeGroup) Leave(name string) error
- func (ng *NodeGroup) Update(name, endpoint string, platforms []string, endpointsSet bool, actionAppend bool, buildkitdFlags []string, buildkitdConfigFile string, do map[string]string) error
- type Store
- type Txn
- func (t *Txn) Current(key string) (*NodeGroup, error)
- func (t *Txn) GetLastActivity(ng *NodeGroup) (la time.Time, _ error)
- func (t *Txn) List() ([]*NodeGroup, error)
- func (t *Txn) NodeGroupByName(name string) (*NodeGroup, error)
- func (t *Txn) Remove(name string) error
- func (t *Txn) RemoveLastActivity(name string) error
- func (t *Txn) Save(ng *NodeGroup) error
- func (t *Txn) SetCurrent(key, name string, global, def bool) error
- func (t *Txn) UpdateLastActivity(ng *NodeGroup) error
Functions ¶
func GenerateName ¶
func IsErrInvalidName ¶
func ValidateName ¶
Types ¶
type Node ¶
type Node struct { Name string Endpoint string Platforms []specs.Platform DriverOpts map[string]string BuildkitdFlags []string `json:"Flags"` // keep the field name for backward compatibility Files map[string][]byte }
func (*Node) Copy ¶
type NodeGroup ¶
type NodeGroup struct { Name string Driver string Nodes []Node Dynamic bool // skip the following fields from being saved in the store DockerContext bool `json:"-"` LastActivity time.Time `json:"-"` }
func (*NodeGroup) Copy ¶
func (*NodeGroup) Leave ¶
func (*NodeGroup) Update ¶
func (ng *NodeGroup) Update(name, endpoint string, platforms []string, endpointsSet bool, actionAppend bool, buildkitdFlags []string, buildkitdConfigFile string, do map[string]string) error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
func (*Store) Txn ¶
type Txn ¶
type Txn struct {
// contains filtered or unexported fields
}
func (*Txn) Current ¶
func (*Txn) GetLastActivity ¶
func (*Txn) List ¶
func (*Txn) NodeGroupByName ¶
func (*Txn) Remove ¶
func (*Txn) RemoveLastActivity ¶
func (*Txn) Save ¶
func (*Txn) SetCurrent ¶
func (*Txn) UpdateLastActivity ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
store/storeutil |
- Version
- v0.22.0 (latest)
- Published
- Mar 17, 2025
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 3 weeks ago –
Tools for package owners.