Documentation
¶
Overview ¶
Package driver is the package serving the driver registry. A driver is identified by group and name, via the ID type.
Index ¶
- Variables
- func Exists(id ID) bool
- func GroupNames() []string
- func LoadBundle(pluginPath string) error
- func NamesByGroup() map[Group][]string
- func Register(id ID, allocator any)
- func RegisterFromPlugin(id ID, allocator any, plugin string)
- type Driver
- type Dumper
- type Group
- type ID
- type IDs
- type Registry
Constants ¶
This section is empty.
Variables ¶
var (
All = NewRegistry()
)
var (
DefaultDriver = map[Group]string{
GroupApp: "forking",
GroupContainer: "oci",
GroupIP: "host",
GroupTask: "host",
GroupVolume: "",
GroupSync: "rsync",
}
)
Functions ¶
func LoadBundle ¶
func NamesByGroup ¶
func RegisterFromPlugin ¶
Types ¶
type Group ¶
type Group int
Group groups drivers sharing some properties. A resourceset is a collection of resources having the same drivergroup and subset.
func (Group) MarshalText ¶
MarshalText marshals the enum as a quoted json string
func (*Group) UnmarshalText ¶
UnmarshalText unmashals a quoted json string to the enum value
type ID ¶
ID is the driver main struct. It identifies a driver by Group and name.
func (ID) NewGenericID ¶
func (ID) Unstructured ¶
type IDs ¶
type IDs []ID
func List ¶
func List() IDs
List returns the registered driver ids, in a stable order.
The registry is a map, and what is generated from this list is compared from one agent version to the next: the keyword documentation of a release is diffed against the previous one, which a listing that comes out in a different order every run makes impossible.