Documentation ¶
Index ¶
- type StorageClusterInterface
- type StorageHandlerFuncs
- func (s StorageHandlerFuncs) AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)
- func (s StorageHandlerFuncs) AddNode(c *spec.StorageCluster, n *spec.StorageNode) (*spec.StorageNode, error)
- func (s StorageHandlerFuncs) DeleteCluster(c *spec.StorageCluster) error
- func (s StorageHandlerFuncs) DeleteNode(n *spec.StorageNode) error
- func (s StorageHandlerFuncs) GetStatus(c *spec.StorageCluster) (*spec.StorageStatus, error)
- func (s StorageHandlerFuncs) Init() error
- func (s StorageHandlerFuncs) MakeDeployment(c *spec.StorageCluster, n *spec.StorageNode, old *extensions.Deployment) (*extensions.Deployment, error)
- func (s StorageHandlerFuncs) Type() spec.StorageTypeIdentifier
- func (s StorageHandlerFuncs) UpdateCluster(old *spec.StorageCluster, new *spec.StorageCluster) error
- func (s StorageHandlerFuncs) UpdateNode(c *spec.StorageCluster, n *spec.StorageNode) (*spec.StorageNode, error)
- type StorageNodeInterface
- type StorageType
- type StorageTypeNewFunc
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 (s StorageHandlerFuncs) AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)
func (StorageHandlerFuncs) AddNode ¶
func (s StorageHandlerFuncs) AddNode(c *spec.StorageCluster, n *spec.StorageNode) (*spec.StorageNode, error)
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 (s StorageHandlerFuncs) GetStatus(c *spec.StorageCluster) (*spec.StorageStatus, error)
func (StorageHandlerFuncs) Init ¶
func (s StorageHandlerFuncs) Init() error
func (StorageHandlerFuncs) MakeDeployment ¶
func (s StorageHandlerFuncs) MakeDeployment(c *spec.StorageCluster, n *spec.StorageNode, old *extensions.Deployment) (*extensions.Deployment, error)
func (StorageHandlerFuncs) Type ¶
func (s StorageHandlerFuncs) Type() spec.StorageTypeIdentifier
func (StorageHandlerFuncs) UpdateCluster ¶
func (s StorageHandlerFuncs) UpdateCluster(old *spec.StorageCluster, new *spec.StorageCluster) error
func (StorageHandlerFuncs) UpdateNode ¶
func (s StorageHandlerFuncs) UpdateNode(c *spec.StorageCluster, n *spec.StorageNode) (*spec.StorageNode, error)
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 }
type StorageTypeNewFunc ¶
type StorageTypeNewFunc func(clientset.Interface, restclient.Interface) (StorageType, error)
Click to show internal directories.
Click to hide internal directories.