Documentation ¶
Index ¶
- Constants
- func IsNotFound(err error) bool
- func RetriableError(statusCode int) bool
- type Client
- type ClientImpl
- func (c *ClientImpl) CreateService(s Service) (*Service, string, error)
- func (c *ClientImpl) DeleteService(serviceId string) (*Service, error)
- func (c *ClientImpl) GetOrgPrivateEndpointConfig(cloudProvider string, region string) (*OrgPrivateEndpointConfig, error)
- func (c *ClientImpl) GetOrganizationPrivateEndpoints() (*[]PrivateEndpoint, error)
- func (c *ClientImpl) GetService(serviceId string) (*Service, error)
- func (c *ClientImpl) UpdateOrganizationPrivateEndpoints(orgUpdate OrganizationUpdate) (*[]PrivateEndpoint, error)
- func (c *ClientImpl) UpdateService(serviceId string, s ServiceUpdate) (*Service, error)
- func (c *ClientImpl) UpdateServicePassword(serviceId string, u ServicePasswordUpdate) (*ServicePasswordUpdateResult, error)
- func (c *ClientImpl) UpdateServiceScaling(serviceId string, s ServiceScalingUpdate) (*Service, error)
- func (c *ClientImpl) WaitForServiceState(serviceId string, stateChecker func(string) bool, maxWaitSeconds int) error
- type ClientMock
- func (mmCreateService *ClientMock) CreateService(s Service) (sp1 *Service, s1 string, err error)
- func (mmCreateService *ClientMock) CreateServiceAfterCounter() uint64
- func (mmCreateService *ClientMock) CreateServiceBeforeCounter() uint64
- func (mmDeleteService *ClientMock) DeleteService(serviceId string) (sp1 *Service, err error)
- func (mmDeleteService *ClientMock) DeleteServiceAfterCounter() uint64
- func (mmDeleteService *ClientMock) DeleteServiceBeforeCounter() uint64
- func (mmGetOrgPrivateEndpointConfig *ClientMock) GetOrgPrivateEndpointConfig(cloudProvider string, region string) (op1 *OrgPrivateEndpointConfig, err error)
- func (mmGetOrgPrivateEndpointConfig *ClientMock) GetOrgPrivateEndpointConfigAfterCounter() uint64
- func (mmGetOrgPrivateEndpointConfig *ClientMock) GetOrgPrivateEndpointConfigBeforeCounter() uint64
- func (mmGetOrganizationPrivateEndpoints *ClientMock) GetOrganizationPrivateEndpoints() (pap1 *[]PrivateEndpoint, err error)
- func (mmGetOrganizationPrivateEndpoints *ClientMock) GetOrganizationPrivateEndpointsAfterCounter() uint64
- func (mmGetOrganizationPrivateEndpoints *ClientMock) GetOrganizationPrivateEndpointsBeforeCounter() uint64
- func (mmGetService *ClientMock) GetService(serviceId string) (sp1 *Service, err error)
- func (mmGetService *ClientMock) GetServiceAfterCounter() uint64
- func (mmGetService *ClientMock) GetServiceBeforeCounter() uint64
- func (m *ClientMock) MinimockCreateServiceDone() bool
- func (m *ClientMock) MinimockCreateServiceInspect()
- func (m *ClientMock) MinimockDeleteServiceDone() bool
- func (m *ClientMock) MinimockDeleteServiceInspect()
- func (m *ClientMock) MinimockFinish()
- func (m *ClientMock) MinimockGetOrgPrivateEndpointConfigDone() bool
- func (m *ClientMock) MinimockGetOrgPrivateEndpointConfigInspect()
- func (m *ClientMock) MinimockGetOrganizationPrivateEndpointsDone() bool
- func (m *ClientMock) MinimockGetOrganizationPrivateEndpointsInspect()
- func (m *ClientMock) MinimockGetServiceDone() bool
- func (m *ClientMock) MinimockGetServiceInspect()
- func (m *ClientMock) MinimockUpdateOrganizationPrivateEndpointsDone() bool
- func (m *ClientMock) MinimockUpdateOrganizationPrivateEndpointsInspect()
- func (m *ClientMock) MinimockUpdateServiceDone() bool
- func (m *ClientMock) MinimockUpdateServiceInspect()
- func (m *ClientMock) MinimockUpdateServicePasswordDone() bool
- func (m *ClientMock) MinimockUpdateServicePasswordInspect()
- func (m *ClientMock) MinimockUpdateServiceScalingDone() bool
- func (m *ClientMock) MinimockUpdateServiceScalingInspect()
- func (m *ClientMock) MinimockWait(timeout mm_time.Duration)
- func (m *ClientMock) MinimockWaitForServiceStateDone() bool
- func (m *ClientMock) MinimockWaitForServiceStateInspect()
- func (mmUpdateOrganizationPrivateEndpoints *ClientMock) UpdateOrganizationPrivateEndpoints(orgUpdate OrganizationUpdate) (pap1 *[]PrivateEndpoint, err error)
- func (mmUpdateOrganizationPrivateEndpoints *ClientMock) UpdateOrganizationPrivateEndpointsAfterCounter() uint64
- func (mmUpdateOrganizationPrivateEndpoints *ClientMock) UpdateOrganizationPrivateEndpointsBeforeCounter() uint64
- func (mmUpdateService *ClientMock) UpdateService(serviceId string, s ServiceUpdate) (sp1 *Service, err error)
- func (mmUpdateService *ClientMock) UpdateServiceAfterCounter() uint64
- func (mmUpdateService *ClientMock) UpdateServiceBeforeCounter() uint64
- func (mmUpdateServicePassword *ClientMock) UpdateServicePassword(serviceId string, u ServicePasswordUpdate) (sp1 *ServicePasswordUpdateResult, err error)
- func (mmUpdateServicePassword *ClientMock) UpdateServicePasswordAfterCounter() uint64
- func (mmUpdateServicePassword *ClientMock) UpdateServicePasswordBeforeCounter() uint64
- func (mmUpdateServiceScaling *ClientMock) UpdateServiceScaling(serviceId string, s ServiceScalingUpdate) (sp1 *Service, err error)
- func (mmUpdateServiceScaling *ClientMock) UpdateServiceScalingAfterCounter() uint64
- func (mmUpdateServiceScaling *ClientMock) UpdateServiceScalingBeforeCounter() uint64
- func (mmWaitForServiceState *ClientMock) WaitForServiceState(serviceId string, stateChecker func(string) bool, maxWaitSeconds int) (err error)
- func (mmWaitForServiceState *ClientMock) WaitForServiceStateAfterCounter() uint64
- func (mmWaitForServiceState *ClientMock) WaitForServiceStateBeforeCounter() uint64
- type ClientMockCreateServiceExpectation
- type ClientMockCreateServiceParamPtrs
- type ClientMockCreateServiceParams
- type ClientMockCreateServiceResults
- type ClientMockDeleteServiceExpectation
- type ClientMockDeleteServiceParamPtrs
- type ClientMockDeleteServiceParams
- type ClientMockDeleteServiceResults
- type ClientMockGetOrgPrivateEndpointConfigExpectation
- type ClientMockGetOrgPrivateEndpointConfigParamPtrs
- type ClientMockGetOrgPrivateEndpointConfigParams
- type ClientMockGetOrgPrivateEndpointConfigResults
- type ClientMockGetOrganizationPrivateEndpointsExpectation
- type ClientMockGetOrganizationPrivateEndpointsResults
- type ClientMockGetServiceExpectation
- type ClientMockGetServiceParamPtrs
- type ClientMockGetServiceParams
- type ClientMockGetServiceResults
- type ClientMockUpdateOrganizationPrivateEndpointsExpectation
- type ClientMockUpdateOrganizationPrivateEndpointsParamPtrs
- type ClientMockUpdateOrganizationPrivateEndpointsParams
- type ClientMockUpdateOrganizationPrivateEndpointsResults
- type ClientMockUpdateServiceExpectation
- type ClientMockUpdateServiceParamPtrs
- type ClientMockUpdateServiceParams
- type ClientMockUpdateServicePasswordExpectation
- type ClientMockUpdateServicePasswordParamPtrs
- type ClientMockUpdateServicePasswordParams
- type ClientMockUpdateServicePasswordResults
- type ClientMockUpdateServiceResults
- type ClientMockUpdateServiceScalingExpectation
- type ClientMockUpdateServiceScalingParamPtrs
- type ClientMockUpdateServiceScalingParams
- type ClientMockUpdateServiceScalingResults
- type ClientMockWaitForServiceStateExpectation
- type ClientMockWaitForServiceStateParamPtrs
- type ClientMockWaitForServiceStateParams
- type ClientMockWaitForServiceStateResults
- type Endpoint
- type IpAccess
- type IpAccessUpdate
- type OrgPrivateEndpointConfig
- type OrgPrivateEndpointConfigGetResponse
- type OrgPrivateEndpointsUpdate
- type OrgResult
- type OrganizationGetResponse
- type OrganizationUpdate
- type OrganizationUpdateResponse
- type PrivateEndpoint
- type PrivateEndpointIdsUpdate
- type Service
- type ServiceBody
- type ServiceDeleteResponse
- type ServiceGetResponse
- type ServiceManagedEncryption
- type ServicePasswordUpdate
- type ServicePasswordUpdateResult
- type ServicePatchResponse
- type ServicePostResponse
- type ServicePrivateEndpointConfig
- type ServicePrivateEndpointConfigResponse
- type ServiceResponseResult
- type ServiceScalingUpdate
- type ServiceStateUpdate
- type ServiceUpdate
Constants ¶
const ( TierDevelopment = "development" TierProduction = "production" StateProvisioning = "provisioning" StateStopped = "stopped" StateStopping = "stopping" )
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶ added in v1.0.0
func RetriableError ¶ added in v1.0.0
Types ¶
type Client ¶
type Client interface { GetService(serviceId string) (*Service, error) GetOrgPrivateEndpointConfig(cloudProvider string, region string) (*OrgPrivateEndpointConfig, error) CreateService(s Service) (*Service, string, error) WaitForServiceState(serviceId string, stateChecker func(string) bool, maxWaitSeconds int) error UpdateService(serviceId string, s ServiceUpdate) (*Service, error) UpdateServiceScaling(serviceId string, s ServiceScalingUpdate) (*Service, error) UpdateServicePassword(serviceId string, u ServicePasswordUpdate) (*ServicePasswordUpdateResult, error) DeleteService(serviceId string) (*Service, error) GetOrganizationPrivateEndpoints() (*[]PrivateEndpoint, error) UpdateOrganizationPrivateEndpoints(orgUpdate OrganizationUpdate) (*[]PrivateEndpoint, error) }
type ClientImpl ¶
type ClientImpl struct { BaseUrl string HttpClient *http.Client OrganizationId string TokenKey string TokenSecret string }
func (*ClientImpl) CreateService ¶
func (c *ClientImpl) CreateService(s Service) (*Service, string, error)
func (*ClientImpl) DeleteService ¶
func (c *ClientImpl) DeleteService(serviceId string) (*Service, error)
func (*ClientImpl) GetOrgPrivateEndpointConfig ¶
func (c *ClientImpl) GetOrgPrivateEndpointConfig(cloudProvider string, region string) (*OrgPrivateEndpointConfig, error)
func (*ClientImpl) GetOrganizationPrivateEndpoints ¶
func (c *ClientImpl) GetOrganizationPrivateEndpoints() (*[]PrivateEndpoint, error)
func (*ClientImpl) GetService ¶
func (c *ClientImpl) GetService(serviceId string) (*Service, error)
GetService - Returns a specifc order
func (*ClientImpl) UpdateOrganizationPrivateEndpoints ¶
func (c *ClientImpl) UpdateOrganizationPrivateEndpoints(orgUpdate OrganizationUpdate) (*[]PrivateEndpoint, error)
func (*ClientImpl) UpdateService ¶
func (c *ClientImpl) UpdateService(serviceId string, s ServiceUpdate) (*Service, error)
func (*ClientImpl) UpdateServicePassword ¶
func (c *ClientImpl) UpdateServicePassword(serviceId string, u ServicePasswordUpdate) (*ServicePasswordUpdateResult, error)
func (*ClientImpl) UpdateServiceScaling ¶
func (c *ClientImpl) UpdateServiceScaling(serviceId string, s ServiceScalingUpdate) (*Service, error)
func (*ClientImpl) WaitForServiceState ¶ added in v1.0.0
type ClientMock ¶
type ClientMock struct { CreateServiceMock mClientMockCreateService DeleteServiceMock mClientMockDeleteService GetOrgPrivateEndpointConfigMock mClientMockGetOrgPrivateEndpointConfig GetOrganizationPrivateEndpointsMock mClientMockGetOrganizationPrivateEndpoints GetServiceMock mClientMockGetService UpdateOrganizationPrivateEndpointsMock mClientMockUpdateOrganizationPrivateEndpoints UpdateServiceMock mClientMockUpdateService UpdateServicePasswordMock mClientMockUpdateServicePassword UpdateServiceScalingMock mClientMockUpdateServiceScaling WaitForServiceStateMock mClientMockWaitForServiceState // contains filtered or unexported fields }
ClientMock implements Client
func NewClientMock ¶
func NewClientMock(t minimock.Tester) *ClientMock
NewClientMock returns a mock for Client
func (*ClientMock) CreateService ¶
func (mmCreateService *ClientMock) CreateService(s Service) (sp1 *Service, s1 string, err error)
CreateService implements Client
func (*ClientMock) CreateServiceAfterCounter ¶
func (mmCreateService *ClientMock) CreateServiceAfterCounter() uint64
CreateServiceAfterCounter returns a count of finished ClientMock.CreateService invocations
func (*ClientMock) CreateServiceBeforeCounter ¶
func (mmCreateService *ClientMock) CreateServiceBeforeCounter() uint64
CreateServiceBeforeCounter returns a count of ClientMock.CreateService invocations
func (*ClientMock) DeleteService ¶
func (mmDeleteService *ClientMock) DeleteService(serviceId string) (sp1 *Service, err error)
DeleteService implements Client
func (*ClientMock) DeleteServiceAfterCounter ¶
func (mmDeleteService *ClientMock) DeleteServiceAfterCounter() uint64
DeleteServiceAfterCounter returns a count of finished ClientMock.DeleteService invocations
func (*ClientMock) DeleteServiceBeforeCounter ¶
func (mmDeleteService *ClientMock) DeleteServiceBeforeCounter() uint64
DeleteServiceBeforeCounter returns a count of ClientMock.DeleteService invocations
func (*ClientMock) GetOrgPrivateEndpointConfig ¶
func (mmGetOrgPrivateEndpointConfig *ClientMock) GetOrgPrivateEndpointConfig(cloudProvider string, region string) (op1 *OrgPrivateEndpointConfig, err error)
GetOrgPrivateEndpointConfig implements Client
func (*ClientMock) GetOrgPrivateEndpointConfigAfterCounter ¶
func (mmGetOrgPrivateEndpointConfig *ClientMock) GetOrgPrivateEndpointConfigAfterCounter() uint64
GetOrgPrivateEndpointConfigAfterCounter returns a count of finished ClientMock.GetOrgPrivateEndpointConfig invocations
func (*ClientMock) GetOrgPrivateEndpointConfigBeforeCounter ¶
func (mmGetOrgPrivateEndpointConfig *ClientMock) GetOrgPrivateEndpointConfigBeforeCounter() uint64
GetOrgPrivateEndpointConfigBeforeCounter returns a count of ClientMock.GetOrgPrivateEndpointConfig invocations
func (*ClientMock) GetOrganizationPrivateEndpoints ¶
func (mmGetOrganizationPrivateEndpoints *ClientMock) GetOrganizationPrivateEndpoints() (pap1 *[]PrivateEndpoint, err error)
GetOrganizationPrivateEndpoints implements Client
func (*ClientMock) GetOrganizationPrivateEndpointsAfterCounter ¶
func (mmGetOrganizationPrivateEndpoints *ClientMock) GetOrganizationPrivateEndpointsAfterCounter() uint64
GetOrganizationPrivateEndpointsAfterCounter returns a count of finished ClientMock.GetOrganizationPrivateEndpoints invocations
func (*ClientMock) GetOrganizationPrivateEndpointsBeforeCounter ¶
func (mmGetOrganizationPrivateEndpoints *ClientMock) GetOrganizationPrivateEndpointsBeforeCounter() uint64
GetOrganizationPrivateEndpointsBeforeCounter returns a count of ClientMock.GetOrganizationPrivateEndpoints invocations
func (*ClientMock) GetService ¶
func (mmGetService *ClientMock) GetService(serviceId string) (sp1 *Service, err error)
GetService implements Client
func (*ClientMock) GetServiceAfterCounter ¶
func (mmGetService *ClientMock) GetServiceAfterCounter() uint64
GetServiceAfterCounter returns a count of finished ClientMock.GetService invocations
func (*ClientMock) GetServiceBeforeCounter ¶
func (mmGetService *ClientMock) GetServiceBeforeCounter() uint64
GetServiceBeforeCounter returns a count of ClientMock.GetService invocations
func (*ClientMock) MinimockCreateServiceDone ¶
func (m *ClientMock) MinimockCreateServiceDone() bool
MinimockCreateServiceDone returns true if the count of the CreateService invocations corresponds the number of defined expectations
func (*ClientMock) MinimockCreateServiceInspect ¶
func (m *ClientMock) MinimockCreateServiceInspect()
MinimockCreateServiceInspect logs each unmet expectation
func (*ClientMock) MinimockDeleteServiceDone ¶
func (m *ClientMock) MinimockDeleteServiceDone() bool
MinimockDeleteServiceDone returns true if the count of the DeleteService invocations corresponds the number of defined expectations
func (*ClientMock) MinimockDeleteServiceInspect ¶
func (m *ClientMock) MinimockDeleteServiceInspect()
MinimockDeleteServiceInspect logs each unmet expectation
func (*ClientMock) MinimockFinish ¶
func (m *ClientMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ClientMock) MinimockGetOrgPrivateEndpointConfigDone ¶
func (m *ClientMock) MinimockGetOrgPrivateEndpointConfigDone() bool
MinimockGetOrgPrivateEndpointConfigDone returns true if the count of the GetOrgPrivateEndpointConfig invocations corresponds the number of defined expectations
func (*ClientMock) MinimockGetOrgPrivateEndpointConfigInspect ¶
func (m *ClientMock) MinimockGetOrgPrivateEndpointConfigInspect()
MinimockGetOrgPrivateEndpointConfigInspect logs each unmet expectation
func (*ClientMock) MinimockGetOrganizationPrivateEndpointsDone ¶
func (m *ClientMock) MinimockGetOrganizationPrivateEndpointsDone() bool
MinimockGetOrganizationPrivateEndpointsDone returns true if the count of the GetOrganizationPrivateEndpoints invocations corresponds the number of defined expectations
func (*ClientMock) MinimockGetOrganizationPrivateEndpointsInspect ¶
func (m *ClientMock) MinimockGetOrganizationPrivateEndpointsInspect()
MinimockGetOrganizationPrivateEndpointsInspect logs each unmet expectation
func (*ClientMock) MinimockGetServiceDone ¶
func (m *ClientMock) MinimockGetServiceDone() bool
MinimockGetServiceDone returns true if the count of the GetService invocations corresponds the number of defined expectations
func (*ClientMock) MinimockGetServiceInspect ¶
func (m *ClientMock) MinimockGetServiceInspect()
MinimockGetServiceInspect logs each unmet expectation
func (*ClientMock) MinimockUpdateOrganizationPrivateEndpointsDone ¶
func (m *ClientMock) MinimockUpdateOrganizationPrivateEndpointsDone() bool
MinimockUpdateOrganizationPrivateEndpointsDone returns true if the count of the UpdateOrganizationPrivateEndpoints invocations corresponds the number of defined expectations
func (*ClientMock) MinimockUpdateOrganizationPrivateEndpointsInspect ¶
func (m *ClientMock) MinimockUpdateOrganizationPrivateEndpointsInspect()
MinimockUpdateOrganizationPrivateEndpointsInspect logs each unmet expectation
func (*ClientMock) MinimockUpdateServiceDone ¶
func (m *ClientMock) MinimockUpdateServiceDone() bool
MinimockUpdateServiceDone returns true if the count of the UpdateService invocations corresponds the number of defined expectations
func (*ClientMock) MinimockUpdateServiceInspect ¶
func (m *ClientMock) MinimockUpdateServiceInspect()
MinimockUpdateServiceInspect logs each unmet expectation
func (*ClientMock) MinimockUpdateServicePasswordDone ¶
func (m *ClientMock) MinimockUpdateServicePasswordDone() bool
MinimockUpdateServicePasswordDone returns true if the count of the UpdateServicePassword invocations corresponds the number of defined expectations
func (*ClientMock) MinimockUpdateServicePasswordInspect ¶
func (m *ClientMock) MinimockUpdateServicePasswordInspect()
MinimockUpdateServicePasswordInspect logs each unmet expectation
func (*ClientMock) MinimockUpdateServiceScalingDone ¶
func (m *ClientMock) MinimockUpdateServiceScalingDone() bool
MinimockUpdateServiceScalingDone returns true if the count of the UpdateServiceScaling invocations corresponds the number of defined expectations
func (*ClientMock) MinimockUpdateServiceScalingInspect ¶
func (m *ClientMock) MinimockUpdateServiceScalingInspect()
MinimockUpdateServiceScalingInspect logs each unmet expectation
func (*ClientMock) MinimockWait ¶
func (m *ClientMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*ClientMock) MinimockWaitForServiceStateDone ¶ added in v1.0.0
func (m *ClientMock) MinimockWaitForServiceStateDone() bool
MinimockWaitForServiceStateDone returns true if the count of the WaitForServiceState invocations corresponds the number of defined expectations
func (*ClientMock) MinimockWaitForServiceStateInspect ¶ added in v1.0.0
func (m *ClientMock) MinimockWaitForServiceStateInspect()
MinimockWaitForServiceStateInspect logs each unmet expectation
func (*ClientMock) UpdateOrganizationPrivateEndpoints ¶
func (mmUpdateOrganizationPrivateEndpoints *ClientMock) UpdateOrganizationPrivateEndpoints(orgUpdate OrganizationUpdate) (pap1 *[]PrivateEndpoint, err error)
UpdateOrganizationPrivateEndpoints implements Client
func (*ClientMock) UpdateOrganizationPrivateEndpointsAfterCounter ¶
func (mmUpdateOrganizationPrivateEndpoints *ClientMock) UpdateOrganizationPrivateEndpointsAfterCounter() uint64
UpdateOrganizationPrivateEndpointsAfterCounter returns a count of finished ClientMock.UpdateOrganizationPrivateEndpoints invocations
func (*ClientMock) UpdateOrganizationPrivateEndpointsBeforeCounter ¶
func (mmUpdateOrganizationPrivateEndpoints *ClientMock) UpdateOrganizationPrivateEndpointsBeforeCounter() uint64
UpdateOrganizationPrivateEndpointsBeforeCounter returns a count of ClientMock.UpdateOrganizationPrivateEndpoints invocations
func (*ClientMock) UpdateService ¶
func (mmUpdateService *ClientMock) UpdateService(serviceId string, s ServiceUpdate) (sp1 *Service, err error)
UpdateService implements Client
func (*ClientMock) UpdateServiceAfterCounter ¶
func (mmUpdateService *ClientMock) UpdateServiceAfterCounter() uint64
UpdateServiceAfterCounter returns a count of finished ClientMock.UpdateService invocations
func (*ClientMock) UpdateServiceBeforeCounter ¶
func (mmUpdateService *ClientMock) UpdateServiceBeforeCounter() uint64
UpdateServiceBeforeCounter returns a count of ClientMock.UpdateService invocations
func (*ClientMock) UpdateServicePassword ¶
func (mmUpdateServicePassword *ClientMock) UpdateServicePassword(serviceId string, u ServicePasswordUpdate) (sp1 *ServicePasswordUpdateResult, err error)
UpdateServicePassword implements Client
func (*ClientMock) UpdateServicePasswordAfterCounter ¶
func (mmUpdateServicePassword *ClientMock) UpdateServicePasswordAfterCounter() uint64
UpdateServicePasswordAfterCounter returns a count of finished ClientMock.UpdateServicePassword invocations
func (*ClientMock) UpdateServicePasswordBeforeCounter ¶
func (mmUpdateServicePassword *ClientMock) UpdateServicePasswordBeforeCounter() uint64
UpdateServicePasswordBeforeCounter returns a count of ClientMock.UpdateServicePassword invocations
func (*ClientMock) UpdateServiceScaling ¶
func (mmUpdateServiceScaling *ClientMock) UpdateServiceScaling(serviceId string, s ServiceScalingUpdate) (sp1 *Service, err error)
UpdateServiceScaling implements Client
func (*ClientMock) UpdateServiceScalingAfterCounter ¶
func (mmUpdateServiceScaling *ClientMock) UpdateServiceScalingAfterCounter() uint64
UpdateServiceScalingAfterCounter returns a count of finished ClientMock.UpdateServiceScaling invocations
func (*ClientMock) UpdateServiceScalingBeforeCounter ¶
func (mmUpdateServiceScaling *ClientMock) UpdateServiceScalingBeforeCounter() uint64
UpdateServiceScalingBeforeCounter returns a count of ClientMock.UpdateServiceScaling invocations
func (*ClientMock) WaitForServiceState ¶ added in v1.0.0
func (mmWaitForServiceState *ClientMock) WaitForServiceState(serviceId string, stateChecker func(string) bool, maxWaitSeconds int) (err error)
WaitForServiceState implements Client
func (*ClientMock) WaitForServiceStateAfterCounter ¶ added in v1.0.0
func (mmWaitForServiceState *ClientMock) WaitForServiceStateAfterCounter() uint64
WaitForServiceStateAfterCounter returns a count of finished ClientMock.WaitForServiceState invocations
func (*ClientMock) WaitForServiceStateBeforeCounter ¶ added in v1.0.0
func (mmWaitForServiceState *ClientMock) WaitForServiceStateBeforeCounter() uint64
WaitForServiceStateBeforeCounter returns a count of ClientMock.WaitForServiceState invocations
type ClientMockCreateServiceExpectation ¶
type ClientMockCreateServiceExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockCreateServiceExpectation specifies expectation struct of the Client.CreateService
func (*ClientMockCreateServiceExpectation) Then ¶
func (e *ClientMockCreateServiceExpectation) Then(sp1 *Service, s1 string, err error) *ClientMock
Then sets up Client.CreateService return parameters for the expectation previously defined by the When method
type ClientMockCreateServiceParamPtrs ¶
type ClientMockCreateServiceParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockCreateServiceParamPtrs contains pointers to parameters of the Client.CreateService
type ClientMockCreateServiceParams ¶
type ClientMockCreateServiceParams struct {
// contains filtered or unexported fields
}
ClientMockCreateServiceParams contains parameters of the Client.CreateService
type ClientMockCreateServiceResults ¶
type ClientMockCreateServiceResults struct {
// contains filtered or unexported fields
}
ClientMockCreateServiceResults contains results of the Client.CreateService
type ClientMockDeleteServiceExpectation ¶
type ClientMockDeleteServiceExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockDeleteServiceExpectation specifies expectation struct of the Client.DeleteService
func (*ClientMockDeleteServiceExpectation) Then ¶
func (e *ClientMockDeleteServiceExpectation) Then(sp1 *Service, err error) *ClientMock
Then sets up Client.DeleteService return parameters for the expectation previously defined by the When method
type ClientMockDeleteServiceParamPtrs ¶
type ClientMockDeleteServiceParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockDeleteServiceParamPtrs contains pointers to parameters of the Client.DeleteService
type ClientMockDeleteServiceParams ¶
type ClientMockDeleteServiceParams struct {
// contains filtered or unexported fields
}
ClientMockDeleteServiceParams contains parameters of the Client.DeleteService
type ClientMockDeleteServiceResults ¶
type ClientMockDeleteServiceResults struct {
// contains filtered or unexported fields
}
ClientMockDeleteServiceResults contains results of the Client.DeleteService
type ClientMockGetOrgPrivateEndpointConfigExpectation ¶
type ClientMockGetOrgPrivateEndpointConfigExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockGetOrgPrivateEndpointConfigExpectation specifies expectation struct of the Client.GetOrgPrivateEndpointConfig
func (*ClientMockGetOrgPrivateEndpointConfigExpectation) Then ¶
func (e *ClientMockGetOrgPrivateEndpointConfigExpectation) Then(op1 *OrgPrivateEndpointConfig, err error) *ClientMock
Then sets up Client.GetOrgPrivateEndpointConfig return parameters for the expectation previously defined by the When method
type ClientMockGetOrgPrivateEndpointConfigParamPtrs ¶
type ClientMockGetOrgPrivateEndpointConfigParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockGetOrgPrivateEndpointConfigParamPtrs contains pointers to parameters of the Client.GetOrgPrivateEndpointConfig
type ClientMockGetOrgPrivateEndpointConfigParams ¶
type ClientMockGetOrgPrivateEndpointConfigParams struct {
// contains filtered or unexported fields
}
ClientMockGetOrgPrivateEndpointConfigParams contains parameters of the Client.GetOrgPrivateEndpointConfig
type ClientMockGetOrgPrivateEndpointConfigResults ¶
type ClientMockGetOrgPrivateEndpointConfigResults struct {
// contains filtered or unexported fields
}
ClientMockGetOrgPrivateEndpointConfigResults contains results of the Client.GetOrgPrivateEndpointConfig
type ClientMockGetOrganizationPrivateEndpointsExpectation ¶
type ClientMockGetOrganizationPrivateEndpointsExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockGetOrganizationPrivateEndpointsExpectation specifies expectation struct of the Client.GetOrganizationPrivateEndpoints
type ClientMockGetOrganizationPrivateEndpointsResults ¶
type ClientMockGetOrganizationPrivateEndpointsResults struct {
// contains filtered or unexported fields
}
ClientMockGetOrganizationPrivateEndpointsResults contains results of the Client.GetOrganizationPrivateEndpoints
type ClientMockGetServiceExpectation ¶
type ClientMockGetServiceExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockGetServiceExpectation specifies expectation struct of the Client.GetService
func (*ClientMockGetServiceExpectation) Then ¶
func (e *ClientMockGetServiceExpectation) Then(sp1 *Service, err error) *ClientMock
Then sets up Client.GetService return parameters for the expectation previously defined by the When method
type ClientMockGetServiceParamPtrs ¶
type ClientMockGetServiceParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockGetServiceParamPtrs contains pointers to parameters of the Client.GetService
type ClientMockGetServiceParams ¶
type ClientMockGetServiceParams struct {
// contains filtered or unexported fields
}
ClientMockGetServiceParams contains parameters of the Client.GetService
type ClientMockGetServiceResults ¶
type ClientMockGetServiceResults struct {
// contains filtered or unexported fields
}
ClientMockGetServiceResults contains results of the Client.GetService
type ClientMockUpdateOrganizationPrivateEndpointsExpectation ¶
type ClientMockUpdateOrganizationPrivateEndpointsExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockUpdateOrganizationPrivateEndpointsExpectation specifies expectation struct of the Client.UpdateOrganizationPrivateEndpoints
func (*ClientMockUpdateOrganizationPrivateEndpointsExpectation) Then ¶
func (e *ClientMockUpdateOrganizationPrivateEndpointsExpectation) Then(pap1 *[]PrivateEndpoint, err error) *ClientMock
Then sets up Client.UpdateOrganizationPrivateEndpoints return parameters for the expectation previously defined by the When method
type ClientMockUpdateOrganizationPrivateEndpointsParamPtrs ¶
type ClientMockUpdateOrganizationPrivateEndpointsParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockUpdateOrganizationPrivateEndpointsParamPtrs contains pointers to parameters of the Client.UpdateOrganizationPrivateEndpoints
type ClientMockUpdateOrganizationPrivateEndpointsParams ¶
type ClientMockUpdateOrganizationPrivateEndpointsParams struct {
// contains filtered or unexported fields
}
ClientMockUpdateOrganizationPrivateEndpointsParams contains parameters of the Client.UpdateOrganizationPrivateEndpoints
type ClientMockUpdateOrganizationPrivateEndpointsResults ¶
type ClientMockUpdateOrganizationPrivateEndpointsResults struct {
// contains filtered or unexported fields
}
ClientMockUpdateOrganizationPrivateEndpointsResults contains results of the Client.UpdateOrganizationPrivateEndpoints
type ClientMockUpdateServiceExpectation ¶
type ClientMockUpdateServiceExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockUpdateServiceExpectation specifies expectation struct of the Client.UpdateService
func (*ClientMockUpdateServiceExpectation) Then ¶
func (e *ClientMockUpdateServiceExpectation) Then(sp1 *Service, err error) *ClientMock
Then sets up Client.UpdateService return parameters for the expectation previously defined by the When method
type ClientMockUpdateServiceParamPtrs ¶
type ClientMockUpdateServiceParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockUpdateServiceParamPtrs contains pointers to parameters of the Client.UpdateService
type ClientMockUpdateServiceParams ¶
type ClientMockUpdateServiceParams struct {
// contains filtered or unexported fields
}
ClientMockUpdateServiceParams contains parameters of the Client.UpdateService
type ClientMockUpdateServicePasswordExpectation ¶
type ClientMockUpdateServicePasswordExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockUpdateServicePasswordExpectation specifies expectation struct of the Client.UpdateServicePassword
func (*ClientMockUpdateServicePasswordExpectation) Then ¶
func (e *ClientMockUpdateServicePasswordExpectation) Then(sp1 *ServicePasswordUpdateResult, err error) *ClientMock
Then sets up Client.UpdateServicePassword return parameters for the expectation previously defined by the When method
type ClientMockUpdateServicePasswordParamPtrs ¶
type ClientMockUpdateServicePasswordParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockUpdateServicePasswordParamPtrs contains pointers to parameters of the Client.UpdateServicePassword
type ClientMockUpdateServicePasswordParams ¶
type ClientMockUpdateServicePasswordParams struct {
// contains filtered or unexported fields
}
ClientMockUpdateServicePasswordParams contains parameters of the Client.UpdateServicePassword
type ClientMockUpdateServicePasswordResults ¶
type ClientMockUpdateServicePasswordResults struct {
// contains filtered or unexported fields
}
ClientMockUpdateServicePasswordResults contains results of the Client.UpdateServicePassword
type ClientMockUpdateServiceResults ¶
type ClientMockUpdateServiceResults struct {
// contains filtered or unexported fields
}
ClientMockUpdateServiceResults contains results of the Client.UpdateService
type ClientMockUpdateServiceScalingExpectation ¶
type ClientMockUpdateServiceScalingExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockUpdateServiceScalingExpectation specifies expectation struct of the Client.UpdateServiceScaling
func (*ClientMockUpdateServiceScalingExpectation) Then ¶
func (e *ClientMockUpdateServiceScalingExpectation) Then(sp1 *Service, err error) *ClientMock
Then sets up Client.UpdateServiceScaling return parameters for the expectation previously defined by the When method
type ClientMockUpdateServiceScalingParamPtrs ¶
type ClientMockUpdateServiceScalingParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockUpdateServiceScalingParamPtrs contains pointers to parameters of the Client.UpdateServiceScaling
type ClientMockUpdateServiceScalingParams ¶
type ClientMockUpdateServiceScalingParams struct {
// contains filtered or unexported fields
}
ClientMockUpdateServiceScalingParams contains parameters of the Client.UpdateServiceScaling
type ClientMockUpdateServiceScalingResults ¶
type ClientMockUpdateServiceScalingResults struct {
// contains filtered or unexported fields
}
ClientMockUpdateServiceScalingResults contains results of the Client.UpdateServiceScaling
type ClientMockWaitForServiceStateExpectation ¶ added in v1.0.0
type ClientMockWaitForServiceStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockWaitForServiceStateExpectation specifies expectation struct of the Client.WaitForServiceState
func (*ClientMockWaitForServiceStateExpectation) Then ¶ added in v1.0.0
func (e *ClientMockWaitForServiceStateExpectation) Then(err error) *ClientMock
Then sets up Client.WaitForServiceState return parameters for the expectation previously defined by the When method
type ClientMockWaitForServiceStateParamPtrs ¶ added in v1.0.0
type ClientMockWaitForServiceStateParamPtrs struct {
// contains filtered or unexported fields
}
ClientMockWaitForServiceStateParamPtrs contains pointers to parameters of the Client.WaitForServiceState
type ClientMockWaitForServiceStateParams ¶ added in v1.0.0
type ClientMockWaitForServiceStateParams struct {
// contains filtered or unexported fields
}
ClientMockWaitForServiceStateParams contains parameters of the Client.WaitForServiceState
type ClientMockWaitForServiceStateResults ¶ added in v1.0.0
type ClientMockWaitForServiceStateResults struct {
// contains filtered or unexported fields
}
ClientMockWaitForServiceStateResults contains results of the Client.WaitForServiceState
type IpAccessUpdate ¶
type OrgPrivateEndpointConfig ¶
type OrgPrivateEndpointConfig struct {
EndpointServiceId string `json:"endpointServiceId,omitempty"`
}
type OrgPrivateEndpointConfigGetResponse ¶
type OrgPrivateEndpointConfigGetResponse struct {
Result OrgPrivateEndpointConfig `json:"result"`
}
type OrgPrivateEndpointsUpdate ¶
type OrgPrivateEndpointsUpdate struct { Add []PrivateEndpoint `json:"add,omitempty"` Remove []PrivateEndpoint `json:"remove,omitempty"` }
type OrgResult ¶
type OrgResult struct { CreatedAt string `json:"createdAt,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` PrivateEndpoints []PrivateEndpoint `json:"privateEndpoints,omitempty"` }
type OrganizationGetResponse ¶
type OrganizationGetResponse struct {
Result OrgResult `json:"result,omitempty"`
}
type OrganizationUpdate ¶
type OrganizationUpdate struct {
PrivateEndpoints *OrgPrivateEndpointsUpdate `json:"privateEndpoints"`
}
type OrganizationUpdateResponse ¶
type OrganizationUpdateResponse struct {
Result OrgResult `json:"result,omitempty"`
}
type PrivateEndpoint ¶
type Service ¶
type Service struct { Id string `json:"id,omitempty"` Name string `json:"name"` Provider string `json:"provider"` Region string `json:"region"` Tier string `json:"tier"` IdleScaling bool `json:"idleScaling"` IpAccessList []IpAccess `json:"ipAccessList"` MinTotalMemoryGb *int `json:"minTotalMemoryGb,omitempty"` MaxTotalMemoryGb *int `json:"maxTotalMemoryGb,omitempty"` NumReplicas *int `json:"numReplicas,omitempty"` IdleTimeoutMinutes *int `json:"idleTimeoutMinutes,omitempty"` State string `json:"state,omitempty"` Endpoints []Endpoint `json:"endpoints,omitempty"` IAMRole string `json:"iamRole,omitempty"` PrivateEndpointConfig *ServicePrivateEndpointConfig `json:"privateEndpointConfig,omitempty"` PrivateEndpointIds []string `json:"privateEndpointIds,omitempty"` EncryptionKey string `json:"encryptionKey,omitempty"` EncryptionAssumedRoleIdentifier string `json:"encryptionAssumedRoleIdentifier,omitempty"` }
type ServiceBody ¶
type ServiceBody struct {
Service Service `json:"service"`
}
type ServiceDeleteResponse ¶
type ServiceDeleteResponse struct {
Result ServiceResponseResult `json:"result"`
}
type ServiceGetResponse ¶
type ServiceGetResponse struct {
Result Service `json:"result"`
}
type ServicePasswordUpdate ¶
type ServicePasswordUpdateResult ¶
type ServicePasswordUpdateResult struct {
Password string `json:"password,omitempty"`
}
type ServicePatchResponse ¶
type ServicePatchResponse struct {
Result Service `json:"result"`
}
type ServicePostResponse ¶
type ServicePostResponse struct {
Result ServiceResponseResult `json:"result"`
}
type ServicePrivateEndpointConfigResponse ¶
type ServicePrivateEndpointConfigResponse struct {
Result ServicePrivateEndpointConfig `json:"result"`
}
type ServiceResponseResult ¶
type ServiceScalingUpdate ¶
type ServiceScalingUpdate struct { IdleScaling *bool `json:"idleScaling,omitempty"` // bool pointer so that `false“ is not omitted MinTotalMemoryGb *int `json:"minTotalMemoryGb,omitempty"` MaxTotalMemoryGb *int `json:"maxTotalMemoryGb,omitempty"` NumReplicas *int `json:"numReplicas,omitempty"` IdleTimeoutMinutes *int `json:"idleTimeoutMinutes,omitempty"` }
type ServiceStateUpdate ¶
type ServiceStateUpdate struct {
Command string `json:"command"`
}
type ServiceUpdate ¶
type ServiceUpdate struct { Name string `json:"name,omitempty"` IpAccessList *IpAccessUpdate `json:"ipAccessList,omitempty"` PrivateEndpointIds *PrivateEndpointIdsUpdate `json:"privateEndpointIds,omitempty"` }