api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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 IsNotFound(err error) bool

func RetriableError added in v1.0.0

func RetriableError(statusCode int) bool

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 NewClient

func NewClient(apiUrl string, organizationId string, tokenKey string, tokenSecret string) (*ClientImpl, error)

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

func (c *ClientImpl) WaitForServiceState(serviceId string, stateChecker func(string) bool, maxWaitSeconds int) error

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

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

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

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

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

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

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

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

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

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 Endpoint

type Endpoint struct {
	Protocol string `json:"protocol,omitempty"`
	Host     string `json:"host,omitempty"`
	Port     int    `json:"port,omitempty"`
}

type IpAccess

type IpAccess struct {
	Source      string `json:"source,omitempty"`
	Description string `json:"description,omitempty"`
}

type IpAccessUpdate

type IpAccessUpdate struct {
	Add    []IpAccess `json:"add,omitempty"`
	Remove []IpAccess `json:"remove,omitempty"`
}

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 PrivateEndpoint struct {
	CloudProvider string `json:"cloudProvider,omitempty"`
	Description   string `json:"description,omitempty"`
	EndpointId    string `json:"id,omitempty"`
	Region        string `json:"region,omitempty"`
}

type PrivateEndpointIdsUpdate

type PrivateEndpointIdsUpdate struct {
	Add    []string `json:"add,omitempty"`
	Remove []string `json:"remove,omitempty"`
}

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 ServiceManagedEncryption

type ServiceManagedEncryption struct {
	KeyArn        string `json:"keyArn,omitempty"`
	AssumeRoleArn string `json:"assumeRoleArn,omitempty"`
}

type ServicePasswordUpdate

type ServicePasswordUpdate struct {
	NewPasswordHash   string `json:"newPasswordHash,omitempty"`
	NewDoubleSha1Hash string `json:"newDoubleSha1Hash,omitempty"`
}

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 ServicePrivateEndpointConfig

type ServicePrivateEndpointConfig struct {
	EndpointServiceId  string `json:"endpointServiceId,omitempty"`
	PrivateDnsHostname string `json:"privateDnsHostname,omitempty"`
}

type ServicePrivateEndpointConfigResponse

type ServicePrivateEndpointConfigResponse struct {
	Result ServicePrivateEndpointConfig `json:"result"`
}

type ServiceResponseResult

type ServiceResponseResult struct {
	Service  Service `json:"service"`
	Password string  `json:"password"`
}

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"`
}

Jump to

Keyboard shortcuts

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