package store

import "github.com/docker/buildx/store"

Index

Functions

func GenerateName

func GenerateName(txn *Txn) (string, error)

func ValidateName

func ValidateName(s string) (string, error)

Types

type Node

type Node struct {
	Name       string
	Endpoint   string
	Platforms  []specs.Platform
	Flags      []string
	DriverOpts map[string]string

	Files map[string][]byte
}

func (*Node) Copy

func (n *Node) Copy() *Node

type NodeGroup

type NodeGroup struct {
	Name    string
	Driver  string
	Nodes   []Node
	Dynamic bool
}

func (*NodeGroup) Copy

func (ng *NodeGroup) Copy() *NodeGroup

func (*NodeGroup) Leave

func (ng *NodeGroup) Leave(name string) error

func (*NodeGroup) Update

func (ng *NodeGroup) Update(name, endpoint string, platforms []string, endpointsSet bool, actionAppend bool, flags []string, configFile string, do map[string]string) error

type Store

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

func New

func New(root string) (*Store, error)

func (*Store) Txn

func (s *Store) Txn() (*Txn, func(), error)

type Txn

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

func (*Txn) Current

func (t *Txn) Current(key string) (*NodeGroup, error)

func (*Txn) List

func (t *Txn) List() ([]*NodeGroup, error)

func (*Txn) NodeGroupByName

func (t *Txn) NodeGroupByName(name string) (*NodeGroup, error)

func (*Txn) Remove

func (t *Txn) Remove(name string) error

func (*Txn) Save

func (t *Txn) Save(ng *NodeGroup) error

func (*Txn) SetCurrent

func (t *Txn) SetCurrent(key, name string, global, def bool) error

Source Files

nodegroup.go store.go util.go

Directories

PathSynopsis
store/storeutil
Version
v0.9.1
Published
Aug 18, 2022
Platform
js/wasm
Imports
17 packages
Last checked
12 hours ago

Tools for package owners.