Documentation ¶
Index ¶
- type ServiceError
- type ServiceStore
- func (s *ServiceStore) CreateService(m *models.Service, p *models.Principal, ctx context.Context) (*models.Service, *ServiceError)
- func (s *ServiceStore) DeleteService(m *models.Service, p *models.Principal, ctx context.Context) *ServiceError
- func (s *ServiceStore) GetService(name, namespace string, ctx context.Context) (*models.Service, bool, *ServiceError)
- func (s *ServiceStore) GetServiceLogs(m *models.Service, instance string, lines int64, ctx context.Context) (string, *ServiceError)
- func (s *ServiceStore) GetServiceRestores(ns, serviceName string, ctx context.Context) ([]*models.Restore, *ServiceError)
- func (s *ServiceStore) ListServices(p *models.Principal, ctx context.Context) ([]*models.Service, *ServiceError)
- func (s *ServiceStore) NewServiceObject(name, namespace string) *models.Service
- func (s *ServiceStore) UpdateService(m *models.Service, p *models.Principal, ctx context.Context) (*models.Service, *ServiceError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceError ¶
Error type for 1st level customer facing Service methods
func NewServiceError ¶
func NewServiceError(clientMsg string, client bool, err error) *ServiceError
type ServiceStore ¶
type ServiceStore struct {
// contains filtered or unexported fields
}
func NewServiceStore ¶
func NewServiceStore(clientset kubernetes.Interface, restClient rest.Interface, logger logging.Logger) *ServiceStore
func (*ServiceStore) CreateService ¶
func (s *ServiceStore) CreateService(m *models.Service, p *models.Principal, ctx context.Context) (*models.Service, *ServiceError)
func (*ServiceStore) DeleteService ¶
func (s *ServiceStore) DeleteService(m *models.Service, p *models.Principal, ctx context.Context) *ServiceError
func (*ServiceStore) GetService ¶
func (s *ServiceStore) GetService(name, namespace string, ctx context.Context) (*models.Service, bool, *ServiceError)
func (*ServiceStore) GetServiceLogs ¶
func (s *ServiceStore) GetServiceLogs(m *models.Service, instance string, lines int64, ctx context.Context) (string, *ServiceError)
func (*ServiceStore) GetServiceRestores ¶
func (s *ServiceStore) GetServiceRestores(ns, serviceName string, ctx context.Context) ([]*models.Restore, *ServiceError)
returns empty list of no restores found
func (*ServiceStore) ListServices ¶
func (s *ServiceStore) ListServices(p *models.Principal, ctx context.Context) ([]*models.Service, *ServiceError)
func (*ServiceStore) NewServiceObject ¶
func (s *ServiceStore) NewServiceObject(name, namespace string) *models.Service
func (*ServiceStore) UpdateService ¶
func (s *ServiceStore) UpdateService(m *models.Service, p *models.Principal, ctx context.Context) (*models.Service, *ServiceError)
Click to show internal directories.
Click to hide internal directories.