Documentation ¶
Index ¶
- type ClientInterface
- func (_m *ClientInterface) AddHost(h host.Host) ([]byte, error)
- func (_m *ClientInterface) AddHostPrivate(h host.Host) ([]byte, error)
- func (_m *ClientInterface) AddPublicEndpointPort(serviceid string, endpointName string, portAddr string, usetls bool, ...) (*servicedefinition.Port, error)
- func (_m *ClientInterface) AddPublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool, ...) (*servicedefinition.VHost, error)
- func (_m *ClientInterface) AddResourcePool(p pool.ResourcePool) error
- func (_m *ClientInterface) AddServiceTemplate(serviceTemplate servicetemplate.ServiceTemplate) (string, error)
- func (_m *ClientInterface) AddVirtualIP(requestVirtualIP pool.VirtualIP) error
- func (_m *ClientInterface) AuthenticateHost(hostID string) (string, int64, error)
- func (_m *ClientInterface) ClearEmergency(serviceID string) (int, error)
- func (_m *ClientInterface) Close() error
- func (_m *ClientInterface) DebugDisableMetrics() (string, error)
- func (_m *ClientInterface) DebugEnableMetrics() (string, error)
- func (_m *ClientInterface) DeployTemplate(request servicetemplate.ServiceTemplateDeploymentRequest) ([]string, error)
- func (_m *ClientInterface) DockerOverride(newImage string, oldImage string) error
- func (_m *ClientInterface) EnablePublicEndpointPort(serviceid string, endpointName string, portAddr string, isEnabled bool) error
- func (_m *ClientInterface) EnablePublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool) error
- func (_m *ClientInterface) FindHostsInPool(poolID string) ([]host.Host, error)
- func (_m *ClientInterface) GetActiveHostIDs() ([]string, error)
- func (_m *ClientInterface) GetAllPublicEndpoints() ([]service.PublicEndpoint, error)
- func (_m *ClientInterface) GetAllServiceDetails(since time.Duration) ([]service.ServiceDetails, error)
- func (_m *ClientInterface) GetEvaluatedService(serviceID string, instanceID int) (*service.Service, string, string, error)
- func (_m *ClientInterface) GetHost(hostID string) (*host.Host, error)
- func (_m *ClientInterface) GetHostPublicKey(hostID string) ([]byte, error)
- func (_m *ClientInterface) GetHosts() ([]host.Host, error)
- func (_m *ClientInterface) GetISvcsHealth(IServiceNames []string) ([]isvcs.IServiceHealthResult, error)
- func (_m *ClientInterface) GetPoolIPs(poolID string) (*pool.PoolIPs, error)
- func (_m *ClientInterface) GetResourcePool(poolID string) (*pool.ResourcePool, error)
- func (_m *ClientInterface) GetResourcePools() ([]pool.ResourcePool, error)
- func (_m *ClientInterface) GetServiceDetails(serviceID string) (*service.ServiceDetails, error)
- func (_m *ClientInterface) GetServiceDetailsByTenantID(tenantID string) ([]service.ServiceDetails, error)
- func (_m *ClientInterface) GetServiceEndpoints(serviceIDs []string, reportImports bool, reportExports bool, validate bool) ([]applicationendpoint.EndpointReport, error)
- func (_m *ClientInterface) GetServiceInstances(serviceID string) ([]service.Instance, error)
- func (_m *ClientInterface) GetServiceTemplates() (map[string]servicetemplate.ServiceTemplate, error)
- func (_m *ClientInterface) GetServicesHealth() (map[string]map[int]map[string]health.HealthStatus, error)
- func (_m *ClientInterface) GetSystemUser() (user.User, error)
- func (_m *ClientInterface) GetTenantID(serviceID string) (string, error)
- func (_m *ClientInterface) GetVolumeStatus() (*volume.Statuses, error)
- func (_m *ClientInterface) HostsAuthenticated(hostIDs []string) (map[string]bool, error)
- func (_m *ClientInterface) LocateServiceInstance(serviceID string, instanceID int) (*service.LocationInstance, error)
- func (_m *ClientInterface) RemoveHost(hostID string) error
- func (_m *ClientInterface) RemoveIPs(args []string) error
- func (_m *ClientInterface) RemovePublicEndpointPort(serviceid string, endpointName string, portAddr string) error
- func (_m *ClientInterface) RemovePublicEndpointVHost(serviceid string, endpointName string, vhost string) error
- func (_m *ClientInterface) RemoveResourcePool(poolID string) error
- func (_m *ClientInterface) RemoveServiceTemplate(serviceTemplateID string) error
- func (_m *ClientInterface) RemoveVirtualIP(requestVirtualIP pool.VirtualIP) error
- func (_m *ClientInterface) ReportHealthStatus(key health.HealthStatusKey, value health.HealthStatus, expires time.Duration) error
- func (_m *ClientInterface) ReportInstanceDead(serviceID string, instanceID int) error
- func (_m *ClientInterface) ResetHostKey(hostID string) ([]byte, error)
- func (_m *ClientInterface) ResetRegistry() error
- func (_m *ClientInterface) ResolveServicePath(path string, noprefix bool) ([]service.ServiceDetails, error)
- func (_m *ClientInterface) SendDockerAction(serviceID string, instanceID int, action string, args []string) error
- func (_m *ClientInterface) ServiceUse(tenantID string, serviceID string, imageID string, registry string, ...) (string, error)
- func (_m *ClientInterface) SetIPs(assignmentRequest addressassignment.AssignmentRequest) error
- func (_m *ClientInterface) StopServiceInstance(serviceID string, instanceID int) error
- func (_m *ClientInterface) SyncRegistry() error
- func (_m *ClientInterface) UpdateHost(h host.Host) error
- func (_m *ClientInterface) UpdateResourcePool(p pool.ResourcePool) error
- func (_m *ClientInterface) UpgradeRegistry(endpoint string, override bool) error
- func (_m *ClientInterface) ValidateCredentials(_a0 user.User) (bool, error)
- func (_m *ClientInterface) WaitService(serviceIDs []string, state service.DesiredState, timeout time.Duration, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
ClientInterface is an autogenerated mock type for the ClientInterface type
func (*ClientInterface) AddHost ¶
func (_m *ClientInterface) AddHost(h host.Host) ([]byte, error)
AddHost provides a mock function with given fields: h
func (*ClientInterface) AddHostPrivate ¶
func (_m *ClientInterface) AddHostPrivate(h host.Host) ([]byte, error)
AddHostPrivate provides a mock function with given fields: h
func (*ClientInterface) AddPublicEndpointPort ¶
func (_m *ClientInterface) AddPublicEndpointPort(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: serviceid, endpointName, portAddr, usetls, protocol, isEnabled, restart
func (*ClientInterface) AddPublicEndpointVHost ¶
func (_m *ClientInterface) AddPublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool, restart bool) (*servicedefinition.VHost, error)
AddPublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost, isEnabled, restart
func (*ClientInterface) AddResourcePool ¶
func (_m *ClientInterface) AddResourcePool(p pool.ResourcePool) error
AddResourcePool provides a mock function with given fields: p
func (*ClientInterface) AddServiceTemplate ¶
func (_m *ClientInterface) AddServiceTemplate(serviceTemplate servicetemplate.ServiceTemplate) (string, error)
AddServiceTemplate provides a mock function with given fields: serviceTemplate
func (*ClientInterface) AddVirtualIP ¶
func (_m *ClientInterface) AddVirtualIP(requestVirtualIP pool.VirtualIP) error
AddVirtualIP provides a mock function with given fields: requestVirtualIP
func (*ClientInterface) AuthenticateHost ¶
func (_m *ClientInterface) AuthenticateHost(hostID string) (string, int64, error)
AuthenticateHost provides a mock function with given fields: hostID
func (*ClientInterface) ClearEmergency ¶
func (_m *ClientInterface) ClearEmergency(serviceID string) (int, error)
ClearEmergency provides a mock function with given fields: serviceID
func (*ClientInterface) Close ¶
func (_m *ClientInterface) Close() error
Close provides a mock function with given fields:
func (*ClientInterface) DebugDisableMetrics ¶
func (_m *ClientInterface) DebugDisableMetrics() (string, error)
DebugDisableMetrics provides a mock function with given fields:
func (*ClientInterface) DebugEnableMetrics ¶
func (_m *ClientInterface) DebugEnableMetrics() (string, error)
DebugEnableMetrics provides a mock function with given fields:
func (*ClientInterface) DeployTemplate ¶
func (_m *ClientInterface) DeployTemplate(request servicetemplate.ServiceTemplateDeploymentRequest) ([]string, error)
DeployTemplate provides a mock function with given fields: request
func (*ClientInterface) DockerOverride ¶
func (_m *ClientInterface) DockerOverride(newImage string, oldImage string) error
DockerOverride provides a mock function with given fields: newImage, oldImage
func (*ClientInterface) EnablePublicEndpointPort ¶
func (_m *ClientInterface) EnablePublicEndpointPort(serviceid string, endpointName string, portAddr string, isEnabled bool) error
EnablePublicEndpointPort provides a mock function with given fields: serviceid, endpointName, portAddr, isEnabled
func (*ClientInterface) EnablePublicEndpointVHost ¶
func (_m *ClientInterface) EnablePublicEndpointVHost(serviceid string, endpointName string, vhost string, isEnabled bool) error
EnablePublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost, isEnabled
func (*ClientInterface) FindHostsInPool ¶
func (_m *ClientInterface) FindHostsInPool(poolID string) ([]host.Host, error)
FindHostsInPool provides a mock function with given fields: poolID
func (*ClientInterface) GetActiveHostIDs ¶
func (_m *ClientInterface) GetActiveHostIDs() ([]string, error)
GetActiveHostIDs provides a mock function with given fields:
func (*ClientInterface) GetAllPublicEndpoints ¶
func (_m *ClientInterface) GetAllPublicEndpoints() ([]service.PublicEndpoint, error)
GetAllPublicEndpoints provides a mock function with given fields:
func (*ClientInterface) GetAllServiceDetails ¶
func (_m *ClientInterface) GetAllServiceDetails(since time.Duration) ([]service.ServiceDetails, error)
GetAllServiceDetails provides a mock function with given fields: since
func (*ClientInterface) GetEvaluatedService ¶
func (_m *ClientInterface) GetEvaluatedService(serviceID string, instanceID int) (*service.Service, string, string, error)
GetEvaluatedService provides a mock function with given fields: serviceID, instanceID
func (*ClientInterface) GetHost ¶
func (_m *ClientInterface) GetHost(hostID string) (*host.Host, error)
GetHost provides a mock function with given fields: hostID
func (*ClientInterface) GetHostPublicKey ¶
func (_m *ClientInterface) GetHostPublicKey(hostID string) ([]byte, error)
GetHostPublicKey provides a mock function with given fields: hostID
func (*ClientInterface) GetHosts ¶
func (_m *ClientInterface) GetHosts() ([]host.Host, error)
GetHosts provides a mock function with given fields:
func (*ClientInterface) GetISvcsHealth ¶
func (_m *ClientInterface) GetISvcsHealth(IServiceNames []string) ([]isvcs.IServiceHealthResult, error)
GetISvcsHealth provides a mock function with given fields: IServiceNames
func (*ClientInterface) GetPoolIPs ¶
func (_m *ClientInterface) GetPoolIPs(poolID string) (*pool.PoolIPs, error)
GetPoolIPs provides a mock function with given fields: poolID
func (*ClientInterface) GetResourcePool ¶
func (_m *ClientInterface) GetResourcePool(poolID string) (*pool.ResourcePool, error)
GetResourcePool provides a mock function with given fields: poolID
func (*ClientInterface) GetResourcePools ¶
func (_m *ClientInterface) GetResourcePools() ([]pool.ResourcePool, error)
GetResourcePools provides a mock function with given fields:
func (*ClientInterface) GetServiceDetails ¶
func (_m *ClientInterface) GetServiceDetails(serviceID string) (*service.ServiceDetails, error)
GetServiceDetails provides a mock function with given fields: serviceID
func (*ClientInterface) GetServiceDetailsByTenantID ¶
func (_m *ClientInterface) GetServiceDetailsByTenantID(tenantID string) ([]service.ServiceDetails, error)
GetServiceDetailsByTenantID provides a mock function with given fields: tenantID
func (*ClientInterface) GetServiceEndpoints ¶
func (_m *ClientInterface) GetServiceEndpoints(serviceIDs []string, reportImports bool, reportExports bool, validate bool) ([]applicationendpoint.EndpointReport, error)
GetServiceEndpoints provides a mock function with given fields: serviceIDs, reportImports, reportExports, validate
func (*ClientInterface) GetServiceInstances ¶
func (_m *ClientInterface) GetServiceInstances(serviceID string) ([]service.Instance, error)
GetServiceInstances provides a mock function with given fields: serviceID
func (*ClientInterface) GetServiceTemplates ¶
func (_m *ClientInterface) GetServiceTemplates() (map[string]servicetemplate.ServiceTemplate, error)
GetServiceTemplates provides a mock function with given fields:
func (*ClientInterface) GetServicesHealth ¶
func (_m *ClientInterface) GetServicesHealth() (map[string]map[int]map[string]health.HealthStatus, error)
GetServicesHealth provides a mock function with given fields:
func (*ClientInterface) GetSystemUser ¶
func (_m *ClientInterface) GetSystemUser() (user.User, error)
GetSystemUser provides a mock function with given fields:
func (*ClientInterface) GetTenantID ¶
func (_m *ClientInterface) GetTenantID(serviceID string) (string, error)
GetTenantID provides a mock function with given fields: serviceID
func (*ClientInterface) GetVolumeStatus ¶
func (_m *ClientInterface) GetVolumeStatus() (*volume.Statuses, error)
GetVolumeStatus provides a mock function with given fields:
func (*ClientInterface) HostsAuthenticated ¶
func (_m *ClientInterface) HostsAuthenticated(hostIDs []string) (map[string]bool, error)
HostsAuthenticated provides a mock function with given fields: hostIDs
func (*ClientInterface) LocateServiceInstance ¶
func (_m *ClientInterface) LocateServiceInstance(serviceID string, instanceID int) (*service.LocationInstance, error)
LocateServiceInstance provides a mock function with given fields: serviceID, instanceID
func (*ClientInterface) RemoveHost ¶
func (_m *ClientInterface) RemoveHost(hostID string) error
RemoveHost provides a mock function with given fields: hostID
func (*ClientInterface) RemoveIPs ¶
func (_m *ClientInterface) RemoveIPs(args []string) error
func (*ClientInterface) RemovePublicEndpointPort ¶
func (_m *ClientInterface) RemovePublicEndpointPort(serviceid string, endpointName string, portAddr string) error
RemovePublicEndpointPort provides a mock function with given fields: serviceid, endpointName, portAddr
func (*ClientInterface) RemovePublicEndpointVHost ¶
func (_m *ClientInterface) RemovePublicEndpointVHost(serviceid string, endpointName string, vhost string) error
RemovePublicEndpointVHost provides a mock function with given fields: serviceid, endpointName, vhost
func (*ClientInterface) RemoveResourcePool ¶
func (_m *ClientInterface) RemoveResourcePool(poolID string) error
RemoveResourcePool provides a mock function with given fields: poolID
func (*ClientInterface) RemoveServiceTemplate ¶
func (_m *ClientInterface) RemoveServiceTemplate(serviceTemplateID string) error
RemoveServiceTemplate provides a mock function with given fields: serviceTemplateID
func (*ClientInterface) RemoveVirtualIP ¶
func (_m *ClientInterface) RemoveVirtualIP(requestVirtualIP pool.VirtualIP) error
RemoveVirtualIP provides a mock function with given fields: requestVirtualIP
func (*ClientInterface) ReportHealthStatus ¶
func (_m *ClientInterface) ReportHealthStatus(key health.HealthStatusKey, value health.HealthStatus, expires time.Duration) error
ReportHealthStatus provides a mock function with given fields: key, value, expires
func (*ClientInterface) ReportInstanceDead ¶
func (_m *ClientInterface) ReportInstanceDead(serviceID string, instanceID int) error
ReportInstanceDead provides a mock function with given fields: serviceID, instanceID
func (*ClientInterface) ResetHostKey ¶
func (_m *ClientInterface) ResetHostKey(hostID string) ([]byte, error)
ResetHostKey provides a mock function with given fields: hostID
func (*ClientInterface) ResetRegistry ¶
func (_m *ClientInterface) ResetRegistry() error
ResetRegistry provides a mock function with given fields:
func (*ClientInterface) ResolveServicePath ¶
func (_m *ClientInterface) ResolveServicePath(path string, noprefix bool) ([]service.ServiceDetails, error)
ResolveServicePath provides a mock function with given fields: path, noprefix
func (*ClientInterface) SendDockerAction ¶
func (_m *ClientInterface) SendDockerAction(serviceID string, instanceID int, action string, args []string) error
SendDockerAction provides a mock function with given fields: serviceID, instanceID, action, args
func (*ClientInterface) ServiceUse ¶
func (_m *ClientInterface) ServiceUse(tenantID string, serviceID string, imageID string, registry string, replaceImgs []string, noOp bool) (string, error)
ServiceUse provides a mock function with given fields: tenantID, serviceID, imageID, registry, replaceImgs, noOp
func (*ClientInterface) SetIPs ¶
func (_m *ClientInterface) SetIPs(assignmentRequest addressassignment.AssignmentRequest) error
func (*ClientInterface) StopServiceInstance ¶
func (_m *ClientInterface) StopServiceInstance(serviceID string, instanceID int) error
StopServiceInstance provides a mock function with given fields: serviceID, instanceID
func (*ClientInterface) SyncRegistry ¶
func (_m *ClientInterface) SyncRegistry() error
SyncRegistry provides a mock function with given fields:
func (*ClientInterface) UpdateHost ¶
func (_m *ClientInterface) UpdateHost(h host.Host) error
UpdateHost provides a mock function with given fields: h
func (*ClientInterface) UpdateResourcePool ¶
func (_m *ClientInterface) UpdateResourcePool(p pool.ResourcePool) error
UpdateResourcePool provides a mock function with given fields: p
func (*ClientInterface) UpgradeRegistry ¶
func (_m *ClientInterface) UpgradeRegistry(endpoint string, override bool) error
UpgradeRegistry provides a mock function with given fields: endpoint, override
func (*ClientInterface) ValidateCredentials ¶
func (_m *ClientInterface) ValidateCredentials(_a0 user.User) (bool, error)
ValidateCredentials provides a mock function with given fields: _a0
func (*ClientInterface) WaitService ¶
func (_m *ClientInterface) WaitService(serviceIDs []string, state service.DesiredState, timeout time.Duration, recursive bool) error
WaitService provides a mock function with given fields: serviceIDs, state, timeout, recursive