operator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageClusterInterface

type StorageClusterInterface interface {
	AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)
	UpdateCluster(old *spec.StorageCluster, new *spec.StorageCluster) error
	DeleteCluster(c *spec.StorageCluster) error
}

type StorageHandlerFuncs

type StorageHandlerFuncs struct {
	StorageHandler interface{}

	AddClusterFunc    func(c *spec.StorageCluster) (*spec.StorageCluster, error)
	UpdateClusterFunc func(old *spec.StorageCluster, new *spec.StorageCluster) error
	DeleteClusterFunc func(c *spec.StorageCluster) error

	MakeDeploymentFunc func(c *spec.StorageCluster,
		n *spec.StorageNode,
		old *extensions.Deployment) (*extensions.Deployment, error)
	AddNodeFunc    func(c *spec.StorageCluster, n *spec.StorageNode) (*spec.StorageNode, error)
	UpdateNodeFunc func(c *spec.StorageCluster, n *spec.StorageNode) (*spec.StorageNode, error)
	DeleteNodeFunc func(n *spec.StorageNode) error

	InitFunc      func() error
	GetStatusFunc func(c *spec.StorageCluster) (*spec.StorageStatus, error)
	TypeFunc      func() spec.StorageTypeIdentifier
}

func (StorageHandlerFuncs) AddCluster

func (StorageHandlerFuncs) AddNode

func (StorageHandlerFuncs) DeleteCluster

func (s StorageHandlerFuncs) DeleteCluster(c *spec.StorageCluster) error

func (StorageHandlerFuncs) DeleteNode

func (s StorageHandlerFuncs) DeleteNode(n *spec.StorageNode) error

func (StorageHandlerFuncs) GetStatus

func (StorageHandlerFuncs) Init

func (s StorageHandlerFuncs) Init() error

func (StorageHandlerFuncs) MakeDeployment

func (StorageHandlerFuncs) Type

func (StorageHandlerFuncs) UpdateCluster

func (s StorageHandlerFuncs) UpdateCluster(old *spec.StorageCluster,
	new *spec.StorageCluster) error

func (StorageHandlerFuncs) UpdateNode

type StorageNodeInterface

type StorageNodeInterface interface {
	MakeDeployment(c *spec.StorageCluster,
		s *spec.StorageNode,
		old *extensions.Deployment) (*extensions.Deployment, error)
	AddNode(c *spec.StorageCluster, s *spec.StorageNode) (*spec.StorageNode, error)
	UpdateNode(c *spec.StorageCluster, s *spec.StorageNode) (*spec.StorageNode, error)
	DeleteNode(s *spec.StorageNode) error
}

type StorageType

type StorageType interface {
	StorageClusterInterface
	StorageNodeInterface

	Init() error
	GetStatus(c *spec.StorageCluster) (*spec.StorageStatus, error)

	// Must be supplied
	Type() spec.StorageTypeIdentifier
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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