service

package
v0.0.0-...-9a4260c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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) GetCount

func (p Placement) GetCount() int

GetCount gets value of Count

func (Placement) GetHostPattern

func (p Placement) GetHostPattern() string

GetHostPattern gets value of HostPattern

func (Placement) GetHosts

func (p Placement) GetHosts() []string

GetHosts gets value of Hosts

func (Placement) GetLabel

func (p Placement) GetLabel() string

GetLabel gets value of Label

func (*Placement) SetCount

func (p *Placement) SetCount(count int) error

SetCount sets Count to value

func (*Placement) SetHostPattern

func (p *Placement) SetHostPattern(hostPattern string) error

SetHostPattern sets HostPattern to value

func (*Placement) SetHosts

func (p *Placement) SetHosts(hosts []string) error

SetHosts sets Hosts to value

func (*Placement) SetLabel

func (p *Placement) SetLabel(label string) error

SetLabel sets Label 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

func (s *Service) GetPlacement() Placement

GetPlacement gets value of Placement

func (*Service) GetServiceID

func (s *Service) GetServiceID() string

GetServiceID gets value of ServiceID

func (*Service) GetServiceType

func (s *Service) GetServiceType() string

GetServiceType gets value of ServiceType

func (*Service) GetUnmanaged

func (s *Service) GetUnmanaged() bool

GetUnmanaged gets value of Unmanaged

func (*Service) SetPlacement

func (s *Service) SetPlacement(placement Placement) error

SetPlacement sets Placement to value

func (*Service) SetServiceID

func (s *Service) SetServiceID(serviceID string) error

SetServiceID sets ServiceID to value

func (*Service) SetServiceType

func (s *Service) SetServiceType(serviceType string) error

SetServiceType sets ServiceType to value

func (*Service) SetUnmanaged

func (s *Service) SetUnmanaged(unmanaged bool) error

SetUnmanaged sets Unmanaged to value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL