image

package
v0.0.0-...-a355528 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(namespace map[string]string) (instance.Plugin, error)

NewPlugin creates an instance plugin for images.

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.

type URL

type URL string

URL is a location in url form

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL