Documentation
¶
Index ¶
- func New(client clientset.Interface, qm restclient.Interface) (qmstorage.StorageType, error)
- type MockStorage
- func (st *MockStorage) AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)
- func (st *MockStorage) AddNode(s *spec.StorageNode) (*spec.StorageNode, error)
- func (st *MockStorage) DeleteCluster(c *spec.StorageCluster) error
- func (st *MockStorage) DeleteNode(s *spec.StorageNode) error
- func (st *MockStorage) Init() error
- func (st *MockStorage) MakeDeployment(s *spec.StorageNode, old *extensions.Deployment) (*extensions.Deployment, error)
- func (st *MockStorage) Type() spec.StorageTypeIdentifier
- func (st *MockStorage) UpdateCluster(old *spec.StorageCluster, new *spec.StorageCluster) error
- func (st *MockStorage) UpdateNode(s *spec.StorageNode) (*spec.StorageNode, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client clientset.Interface, qm restclient.Interface) (qmstorage.StorageType, error)
This mock storage system serves as an example driver for developers
Types ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
func (*MockStorage) AddCluster ¶
func (st *MockStorage) AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)
func (*MockStorage) AddNode ¶
func (st *MockStorage) AddNode(s *spec.StorageNode) (*spec.StorageNode, error)
func (*MockStorage) DeleteCluster ¶
func (st *MockStorage) DeleteCluster(c *spec.StorageCluster) error
func (*MockStorage) DeleteNode ¶
func (st *MockStorage) DeleteNode(s *spec.StorageNode) error
func (*MockStorage) Init ¶
func (st *MockStorage) Init() error
func (*MockStorage) MakeDeployment ¶
func (st *MockStorage) MakeDeployment(s *spec.StorageNode, old *extensions.Deployment) (*extensions.Deployment, error)
func (*MockStorage) Type ¶
func (st *MockStorage) Type() spec.StorageTypeIdentifier
func (*MockStorage) UpdateCluster ¶
func (st *MockStorage) UpdateCluster(old *spec.StorageCluster, new *spec.StorageCluster) error
func (*MockStorage) UpdateNode ¶
func (st *MockStorage) UpdateNode(s *spec.StorageNode) (*spec.StorageNode, error)
Click to show internal directories.
Click to hide internal directories.