Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend string
Backend is a logical name that can select the different backends configured with this plugin. Each backend corresponds to a location as model by stow.
type Options ¶
type Options struct {
// Store is the store of backend (e.g. s3, azure)
Store string
// Container is the name of the container, eg. name of the bucket
Container string
// Config are the configuration parameters for the image store backend
Config map[string]*types.Any `json:",omitempty" yaml:",omitempty"`
}
Options model the necessary input to create a single dial location
type Properties ¶
type Properties struct {
// ID is the instance unique ID
ID *instance.ID
// Locations
Locations map[string]URL `json:",omitempty" yaml:",omitempty"`
}
Properties contain data for an instance of an image which can have multiple components
type Spec ¶
type Spec struct {
// Source are the locations of the content parts to be uploaded. It's a map of a
// name to an URL for retrieving the content
Sources map[string]URL
// Options has the configuration of the backend store
Options *Options
}
Spec is the schema for creating an image instance. An image instance is a logical unit that has an id and can consist of multiple blobs (e.g. one for kernel, one for initrd, each with its own URL.