Documentation ¶
Index ¶
- func ConnectionStateTypeChoices() []string
- func ServicePrivatelinkAwscreateStateTypeChoices() []string
- func ServicePrivatelinkAwsdeleteStateTypeChoices() []string
- func ServicePrivatelinkAwsgetStateTypeChoices() []string
- func ServicePrivatelinkAwsupdateStateTypeChoices() []string
- func ServicePrivatelinkAzureConnectionApprovalStateTypeChoices() []string
- func ServicePrivatelinkAzureConnectionStateTypeChoices() []string
- func ServicePrivatelinkAzureStateTypeChoices() []string
- type ConnectionOut
- type ConnectionOutAlt
- type ConnectionStateType
- type Handler
- type PrivatelinkAvailabilityOut
- type PrivatelinkHandler
- func (h *PrivatelinkHandler) PublicPrivatelinkAvailabilityList(ctx context.Context, tenant string) ([]PrivatelinkAvailabilityOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAWSConnectionList(ctx context.Context, project string, serviceName string) ([]ConnectionOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAWSCreate(ctx context.Context, project string, serviceName string, ...) (*ServicePrivatelinkAwscreateOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAWSDelete(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAwsdeleteOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAWSGet(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAwsgetOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAWSUpdate(ctx context.Context, project string, serviceName string, ...) (*ServicePrivatelinkAwsupdateOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureConnectionApproval(ctx context.Context, project string, serviceName string, ...) (*ServicePrivatelinkAzureConnectionApprovalOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureConnectionList(ctx context.Context, project string, serviceName string) ([]ConnectionOutAlt, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureConnectionUpdate(ctx context.Context, project string, serviceName string, ...) (*ServicePrivatelinkAzureConnectionUpdateOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureCreate(ctx context.Context, project string, serviceName string, ...) (*ServicePrivatelinkAzureCreateOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureDelete(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAzureDeleteOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureGet(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAzureGetOut, error)
- func (h *PrivatelinkHandler) ServicePrivatelinkAzureUpdate(ctx context.Context, project string, serviceName string, ...) (*ServicePrivatelinkAzureUpdateOut, error)
- type ServicePrivatelinkAwscreateIn
- type ServicePrivatelinkAwscreateOut
- type ServicePrivatelinkAwscreateStateType
- type ServicePrivatelinkAwsdeleteOut
- type ServicePrivatelinkAwsdeleteStateType
- type ServicePrivatelinkAwsgetOut
- type ServicePrivatelinkAwsgetStateType
- type ServicePrivatelinkAwsupdateIn
- type ServicePrivatelinkAwsupdateOut
- type ServicePrivatelinkAwsupdateStateType
- type ServicePrivatelinkAzureConnectionApprovalOut
- type ServicePrivatelinkAzureConnectionApprovalStateType
- type ServicePrivatelinkAzureConnectionStateType
- type ServicePrivatelinkAzureConnectionUpdateIn
- type ServicePrivatelinkAzureConnectionUpdateOut
- type ServicePrivatelinkAzureCreateIn
- type ServicePrivatelinkAzureCreateOut
- type ServicePrivatelinkAzureDeleteOut
- type ServicePrivatelinkAzureGetOut
- type ServicePrivatelinkAzureStateType
- type ServicePrivatelinkAzureUpdateIn
- type ServicePrivatelinkAzureUpdateOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionStateTypeChoices ¶ added in v0.3.0
func ConnectionStateTypeChoices() []string
func ServicePrivatelinkAwscreateStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAwscreateStateTypeChoices() []string
func ServicePrivatelinkAwsdeleteStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAwsdeleteStateTypeChoices() []string
func ServicePrivatelinkAwsgetStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAwsgetStateTypeChoices() []string
func ServicePrivatelinkAwsupdateStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAwsupdateStateTypeChoices() []string
func ServicePrivatelinkAzureConnectionApprovalStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAzureConnectionApprovalStateTypeChoices() []string
func ServicePrivatelinkAzureConnectionStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAzureConnectionStateTypeChoices() []string
func ServicePrivatelinkAzureStateTypeChoices ¶ added in v0.3.0
func ServicePrivatelinkAzureStateTypeChoices() []string
Types ¶
type ConnectionOut ¶
type ConnectionOut struct { DnsName string `json:"dns_name"` PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` State ConnectionStateType `json:"state"` VpcEndpointId string `json:"vpc_endpoint_id"` }
type ConnectionOutAlt ¶
type ConnectionOutAlt struct { PrivateEndpointId string `json:"private_endpoint_id"` PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` State ConnectionStateType `json:"state"` UserIpAddress string `json:"user_ip_address"` }
type ConnectionStateType ¶ added in v0.3.0
type ConnectionStateType string
const ( ConnectionStateTypePendingUserApproval ConnectionStateType = "pending-user-approval" ConnectionStateTypeUserApproved ConnectionStateType = "user-approved" ConnectionStateTypeConnected ConnectionStateType = "connected" ConnectionStateTypeActive ConnectionStateType = "active" )
type Handler ¶
type Handler interface { // PublicPrivatelinkAvailabilityList list privatelink clouds and prices // GET /tenants/{tenant}/privatelink-availability // https://api.aiven.io/doc/#tag/Cloud_platforms/operation/PublicPrivatelinkAvailabilityList PublicPrivatelinkAvailabilityList(ctx context.Context, tenant string) ([]PrivatelinkAvailabilityOut, error) // ServicePrivatelinkAWSConnectionList list VPC Endpoint connections for an AWS Privatelink Endpoint Service // GET /project/{project}/service/{service_name}/privatelink/aws/connections // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAWSConnectionList ServicePrivatelinkAWSConnectionList(ctx context.Context, project string, serviceName string) ([]ConnectionOut, error) // ServicePrivatelinkAWSCreate create an AWS Privatelink Endpoint Service // POST /project/{project}/service/{service_name}/privatelink/aws // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAWSCreate ServicePrivatelinkAWSCreate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAwscreateIn) (*ServicePrivatelinkAwscreateOut, error) // ServicePrivatelinkAWSDelete delete an AWS Privatelink Endpoint Service // DELETE /project/{project}/service/{service_name}/privatelink/aws // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAWSDelete ServicePrivatelinkAWSDelete(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAwsdeleteOut, error) // ServicePrivatelinkAWSGet get AWS Privatelink Endpoint Service information // GET /project/{project}/service/{service_name}/privatelink/aws // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAWSGet ServicePrivatelinkAWSGet(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAwsgetOut, error) // ServicePrivatelinkAWSUpdate update an AWS Privatelink Endpoint Service // PUT /project/{project}/service/{service_name}/privatelink/aws // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAWSUpdate ServicePrivatelinkAWSUpdate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAwsupdateIn) (*ServicePrivatelinkAwsupdateOut, error) // ServicePrivatelinkAzureConnectionApproval approve an Azure private endpoint connection pending user approval // POST /project/{project}/service/{service_name}/privatelink/azure/connections/{privatelink_connection_id}/approve // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureConnectionApproval ServicePrivatelinkAzureConnectionApproval(ctx context.Context, project string, serviceName string, privatelinkConnectionId string) (*ServicePrivatelinkAzureConnectionApprovalOut, error) // ServicePrivatelinkAzureConnectionList list private endpoint connections for an Azure Privatelink Service // GET /project/{project}/service/{service_name}/privatelink/azure/connections // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureConnectionList ServicePrivatelinkAzureConnectionList(ctx context.Context, project string, serviceName string) ([]ConnectionOutAlt, error) // ServicePrivatelinkAzureConnectionUpdate update a private endpoint connection for an Azure Privatelink Service // PUT /project/{project}/service/{service_name}/privatelink/azure/connections/{privatelink_connection_id} // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureConnectionUpdate ServicePrivatelinkAzureConnectionUpdate(ctx context.Context, project string, serviceName string, privatelinkConnectionId string, in *ServicePrivatelinkAzureConnectionUpdateIn) (*ServicePrivatelinkAzureConnectionUpdateOut, error) // ServicePrivatelinkAzureCreate create an Azure Privatelink Service // POST /project/{project}/service/{service_name}/privatelink/azure // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureCreate ServicePrivatelinkAzureCreate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAzureCreateIn) (*ServicePrivatelinkAzureCreateOut, error) // ServicePrivatelinkAzureDelete delete an Azure Privatelink Service // DELETE /project/{project}/service/{service_name}/privatelink/azure // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureDelete ServicePrivatelinkAzureDelete(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAzureDeleteOut, error) // ServicePrivatelinkAzureGet get Azure Privatelink Service information // GET /project/{project}/service/{service_name}/privatelink/azure // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureGet ServicePrivatelinkAzureGet(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAzureGetOut, error) // ServicePrivatelinkAzureUpdate update an Azure Privatelink Service // PUT /project/{project}/service/{service_name}/privatelink/azure // https://api.aiven.io/doc/#tag/Service/operation/ServicePrivatelinkAzureUpdate ServicePrivatelinkAzureUpdate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAzureUpdateIn) (*ServicePrivatelinkAzureUpdateOut, error) }
type PrivatelinkHandler ¶
type PrivatelinkHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) PrivatelinkHandler
func (*PrivatelinkHandler) PublicPrivatelinkAvailabilityList ¶
func (h *PrivatelinkHandler) PublicPrivatelinkAvailabilityList(ctx context.Context, tenant string) ([]PrivatelinkAvailabilityOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAWSConnectionList ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAWSConnectionList(ctx context.Context, project string, serviceName string) ([]ConnectionOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAWSCreate ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAWSCreate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAwscreateIn) (*ServicePrivatelinkAwscreateOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAWSDelete ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAWSDelete(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAwsdeleteOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAWSGet ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAWSGet(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAwsgetOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAWSUpdate ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAWSUpdate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAwsupdateIn) (*ServicePrivatelinkAwsupdateOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureConnectionApproval ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureConnectionApproval(ctx context.Context, project string, serviceName string, privatelinkConnectionId string) (*ServicePrivatelinkAzureConnectionApprovalOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureConnectionList ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureConnectionList(ctx context.Context, project string, serviceName string) ([]ConnectionOutAlt, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureConnectionUpdate ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureConnectionUpdate(ctx context.Context, project string, serviceName string, privatelinkConnectionId string, in *ServicePrivatelinkAzureConnectionUpdateIn) (*ServicePrivatelinkAzureConnectionUpdateOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureCreate ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureCreate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAzureCreateIn) (*ServicePrivatelinkAzureCreateOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureDelete ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureDelete(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAzureDeleteOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureGet ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureGet(ctx context.Context, project string, serviceName string) (*ServicePrivatelinkAzureGetOut, error)
func (*PrivatelinkHandler) ServicePrivatelinkAzureUpdate ¶
func (h *PrivatelinkHandler) ServicePrivatelinkAzureUpdate(ctx context.Context, project string, serviceName string, in *ServicePrivatelinkAzureUpdateIn) (*ServicePrivatelinkAzureUpdateOut, error)
type ServicePrivatelinkAwscreateIn ¶
type ServicePrivatelinkAwscreateIn struct {
Principals []string `json:"principals"`
}
type ServicePrivatelinkAwscreateOut ¶
type ServicePrivatelinkAwscreateOut struct { AwsServiceId string `json:"aws_service_id,omitempty"` AwsServiceName string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwscreateStateType `json:"state"` }
type ServicePrivatelinkAwscreateStateType ¶ added in v0.3.0
type ServicePrivatelinkAwscreateStateType string
const ( ServicePrivatelinkAwscreateStateTypeCreating ServicePrivatelinkAwscreateStateType = "creating" ServicePrivatelinkAwscreateStateTypeActive ServicePrivatelinkAwscreateStateType = "active" ServicePrivatelinkAwscreateStateTypeDeleting ServicePrivatelinkAwscreateStateType = "deleting" )
type ServicePrivatelinkAwsdeleteOut ¶
type ServicePrivatelinkAwsdeleteOut struct { AwsServiceId string `json:"aws_service_id,omitempty"` AwsServiceName string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwsdeleteStateType `json:"state"` }
type ServicePrivatelinkAwsdeleteStateType ¶ added in v0.3.0
type ServicePrivatelinkAwsdeleteStateType string
const ( ServicePrivatelinkAwsdeleteStateTypeCreating ServicePrivatelinkAwsdeleteStateType = "creating" ServicePrivatelinkAwsdeleteStateTypeActive ServicePrivatelinkAwsdeleteStateType = "active" ServicePrivatelinkAwsdeleteStateTypeDeleting ServicePrivatelinkAwsdeleteStateType = "deleting" )
type ServicePrivatelinkAwsgetOut ¶
type ServicePrivatelinkAwsgetOut struct { AwsServiceId string `json:"aws_service_id,omitempty"` AwsServiceName string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwsgetStateType `json:"state"` }
type ServicePrivatelinkAwsgetStateType ¶ added in v0.3.0
type ServicePrivatelinkAwsgetStateType string
const ( ServicePrivatelinkAwsgetStateTypeCreating ServicePrivatelinkAwsgetStateType = "creating" ServicePrivatelinkAwsgetStateTypeActive ServicePrivatelinkAwsgetStateType = "active" ServicePrivatelinkAwsgetStateTypeDeleting ServicePrivatelinkAwsgetStateType = "deleting" )
type ServicePrivatelinkAwsupdateIn ¶
type ServicePrivatelinkAwsupdateIn struct {
Principals []string `json:"principals"`
}
type ServicePrivatelinkAwsupdateOut ¶
type ServicePrivatelinkAwsupdateOut struct { AwsServiceId string `json:"aws_service_id,omitempty"` AwsServiceName string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwsupdateStateType `json:"state"` }
type ServicePrivatelinkAwsupdateStateType ¶ added in v0.3.0
type ServicePrivatelinkAwsupdateStateType string
const ( ServicePrivatelinkAwsupdateStateTypeCreating ServicePrivatelinkAwsupdateStateType = "creating" ServicePrivatelinkAwsupdateStateTypeActive ServicePrivatelinkAwsupdateStateType = "active" ServicePrivatelinkAwsupdateStateTypeDeleting ServicePrivatelinkAwsupdateStateType = "deleting" )
type ServicePrivatelinkAzureConnectionApprovalOut ¶
type ServicePrivatelinkAzureConnectionApprovalOut struct { PrivateEndpointId string `json:"private_endpoint_id"` PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` State ServicePrivatelinkAzureConnectionApprovalStateType `json:"state"` UserIpAddress string `json:"user_ip_address"` }
type ServicePrivatelinkAzureConnectionApprovalStateType ¶ added in v0.3.0
type ServicePrivatelinkAzureConnectionApprovalStateType string
const ( ServicePrivatelinkAzureConnectionApprovalStateTypePendingUserApproval ServicePrivatelinkAzureConnectionApprovalStateType = "pending-user-approval" ServicePrivatelinkAzureConnectionApprovalStateTypeUserApproved ServicePrivatelinkAzureConnectionApprovalStateType = "user-approved" ServicePrivatelinkAzureConnectionApprovalStateTypeConnected ServicePrivatelinkAzureConnectionApprovalStateType = "connected" ServicePrivatelinkAzureConnectionApprovalStateTypeActive ServicePrivatelinkAzureConnectionApprovalStateType = "active" )
type ServicePrivatelinkAzureConnectionStateType ¶ added in v0.3.0
type ServicePrivatelinkAzureConnectionStateType string
const ( ServicePrivatelinkAzureConnectionStateTypePendingUserApproval ServicePrivatelinkAzureConnectionStateType = "pending-user-approval" ServicePrivatelinkAzureConnectionStateTypeUserApproved ServicePrivatelinkAzureConnectionStateType = "user-approved" ServicePrivatelinkAzureConnectionStateTypeConnected ServicePrivatelinkAzureConnectionStateType = "connected" ServicePrivatelinkAzureConnectionStateTypeActive ServicePrivatelinkAzureConnectionStateType = "active" )
type ServicePrivatelinkAzureConnectionUpdateIn ¶
type ServicePrivatelinkAzureConnectionUpdateIn struct {
UserIpAddress string `json:"user_ip_address"`
}
type ServicePrivatelinkAzureConnectionUpdateOut ¶
type ServicePrivatelinkAzureConnectionUpdateOut struct { PrivateEndpointId string `json:"private_endpoint_id"` PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` State ServicePrivatelinkAzureConnectionStateType `json:"state"` UserIpAddress string `json:"user_ip_address"` }
type ServicePrivatelinkAzureCreateIn ¶
type ServicePrivatelinkAzureCreateIn struct {
UserSubscriptionIds []string `json:"user_subscription_ids"`
}
type ServicePrivatelinkAzureCreateOut ¶
type ServicePrivatelinkAzureCreateOut struct { AzureServiceAlias string `json:"azure_service_alias,omitempty"` AzureServiceId string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` }
type ServicePrivatelinkAzureDeleteOut ¶
type ServicePrivatelinkAzureDeleteOut struct { AzureServiceAlias string `json:"azure_service_alias,omitempty"` AzureServiceId string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` }
type ServicePrivatelinkAzureGetOut ¶
type ServicePrivatelinkAzureGetOut struct { AzureServiceAlias string `json:"azure_service_alias,omitempty"` AzureServiceId string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` }
type ServicePrivatelinkAzureStateType ¶ added in v0.3.0
type ServicePrivatelinkAzureStateType string
const ( ServicePrivatelinkAzureStateTypeCreating ServicePrivatelinkAzureStateType = "creating" ServicePrivatelinkAzureStateTypeActive ServicePrivatelinkAzureStateType = "active" ServicePrivatelinkAzureStateTypeDeleting ServicePrivatelinkAzureStateType = "deleting" )
type ServicePrivatelinkAzureUpdateIn ¶
type ServicePrivatelinkAzureUpdateIn struct {
UserSubscriptionIds []string `json:"user_subscription_ids"`
}
type ServicePrivatelinkAzureUpdateOut ¶
type ServicePrivatelinkAzureUpdateOut struct { AzureServiceAlias string `json:"azure_service_alias,omitempty"` AzureServiceId string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` }
Click to show internal directories.
Click to hide internal directories.