mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

func (*Store) Delete

func (_m *Store) Delete(ctx datastore.Context, id string) error

func (*Store) FindChildService

func (_m *Store) FindChildService(ctx datastore.Context, deploymentID string, parentID string, serviceName string) (*service.Service, error)

func (*Store) FindTenantByDeploymentID

func (_m *Store) FindTenantByDeploymentID(ctx datastore.Context, deploymentID string, name string) (*service.Service, error)

func (*Store) Get

func (_m *Store) Get(ctx datastore.Context, id string) (*service.Service, error)

func (*Store) GetAllExportedEndpoints

func (_m *Store) GetAllExportedEndpoints(ctx datastore.Context) ([]service.ExportedEndpoint, error)

func (*Store) GetAllIPAssignments

func (_m *Store) GetAllIPAssignments(ctx datastore.Context) ([]service.BaseIPAssignment, error)

func (*Store) GetAllPublicEndpoints

func (_m *Store) GetAllPublicEndpoints(ctx datastore.Context) ([]service.PublicEndpoint, error)

func (*Store) GetAllServiceHealth

func (_m *Store) GetAllServiceHealth(ctx datastore.Context) ([]service.ServiceHealth, error)

func (*Store) GetChildServices

func (_m *Store) GetChildServices(ctx datastore.Context, parentID string) ([]service.Service, error)

func (*Store) GetServiceCountByImage

func (_m *Store) GetServiceCountByImage(ctx datastore.Context, imageID string) (int, error)

func (*Store) GetServiceDetails

func (_m *Store) GetServiceDetails(ctx datastore.Context, serviceID string) (*service.ServiceDetails, error)

func (*Store) GetServiceDetailsByIDOrName

func (_m *Store) GetServiceDetailsByIDOrName(ctx datastore.Context, query string, noprefix bool) ([]service.ServiceDetails, error)

func (*Store) GetServiceDetailsByParentID

func (_m *Store) GetServiceDetailsByParentID(ctx datastore.Context, parentID string, since time.Duration) ([]service.ServiceDetails, error)

func (*Store) GetServiceHealth

func (_m *Store) GetServiceHealth(ctx datastore.Context, serviceID string) (*service.ServiceHealth, error)

func (*Store) GetServices

func (_m *Store) GetServices(ctx datastore.Context) ([]service.Service, error)

func (*Store) GetServicesByDeployment

func (_m *Store) GetServicesByDeployment(ctx datastore.Context, deploymentID string) ([]service.Service, error)

func (*Store) GetServicesByPool

func (_m *Store) GetServicesByPool(ctx datastore.Context, poolID string) ([]service.Service, error)

func (*Store) GetTaggedServices

func (_m *Store) GetTaggedServices(ctx datastore.Context, tags ...string) ([]service.Service, error)

func (*Store) GetUpdatedServices

func (_m *Store) GetUpdatedServices(ctx datastore.Context, since time.Duration) ([]service.Service, error)

func (*Store) Put

func (_m *Store) Put(ctx datastore.Context, svc *service.Service) error

func (*Store) Query

func (_m *Store) Query(ctx datastore.Context, query service.Query) ([]service.ServiceDetails, error)

func (*Store) UpdateCurrentState

func (_m *Store) UpdateCurrentState(ctx datastore.Context, serviceID string, currentState string) error

func (*Store) UpdateDesiredState

func (_m *Store) UpdateDesiredState(ctx datastore.Context, serviceID string, desiredState int) error

Jump to

Keyboard shortcuts

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