resource

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InterfaceSpec = spi.InterfaceSpec{
	Name:    "Resource",
	Version: "0.1.0",
}

InterfaceSpec is the current name and version of the Resource API.

Functions

This section is empty.

Types

type ID

type ID string

ID is the unique identifier for a collection of resources.

type Plugin

type Plugin interface {
	Commit(spec Spec, pretend bool) (string, error)
	Destroy(spec Spec, pretend bool) (string, error)
	DescribeResources(spec Spec) (string, error)
}

Plugin defines the functions for a Resource plugin.

type Spec

type Spec struct {

	// ID is the unique identifier for the collection of resources.
	ID ID

	// Properties is the opaque configuration for the resources.
	Properties *types.Any
}

Spec is a specification of resources to provision.

Jump to

Keyboard shortcuts

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