store

package
v0.0.0-...-ea7eeef Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceError

type ServiceError struct {
	ClientMsg string
	Client    bool
	Err       error
}

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)

Jump to

Keyboard shortcuts

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