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 ¶
View Source
var (
All = NewRegistry()
)
View Source
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 ¶
Click to show internal directories.
Click to hide internal directories.