Documentation ¶
Index ¶
- type Placement
- func (p Placement) GetCount() int
- func (p Placement) GetHostPattern() string
- func (p Placement) GetHosts() []string
- func (p Placement) GetLabel() string
- func (p *Placement) SetCount(count int) error
- func (p *Placement) SetHostPattern(hostPattern string) error
- func (p *Placement) SetHosts(hosts []string) error
- func (p *Placement) SetLabel(label string) error
- type Service
- func (s *Service) GetPlacement() Placement
- func (s *Service) GetServiceID() string
- func (s *Service) GetServiceType() string
- func (s *Service) GetUnmanaged() bool
- func (s *Service) SetPlacement(placement Placement) error
- func (s *Service) SetServiceID(serviceID string) error
- func (s *Service) SetServiceType(serviceType string) error
- func (s *Service) SetUnmanaged(unmanaged bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Placement ¶
type Placement struct { // Label indicates label field Label string `yaml:"label,omitempty"` // Hosts indicates host field Hosts []string `yaml:"hosts,omitempty"` // Count indicates count field Count int `yaml:"count,omitempty"` // HostPattern indicates host_pattern field HostPattern string `yaml:"host_pattern,omitempty"` }
Placement is struct for placement field of ceph service spec yaml
func (Placement) GetHostPattern ¶
GetHostPattern gets value of HostPattern
func (*Placement) SetHostPattern ¶
SetHostPattern sets HostPattern to value
type Service ¶
type Service struct { // ServiceType indicates service_type field ServiceType string `yaml:"service_type"` // ServiceId indicates service_id field ServiceID string `yaml:"service_id"` // Placement indicates placement field Placement Placement `yaml:"placement,omitempty"` // Unmanaged indicates unamaged field Unmanaged bool `yaml:"unmanaged,omitempty"` }
Service is struct for ceph service spec yaml
func (*Service) GetPlacement ¶
GetPlacement gets value of Placement
func (*Service) GetServiceID ¶
GetServiceID gets value of ServiceID
func (*Service) GetServiceType ¶
GetServiceType gets value of ServiceType
func (*Service) GetUnmanaged ¶
GetUnmanaged gets value of Unmanaged
func (*Service) SetPlacement ¶
SetPlacement sets Placement to value
func (*Service) SetServiceID ¶
SetServiceID sets ServiceID to value
func (*Service) SetServiceType ¶
SetServiceType sets ServiceType to value
func (*Service) SetUnmanaged ¶
SetUnmanaged sets Unmanaged to value
Click to show internal directories.
Click to hide internal directories.