Documentation ¶
Index ¶
- type FacadeInterface
- func (_m *FacadeInterface) AddHost(ctx datastore.Context, entity *host.Host) ([]byte, error)
- func (_m *FacadeInterface) AddHostPrivate(ctx datastore.Context, entity *host.Host) ([]byte, error)
- func (_m *FacadeInterface) AddPublicEndpointPort(ctx datastore.Context, serviceid string, endpointName string, portAddr string, ...) (*servicedefinition.Port, error)
- func (_m *FacadeInterface) AddPublicEndpointVHost(ctx datastore.Context, serviceid string, endpointName string, vhost string, ...) (*servicedefinition.VHost, error)
- func (_m *FacadeInterface) AddResourcePool(ctx datastore.Context, entity *pool.ResourcePool) error
- func (_m *FacadeInterface) AddService(ctx datastore.Context, svc service.Service) error
- func (_m *FacadeInterface) AddServiceConfig(ctx datastore.Context, serviceID string, conf servicedefinition.ConfigFile) error
- func (_m *FacadeInterface) AddServiceTemplate(ctx datastore.Context, serviceTemplate servicetemplate.ServiceTemplate, ...) (string, error)
- func (_m *FacadeInterface) AddUser(ctx datastore.Context, newUser user.User) error
- func (_m *FacadeInterface) AssignIPs(ctx datastore.Context, assignmentRequest addressassignment.AssignmentRequest) error
- func (_m *FacadeInterface) ClearEmergencyStopFlag(ctx datastore.Context, serviceID string) (int, error)
- func (_m *FacadeInterface) CountDescendantStates(ctx datastore.Context, serviceID string) (map[string]map[string]int, error)
- func (_m *FacadeInterface) DeleteServiceConfig(ctx datastore.Context, fileID string) error
- func (_m *FacadeInterface) DeployTemplate(ctx datastore.Context, poolID string, templateID string, deploymentID string) ([]string, error)
- func (_m *FacadeInterface) DeployTemplateActive() ([]map[string]string, error)
- func (_m *FacadeInterface) DeployTemplateStatus(deploymentID string, lastStatus string, timeout time.Duration) (string, error)
- func (_m *FacadeInterface) EmergencyStopService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
- func (_m *FacadeInterface) EnablePublicEndpointPort(ctx datastore.Context, serviceid string, endpointName string, portAddr string, ...) error
- func (_m *FacadeInterface) EnablePublicEndpointVHost(ctx datastore.Context, serviceid string, endpointName string, vhost string, ...) error
- func (_m *FacadeInterface) FindHostsInPool(ctx datastore.Context, poolID string) ([]host.Host, error)
- func (_m *FacadeInterface) FindReadHostsInPool(ctx datastore.Context, poolID string) ([]host.ReadHost, error)
- func (_m *FacadeInterface) GetActiveHostIDs(ctx datastore.Context) ([]string, error)
- func (_m *FacadeInterface) GetAggregateServices(ctx datastore.Context, since time.Time, serviceids []string) ([]service.AggregateService, error)
- func (_m *FacadeInterface) GetAllPublicEndpoints(ctx datastore.Context) ([]service.PublicEndpoint, error)
- func (_m *FacadeInterface) GetEvaluatedService(ctx datastore.Context, servicedID string, instanceID int) (*service.Service, error)
- func (_m *FacadeInterface) GetHealthChecksForService(ctx datastore.Context, id string) (map[string]health.HealthCheck, error)
- func (_m *FacadeInterface) GetHost(ctx datastore.Context, hostID string) (*host.Host, error)
- func (_m *FacadeInterface) GetHostInstances(ctx datastore.Context, since time.Time, hostid string) ([]service.Instance, error)
- func (_m *FacadeInterface) GetHostKey(ctx datastore.Context, hostID string) ([]byte, error)
- func (_m *FacadeInterface) GetHostStatuses(ctx datastore.Context, hostIDs []string, since time.Time) ([]host.HostStatus, error)
- func (_m *FacadeInterface) GetHosts(ctx datastore.Context) ([]host.Host, error)
- func (_m *FacadeInterface) GetPoolIPs(ctx datastore.Context, poolID string) (*pool.PoolIPs, error)
- func (_m *FacadeInterface) GetReadHosts(ctx datastore.Context) ([]host.ReadHost, error)
- func (_m *FacadeInterface) GetReadPools(ctx datastore.Context) ([]pool.ReadPool, error)
- func (_m *FacadeInterface) GetResourcePool(ctx datastore.Context, poolID string) (*pool.ResourcePool, error)
- func (_m *FacadeInterface) GetResourcePools(ctx datastore.Context) ([]pool.ResourcePool, error)
- func (_m *FacadeInterface) GetService(ctx datastore.Context, id string) (*service.Service, error)
- func (_m *FacadeInterface) GetServiceAddressAssignmentDetails(ctx datastore.Context, serviceID string, children bool) ([]service.IPAssignment, error)
- func (_m *FacadeInterface) GetServiceConfig(ctx datastore.Context, fileID string) (*servicedefinition.ConfigFile, error)
- func (_m *FacadeInterface) GetServiceConfigs(ctx datastore.Context, serviceID string) ([]service.Config, error)
- func (_m *FacadeInterface) GetServiceDetails(ctx datastore.Context, serviceID string) (*service.ServiceDetails, error)
- func (_m *FacadeInterface) GetServiceDetailsAncestry(ctx datastore.Context, serviceID string) (*service.ServiceDetails, error)
- func (_m *FacadeInterface) GetServiceDetailsByParentID(ctx datastore.Context, serviceID string, since time.Duration) ([]service.ServiceDetails, error)
- func (_m *FacadeInterface) GetServiceDetailsByTenantID(ctx datastore.Context, tenantID string) ([]service.ServiceDetails, error)
- func (_m *FacadeInterface) GetServiceExportedEndpoints(ctx datastore.Context, serviceID string, children bool) ([]service.ExportedEndpoint, error)
- func (_m *FacadeInterface) GetServiceInstances(ctx datastore.Context, since time.Time, serviceid string) ([]service.Instance, error)
- func (_m *FacadeInterface) GetServiceMonitoringProfile(ctx datastore.Context, serviceID string) (*domain.MonitorProfile, error)
- func (_m *FacadeInterface) GetServiceNamePath(ctx datastore.Context, serviceID string) (string, string, error)
- func (_m *FacadeInterface) GetServicePublicEndpoints(ctx datastore.Context, serviceID string, children bool) ([]service.PublicEndpoint, error)
- func (_m *FacadeInterface) GetServiceTemplates(ctx datastore.Context) (map[string]servicetemplate.ServiceTemplate, error)
- func (_m *FacadeInterface) GetServices(ctx datastore.Context, request dao.EntityRequest) ([]service.Service, error)
- func (_m *FacadeInterface) GetServicesHealth(ctx datastore.Context) (map[string]map[int]map[string]health.HealthStatus, error)
- func (_m *FacadeInterface) GetSystemUser(ctx datastore.Context) (user.User, error)
- func (_m *FacadeInterface) GetTaggedServices(ctx datastore.Context, request dao.EntityRequest) ([]service.Service, error)
- func (_m *FacadeInterface) GetTenantID(ctx datastore.Context, serviceID string) (string, error)
- func (_m *FacadeInterface) GetUser(ctx datastore.Context, userName string) (user.User, error)
- func (_m *FacadeInterface) HasIP(ctx datastore.Context, poolID string, ipAddr string) (bool, error)
- func (_m *FacadeInterface) HostIsAuthenticated(ctx datastore.Context, hostid string) (bool, error)
- func (_m *FacadeInterface) ListTenants(_a0 datastore.Context) ([]string, error)
- func (_m *FacadeInterface) MigrateServices(ctx datastore.Context, request dao.ServiceMigrationRequest) error
- func (_m *FacadeInterface) PauseService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
- func (_m *FacadeInterface) PredictStorageAvailability(ctx datastore.Context, lookahead time.Duration) (map[string]float64, error)
- func (_m *FacadeInterface) QueryServiceDetails(ctx datastore.Context, query service.Query) ([]service.ServiceDetails, error)
- func (_m *FacadeInterface) RegisterHostKeys(ctx datastore.Context, entity *host.Host, nat utils.URL, keys []byte, ...) error
- func (_m *FacadeInterface) ReloadLogstashConfig(ctx datastore.Context) error
- func (_m *FacadeInterface) RemoveHost(ctx datastore.Context, hostID string) error
- func (_m *FacadeInterface) RemoveHostExpiration(ctx datastore.Context, hostID string)
- func (_m *FacadeInterface) RemoveIPs(ctx datastore.Context, args []string) error
- func (_m *FacadeInterface) RemovePublicEndpointPort(ctx datastore.Context, serviceid string, endpointName string, portAddr string) error
- func (_m *FacadeInterface) RemovePublicEndpointVHost(ctx datastore.Context, serviceid string, endpointName string, vhost string) error
- func (_m *FacadeInterface) RemoveResourcePool(ctx datastore.Context, id string) error
- func (_m *FacadeInterface) RemoveService(ctx datastore.Context, id string) error
- func (_m *FacadeInterface) RemoveServiceTemplate(ctx datastore.Context, templateID string) error
- func (_m *FacadeInterface) RemoveUser(ctx datastore.Context, userName string) error
- func (_m *FacadeInterface) ReportHealthStatus(key health.HealthStatusKey, value health.HealthStatus, expires time.Duration)
- func (_m *FacadeInterface) ReportInstanceDead(serviceID string, instanceID int)
- func (_m *FacadeInterface) ResetHostKey(ctx datastore.Context, hostID string) ([]byte, error)
- func (_m *FacadeInterface) RestartService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
- func (_m *FacadeInterface) ScheduleServices(ctx datastore.Context, serviceIDs []string, autoLaunch bool, synchronous bool, ...) (int, error)
- func (_m *FacadeInterface) SetHostExpiration(ctx datastore.Context, hostID string, expiration int64)
- func (_m *FacadeInterface) SetIPs(ctx datastore.Context, assignmentRequest addressassignment.AssignmentRequest) error
- func (_m *FacadeInterface) StartService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
- func (_m *FacadeInterface) StopService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
- func (_m *FacadeInterface) SyncServiceRegistry(ctx datastore.Context, svc *service.Service) error
- func (_m *FacadeInterface) UpdateHost(ctx datastore.Context, entity *host.Host) error
- func (_m *FacadeInterface) UpdateResourcePool(ctx datastore.Context, entity *pool.ResourcePool) error
- func (_m *FacadeInterface) UpdateService(ctx datastore.Context, svc service.Service) error
- func (_m *FacadeInterface) UpdateServiceCache(ctx datastore.Context) error
- func (_m *FacadeInterface) UpdateServiceConfig(ctx datastore.Context, fileID string, conf servicedefinition.ConfigFile) error
- func (_m *FacadeInterface) UpdateServiceTemplate(ctx datastore.Context, template servicetemplate.ServiceTemplate, ...) error
- func (_m *FacadeInterface) UpdateUser(ctx datastore.Context, u user.User) error
- func (_m *FacadeInterface) ValidateCredentials(ctx datastore.Context, u user.User) (bool, error)
- func (_m *FacadeInterface) WaitService(ctx datastore.Context, dstate service.DesiredState, timeout time.Duration, ...) error
- type MetricsClient
- type ZZK
- func (_m *ZZK) AddHost(_host *host.Host) error
- func (_m *ZZK) AddVirtualIP(vip *pool.VirtualIP) error
- func (_m *ZZK) DeleteRegistryImage(id string) error
- func (_m *ZZK) DeleteRegistryLibrary(tenantID string) error
- func (_m *ZZK) GetActiveHosts(ctx datastore.Context, poolID string, hosts *[]string) error
- func (_m *ZZK) GetHostStates(ctx datastore.Context, poolID string, hostID string) ([]zkservice.State, error)
- func (_m *ZZK) GetPublicPort(portAddress string) (string, string, error)
- func (_m *ZZK) GetRegistryImage(id string) (*registry.Image, error)
- func (_m *ZZK) GetServiceNodes() ([]zkservice.ServiceNode, error)
- func (_m *ZZK) GetServiceState(ctx datastore.Context, poolID string, serviceID string, instanceID int) (*zkservice.State, error)
- func (_m *ZZK) GetServiceStateIDs(poolID string, serviceID string) ([]zkservice.StateRequest, error)
- func (_m *ZZK) GetServiceStates(ctx datastore.Context, poolID string, serviceID string) ([]zkservice.State, error)
- func (_m *ZZK) GetVHost(subdomain string) (string, string, error)
- func (_m *ZZK) GetVirtualIPHostID(poolID string, ip string) (string, error)
- func (_m *ZZK) IsHostActive(poolID string, hostId string) (bool, error)
- func (_m *ZZK) LockServices(ctx datastore.Context, svcs []service.ServiceDetails) error
- func (_m *ZZK) RegisterDfsClients(clients ...host.Host) error
- func (_m *ZZK) RemoveHost(_host *host.Host) error
- func (_m *ZZK) RemoveResourcePool(poolID string) error
- func (_m *ZZK) RemoveService(poolID string, serviceID string) error
- func (_m *ZZK) RemoveServiceEndpoints(serviceID string) error
- func (_m *ZZK) RemoveTenantExports(tenantID string) error
- func (_m *ZZK) RemoveVirtualIP(vip *pool.VirtualIP) error
- func (_m *ZZK) RestartInstance(ctx datastore.Context, poolID string, serviceID string, instanceID int) error
- func (_m *ZZK) SendDockerAction(poolID string, serviceID string, instanceID int, command string, args []string) error
- func (_m *ZZK) SetRegistryImage(rImage *registry.Image) error
- func (_m *ZZK) StopServiceInstance(poolID string, serviceID string, instanceID int) error
- func (_m *ZZK) StopServiceInstances(ctx datastore.Context, poolID string, serviceID string) error
- func (_m *ZZK) SyncServiceRegistry(ctx datastore.Context, tenantID string, svc *service.Service) error
- func (_m *ZZK) UnlockServices(ctx datastore.Context, svcs []service.ServiceDetails) error
- func (_m *ZZK) UnregisterDfsClients(clients ...host.Host) error
- func (_m *ZZK) UpdateHost(_host *host.Host) error
- func (_m *ZZK) UpdateInstanceCurrentState(ctx datastore.Context, poolID, serviceID string, instanceID int, ...) error
- func (_m *ZZK) UpdateResourcePool(_pool *pool.ResourcePool) error
- func (_m *ZZK) UpdateService(ctx datastore.Context, tenantID string, svc *service.Service, ...) error
- func (_m *ZZK) UpdateServices(ctx datastore.Context, tenantID string, svcs []*service.Service, ...) error
- func (_m *ZZK) WaitInstance(ctx datastore.Context, svc *service.Service, instanceID int, ...) error
- func (_m *ZZK) WaitService(svc *service.Service, state service.DesiredState, cancel <-chan interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FacadeInterface ¶
FacadeInterface is an autogenerated mock type for the FacadeInterface type
func (*FacadeInterface) AddHostPrivate ¶
AddHostPrivate provides a mock function with given fields: ctx, entity
func (*FacadeInterface) AddPublicEndpointPort ¶
func (_m *FacadeInterface) AddPublicEndpointPort(ctx datastore.Context, serviceid string, endpointName string, portAddr string, usetls bool, protocol string, isEnabled bool, restart bool) (*servicedefinition.Port, error)
AddPublicEndpointPort provides a mock function with given fields: ctx, serviceid, endpointName, portAddr, usetls, protocol, isEnabled, restart
func (*FacadeInterface) AddPublicEndpointVHost ¶
func (_m *FacadeInterface) AddPublicEndpointVHost(ctx datastore.Context, serviceid string, endpointName string, vhost string, isEnabled bool, restart bool) (*servicedefinition.VHost, error)
AddPublicEndpointVHost provides a mock function with given fields: ctx, serviceid, endpointName, vhost, isEnabled, restart
func (*FacadeInterface) AddResourcePool ¶
func (_m *FacadeInterface) AddResourcePool(ctx datastore.Context, entity *pool.ResourcePool) error
AddResourcePool provides a mock function with given fields: ctx, entity
func (*FacadeInterface) AddService ¶
AddService provides a mock function with given fields: ctx, svc
func (*FacadeInterface) AddServiceConfig ¶
func (_m *FacadeInterface) AddServiceConfig(ctx datastore.Context, serviceID string, conf servicedefinition.ConfigFile) error
AddServiceConfig provides a mock function with given fields: ctx, serviceID, conf
func (*FacadeInterface) AddServiceTemplate ¶
func (_m *FacadeInterface) AddServiceTemplate(ctx datastore.Context, serviceTemplate servicetemplate.ServiceTemplate, reloadLogstashConfig bool) (string, error)
AddServiceTemplate provides a mock function with given fields: ctx, serviceTemplate, reloadLogstashConfig
func (*FacadeInterface) AssignIPs ¶
func (_m *FacadeInterface) AssignIPs(ctx datastore.Context, assignmentRequest addressassignment.AssignmentRequest) error
AssignIPs provides a mock function with given fields: ctx, assignmentRequest
func (*FacadeInterface) ClearEmergencyStopFlag ¶
func (_m *FacadeInterface) ClearEmergencyStopFlag(ctx datastore.Context, serviceID string) (int, error)
ClearEmergencyStopFlag provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) CountDescendantStates ¶
func (_m *FacadeInterface) CountDescendantStates(ctx datastore.Context, serviceID string) (map[string]map[string]int, error)
CountDescendantStates provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) DeleteServiceConfig ¶
func (_m *FacadeInterface) DeleteServiceConfig(ctx datastore.Context, fileID string) error
DeleteServiceConfig provides a mock function with given fields: ctx, fileID
func (*FacadeInterface) DeployTemplate ¶
func (_m *FacadeInterface) DeployTemplate(ctx datastore.Context, poolID string, templateID string, deploymentID string) ([]string, error)
DeployTemplate provides a mock function with given fields: ctx, poolID, templateID, deploymentID
func (*FacadeInterface) DeployTemplateActive ¶
func (_m *FacadeInterface) DeployTemplateActive() ([]map[string]string, error)
DeployTemplateActive provides a mock function with given fields:
func (*FacadeInterface) DeployTemplateStatus ¶
func (_m *FacadeInterface) DeployTemplateStatus(deploymentID string, lastStatus string, timeout time.Duration) (string, error)
DeployTemplateStatus provides a mock function with given fields: deploymentID, lastStatus, timeout
func (*FacadeInterface) EmergencyStopService ¶
func (_m *FacadeInterface) EmergencyStopService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
EmergencyStopService provides a mock function with given fields: ctx, request
func (*FacadeInterface) EnablePublicEndpointPort ¶
func (_m *FacadeInterface) EnablePublicEndpointPort(ctx datastore.Context, serviceid string, endpointName string, portAddr string, isEnabled bool) error
EnablePublicEndpointPort provides a mock function with given fields: ctx, serviceid, endpointName, portAddr, isEnabled
func (*FacadeInterface) EnablePublicEndpointVHost ¶
func (_m *FacadeInterface) EnablePublicEndpointVHost(ctx datastore.Context, serviceid string, endpointName string, vhost string, isEnabled bool) error
EnablePublicEndpointVHost provides a mock function with given fields: ctx, serviceid, endpointName, vhost, isEnabled
func (*FacadeInterface) FindHostsInPool ¶
func (_m *FacadeInterface) FindHostsInPool(ctx datastore.Context, poolID string) ([]host.Host, error)
FindHostsInPool provides a mock function with given fields: ctx, poolID
func (*FacadeInterface) FindReadHostsInPool ¶
func (_m *FacadeInterface) FindReadHostsInPool(ctx datastore.Context, poolID string) ([]host.ReadHost, error)
FindReadHostsInPool provides a mock function with given fields: ctx, poolID
func (*FacadeInterface) GetActiveHostIDs ¶
func (_m *FacadeInterface) GetActiveHostIDs(ctx datastore.Context) ([]string, error)
GetActiveHostIDs provides a mock function with given fields: ctx
func (*FacadeInterface) GetAggregateServices ¶
func (_m *FacadeInterface) GetAggregateServices(ctx datastore.Context, since time.Time, serviceids []string) ([]service.AggregateService, error)
GetAggregateServices provides a mock function with given fields: ctx, since, serviceids
func (*FacadeInterface) GetAllPublicEndpoints ¶
func (_m *FacadeInterface) GetAllPublicEndpoints(ctx datastore.Context) ([]service.PublicEndpoint, error)
GetAllPublicEndpoints provides a mock function with given fields: ctx
func (*FacadeInterface) GetEvaluatedService ¶
func (_m *FacadeInterface) GetEvaluatedService(ctx datastore.Context, servicedID string, instanceID int) (*service.Service, error)
GetEvaluatedService provides a mock function with given fields: ctx, servicedID, instanceID
func (*FacadeInterface) GetHealthChecksForService ¶
func (_m *FacadeInterface) GetHealthChecksForService(ctx datastore.Context, id string) (map[string]health.HealthCheck, error)
GetHealthChecksForService provides a mock function with given fields: ctx, id
func (*FacadeInterface) GetHostInstances ¶
func (_m *FacadeInterface) GetHostInstances(ctx datastore.Context, since time.Time, hostid string) ([]service.Instance, error)
GetHostInstances provides a mock function with given fields: ctx, since, hostid
func (*FacadeInterface) GetHostKey ¶
GetHostKey provides a mock function with given fields: ctx, hostID
func (*FacadeInterface) GetHostStatuses ¶
func (_m *FacadeInterface) GetHostStatuses(ctx datastore.Context, hostIDs []string, since time.Time) ([]host.HostStatus, error)
GetHostStatuses provides a mock function with given fields: ctx, hostIDs, since
func (*FacadeInterface) GetPoolIPs ¶
GetPoolIPs provides a mock function with given fields: ctx, poolID
func (*FacadeInterface) GetReadHosts ¶
GetReadHosts provides a mock function with given fields: ctx
func (*FacadeInterface) GetReadPools ¶
GetReadPools provides a mock function with given fields: ctx
func (*FacadeInterface) GetResourcePool ¶
func (_m *FacadeInterface) GetResourcePool(ctx datastore.Context, poolID string) (*pool.ResourcePool, error)
GetResourcePool provides a mock function with given fields: ctx, poolID
func (*FacadeInterface) GetResourcePools ¶
func (_m *FacadeInterface) GetResourcePools(ctx datastore.Context) ([]pool.ResourcePool, error)
GetResourcePools provides a mock function with given fields: ctx
func (*FacadeInterface) GetService ¶
GetService provides a mock function with given fields: ctx, id
func (*FacadeInterface) GetServiceAddressAssignmentDetails ¶
func (_m *FacadeInterface) GetServiceAddressAssignmentDetails(ctx datastore.Context, serviceID string, children bool) ([]service.IPAssignment, error)
GetServiceAddressAssignmentDetails provides a mock function with given fields: ctx, serviceID, children
func (*FacadeInterface) GetServiceConfig ¶
func (_m *FacadeInterface) GetServiceConfig(ctx datastore.Context, fileID string) (*servicedefinition.ConfigFile, error)
GetServiceConfig provides a mock function with given fields: ctx, fileID
func (*FacadeInterface) GetServiceConfigs ¶
func (_m *FacadeInterface) GetServiceConfigs(ctx datastore.Context, serviceID string) ([]service.Config, error)
GetServiceConfigs provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) GetServiceDetails ¶
func (_m *FacadeInterface) GetServiceDetails(ctx datastore.Context, serviceID string) (*service.ServiceDetails, error)
GetServiceDetails provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) GetServiceDetailsAncestry ¶
func (_m *FacadeInterface) GetServiceDetailsAncestry(ctx datastore.Context, serviceID string) (*service.ServiceDetails, error)
GetServiceDetailsAncestry provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) GetServiceDetailsByParentID ¶
func (_m *FacadeInterface) GetServiceDetailsByParentID(ctx datastore.Context, serviceID string, since time.Duration) ([]service.ServiceDetails, error)
GetServiceDetailsByParentID provides a mock function with given fields: ctx, serviceID, since
func (*FacadeInterface) GetServiceDetailsByTenantID ¶
func (_m *FacadeInterface) GetServiceDetailsByTenantID(ctx datastore.Context, tenantID string) ([]service.ServiceDetails, error)
GetServiceDetailsByTenantID provides a mock function with given fields: ctx, tenantID
func (*FacadeInterface) GetServiceExportedEndpoints ¶
func (_m *FacadeInterface) GetServiceExportedEndpoints(ctx datastore.Context, serviceID string, children bool) ([]service.ExportedEndpoint, error)
GetServiceExportedEndpoints provides a mock function with given fields: ctx, serviceID, children
func (*FacadeInterface) GetServiceInstances ¶
func (_m *FacadeInterface) GetServiceInstances(ctx datastore.Context, since time.Time, serviceid string) ([]service.Instance, error)
GetServiceInstances provides a mock function with given fields: ctx, since, serviceid
func (*FacadeInterface) GetServiceMonitoringProfile ¶
func (_m *FacadeInterface) GetServiceMonitoringProfile(ctx datastore.Context, serviceID string) (*domain.MonitorProfile, error)
GetServiceMonitoringProfile provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) GetServiceNamePath ¶
func (*FacadeInterface) GetServicePublicEndpoints ¶
func (_m *FacadeInterface) GetServicePublicEndpoints(ctx datastore.Context, serviceID string, children bool) ([]service.PublicEndpoint, error)
GetServicePublicEndpoints provides a mock function with given fields: ctx, serviceID, children
func (*FacadeInterface) GetServiceTemplates ¶
func (_m *FacadeInterface) GetServiceTemplates(ctx datastore.Context) (map[string]servicetemplate.ServiceTemplate, error)
GetServiceTemplates provides a mock function with given fields: ctx
func (*FacadeInterface) GetServices ¶
func (_m *FacadeInterface) GetServices(ctx datastore.Context, request dao.EntityRequest) ([]service.Service, error)
GetServices provides a mock function with given fields: ctx, request
func (*FacadeInterface) GetServicesHealth ¶
func (_m *FacadeInterface) GetServicesHealth(ctx datastore.Context) (map[string]map[int]map[string]health.HealthStatus, error)
GetServicesHealth provides a mock function with given fields: ctx
func (*FacadeInterface) GetSystemUser ¶
GetSystemUser provides a mock function with given fields: ctx
func (*FacadeInterface) GetTaggedServices ¶
func (_m *FacadeInterface) GetTaggedServices(ctx datastore.Context, request dao.EntityRequest) ([]service.Service, error)
GetTaggedServices provides a mock function with given fields: ctx, request
func (*FacadeInterface) GetTenantID ¶
GetTenantID provides a mock function with given fields: ctx, serviceID
func (*FacadeInterface) HasIP ¶
HasIP provides a mock function with given fields: ctx, poolID, ipAddr
func (*FacadeInterface) HostIsAuthenticated ¶
HostIsAuthenticated provides a mock function with given fields: ctx, hostid
func (*FacadeInterface) ListTenants ¶
func (_m *FacadeInterface) ListTenants(_a0 datastore.Context) ([]string, error)
ListTenants provides a mock function with given fields: _a0
func (*FacadeInterface) MigrateServices ¶
func (_m *FacadeInterface) MigrateServices(ctx datastore.Context, request dao.ServiceMigrationRequest) error
MigrateServices provides a mock function with given fields: ctx, request
func (*FacadeInterface) PauseService ¶
func (_m *FacadeInterface) PauseService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
PauseService provides a mock function with given fields: ctx, ScheduleServiceRequest
func (*FacadeInterface) PredictStorageAvailability ¶
func (_m *FacadeInterface) PredictStorageAvailability(ctx datastore.Context, lookahead time.Duration) (map[string]float64, error)
PredictStorageAvailability provides a mock function with given fields: ctx, lookahead
func (*FacadeInterface) QueryServiceDetails ¶
func (_m *FacadeInterface) QueryServiceDetails(ctx datastore.Context, query service.Query) ([]service.ServiceDetails, error)
func (*FacadeInterface) RegisterHostKeys ¶
func (_m *FacadeInterface) RegisterHostKeys(ctx datastore.Context, entity *host.Host, nat utils.URL, keys []byte, prompt bool) error
RegisterHostKeys provides a mock function with given fields: ctx, entity, keys, prompt
func (*FacadeInterface) ReloadLogstashConfig ¶
func (_m *FacadeInterface) ReloadLogstashConfig(ctx datastore.Context) error
ReloadLogstashConfig provides a mock function with given fields: ctx
func (*FacadeInterface) RemoveHost ¶
func (_m *FacadeInterface) RemoveHost(ctx datastore.Context, hostID string) error
RemoveHost provides a mock function with given fields: ctx, hostID
func (*FacadeInterface) RemoveHostExpiration ¶
func (_m *FacadeInterface) RemoveHostExpiration(ctx datastore.Context, hostID string)
RemoveHostExpiration provides a mock function with given fields: ctx, hostID
func (*FacadeInterface) RemoveIPs ¶
func (_m *FacadeInterface) RemoveIPs(ctx datastore.Context, args []string) error
RemoveIPs provides a mock function with given fields: ctx, []string
func (*FacadeInterface) RemovePublicEndpointPort ¶
func (_m *FacadeInterface) RemovePublicEndpointPort(ctx datastore.Context, serviceid string, endpointName string, portAddr string) error
RemovePublicEndpointPort provides a mock function with given fields: ctx, serviceid, endpointName, portAddr
func (*FacadeInterface) RemovePublicEndpointVHost ¶
func (_m *FacadeInterface) RemovePublicEndpointVHost(ctx datastore.Context, serviceid string, endpointName string, vhost string) error
RemovePublicEndpointVHost provides a mock function with given fields: ctx, serviceid, endpointName, vhost
func (*FacadeInterface) RemoveResourcePool ¶
func (_m *FacadeInterface) RemoveResourcePool(ctx datastore.Context, id string) error
RemoveResourcePool provides a mock function with given fields: ctx, id
func (*FacadeInterface) RemoveService ¶
func (_m *FacadeInterface) RemoveService(ctx datastore.Context, id string) error
RemoveService provides a mock function with given fields: ctx, id
func (*FacadeInterface) RemoveServiceTemplate ¶
func (_m *FacadeInterface) RemoveServiceTemplate(ctx datastore.Context, templateID string) error
RemoveServiceTemplate provides a mock function with given fields: ctx, templateID
func (*FacadeInterface) RemoveUser ¶
func (_m *FacadeInterface) RemoveUser(ctx datastore.Context, userName string) error
RemoveUser provides a mock function with given fields: ctx, userName
func (*FacadeInterface) ReportHealthStatus ¶
func (_m *FacadeInterface) ReportHealthStatus(key health.HealthStatusKey, value health.HealthStatus, expires time.Duration)
ReportHealthStatus provides a mock function with given fields: key, value, expires
func (*FacadeInterface) ReportInstanceDead ¶
func (_m *FacadeInterface) ReportInstanceDead(serviceID string, instanceID int)
ReportInstanceDead provides a mock function with given fields: serviceID, instanceID
func (*FacadeInterface) ResetHostKey ¶
ResetHostKey provides a mock function with given fields: ctx, hostID
func (*FacadeInterface) RestartService ¶
func (_m *FacadeInterface) RestartService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
RestartService provides a mock function with given fields: ctx, ScheduleServiceRequest
func (*FacadeInterface) ScheduleServices ¶
func (_m *FacadeInterface) ScheduleServices(ctx datastore.Context, serviceIDs []string, autoLaunch bool, synchronous bool, desiredState service.DesiredState, emergency bool) (int, error)
ScheduleService provides a mock function with given fields: ctx, serviceID, autoLaunch, synchronous, desiredState
func (*FacadeInterface) SetHostExpiration ¶
func (_m *FacadeInterface) SetHostExpiration(ctx datastore.Context, hostID string, expiration int64)
SetHostExpiration provides a mock function with given fields: ctx, hostID, expiration
func (*FacadeInterface) SetIPs ¶
func (_m *FacadeInterface) SetIPs(ctx datastore.Context, assignmentRequest addressassignment.AssignmentRequest) error
SetIPs provides a mock function with given fields: ctx, assignmentRequest
func (*FacadeInterface) StartService ¶
func (_m *FacadeInterface) StartService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
StartService provides a mock function with given fields: ctx, ScheduleServiceRequest
func (*FacadeInterface) StopService ¶
func (_m *FacadeInterface) StopService(ctx datastore.Context, request dao.ScheduleServiceRequest) (int, error)
StopService provides a mock function with given fields: ctx, ScheduleServiceRequest
func (*FacadeInterface) SyncServiceRegistry ¶
SyncServiceRegistry provides a mock function with given fields: ctx, svc
func (*FacadeInterface) UpdateHost ¶
UpdateHost provides a mock function with given fields: ctx, entity
func (*FacadeInterface) UpdateResourcePool ¶
func (_m *FacadeInterface) UpdateResourcePool(ctx datastore.Context, entity *pool.ResourcePool) error
UpdateResourcePool provides a mock function with given fields: ctx, entity
func (*FacadeInterface) UpdateService ¶
UpdateService provides a mock function with given fields: ctx, svc
func (*FacadeInterface) UpdateServiceCache ¶
func (_m *FacadeInterface) UpdateServiceCache(ctx datastore.Context) error
UpdateServiceCache provides a mock function with given fields: ctx
func (*FacadeInterface) UpdateServiceConfig ¶
func (_m *FacadeInterface) UpdateServiceConfig(ctx datastore.Context, fileID string, conf servicedefinition.ConfigFile) error
UpdateServiceConfig provides a mock function with given fields: ctx, fileID, conf
func (*FacadeInterface) UpdateServiceTemplate ¶
func (_m *FacadeInterface) UpdateServiceTemplate(ctx datastore.Context, template servicetemplate.ServiceTemplate, reloadLogstashConfig bool) error
UpdateServiceTemplate provides a mock function with given fields: ctx, template, reloadLogstashConfig
func (*FacadeInterface) UpdateUser ¶
UpdateUser provides a mock function with given fields: ctx, u
func (*FacadeInterface) ValidateCredentials ¶
ValidateCredentials provides a mock function with given fields: ctx, u
func (*FacadeInterface) WaitService ¶
func (_m *FacadeInterface) WaitService(ctx datastore.Context, dstate service.DesiredState, timeout time.Duration, recursive bool, serviceIDs ...string) error
WaitService provides a mock function with given fields: ctx, dstate, timeout, recursive, serviceIDs
type MetricsClient ¶
MetricsClient is an autogenerated mock type for the MetricsClient type
func (*MetricsClient) GetAvailableStorage ¶
func (_m *MetricsClient) GetAvailableStorage(_a0 time.Duration, _a1 string, _a2 ...string) (*metrics.StorageMetrics, error)
GetAvailableStorage provides a mock function with given fields: _a0, _a1, _a2
func (*MetricsClient) GetInstanceMemoryStats ¶
func (_m *MetricsClient) GetInstanceMemoryStats(_a0 time.Time, _a1 ...metrics.ServiceInstance) ([]metrics.MemoryUsageStats, error)
GetInstanceMemoryStats provides a mock function with given fields: _a0, _a1
type ZZK ¶
func (*ZZK) DeleteRegistryImage ¶
func (*ZZK) DeleteRegistryLibrary ¶
func (*ZZK) GetActiveHosts ¶
func (*ZZK) GetHostStates ¶
func (*ZZK) GetPublicPort ¶
func (*ZZK) GetServiceNodes ¶
func (_m *ZZK) GetServiceNodes() ([]zkservice.ServiceNode, error)
func (*ZZK) GetServiceState ¶
func (*ZZK) GetServiceStateIDs ¶
func (*ZZK) GetServiceStates ¶
func (*ZZK) GetVirtualIPHostID ¶
func (*ZZK) LockServices ¶
func (*ZZK) RemoveResourcePool ¶
func (*ZZK) RemoveServiceEndpoints ¶
func (*ZZK) RemoveTenantExports ¶
func (*ZZK) RestartInstance ¶
func (*ZZK) SendDockerAction ¶
func (*ZZK) StopServiceInstance ¶
func (*ZZK) StopServiceInstances ¶
func (*ZZK) SyncServiceRegistry ¶
func (*ZZK) UnlockServices ¶
func (*ZZK) UpdateInstanceCurrentState ¶
func (*ZZK) UpdateResourcePool ¶
func (_m *ZZK) UpdateResourcePool(_pool *pool.ResourcePool) error