Documentation
¶
Index ¶
- type Cluster
- func (m *Cluster) Acquire()
- func (m *Cluster) Browse(callback func(*Cluster) error) error
- func (m *Cluster) Carry(cluster *api.ClusterCore) *Cluster
- func (m *Cluster) Delete() error
- func (m *Cluster) Get() *api.ClusterCore
- func (m *Cluster) Read(name string) (bool, error)
- func (m *Cluster) Release()
- func (m *Cluster) Reload() error
- func (m *Cluster) Write() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster is the cluster definition stored in ObjectStorage
func (*Cluster) Acquire ¶
func (m *Cluster) Acquire()
Acquire waits until the write lock is available, then locks the metadata
func (*Cluster) Carry ¶
func (m *Cluster) Carry(cluster *api.ClusterCore) *Cluster
Carry links metadata with cluster struct
func (*Cluster) Get ¶
func (m *Cluster) Get() *api.ClusterCore
Get returns the content of the metadata
Click to show internal directories.
Click to hide internal directories.