Documentation ¶
Index ¶
- type SpaceletListCondition
- type SpaceletManager
- func (s *SpaceletManager) Create(object *types.Spacelet) (*types.Spacelet, error)
- func (s *SpaceletManager) Delete(id uint) error
- func (s *SpaceletManager) Get(id uint) (*types.Spacelet, error)
- func (s *SpaceletManager) GetByHostname(hostname string, opfs ...manager.OptionFunc) (*types.Spacelet, error)
- func (s *SpaceletManager) GetByIpPort(hostIp string, port int) (*types.Spacelet, error)
- func (s *SpaceletManager) List(cond *SpaceletListCondition) ([]*types.Spacelet, error)
- func (s *SpaceletManager) Save(object *types.Spacelet) error
- func (s *SpaceletManager) Update(id uint, object *types.Spacelet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpaceletListCondition ¶
type SpaceletListCondition struct {
Status string
}
type SpaceletManager ¶
func NewSpaceletManager ¶
func NewSpaceletManager(db *gorm.DB) *SpaceletManager
func (*SpaceletManager) Delete ¶
func (s *SpaceletManager) Delete(id uint) error
func (*SpaceletManager) GetByHostname ¶
func (s *SpaceletManager) GetByHostname(hostname string, opfs ...manager.OptionFunc) (*types.Spacelet, error)
func (*SpaceletManager) GetByIpPort ¶
func (*SpaceletManager) List ¶
func (s *SpaceletManager) List(cond *SpaceletListCondition) ([]*types.Spacelet, error)
Click to show internal directories.
Click to hide internal directories.