privatelink

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionOut

type ConnectionOut struct {
	DnsName                 string `json:"dns_name"`
	PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"`
	State                   string `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                   string `json:"state"`
	UserIpAddress           string `json:"user_ip_address"`
}

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 PrivatelinkAvailabilityOut

type PrivatelinkAvailabilityOut struct {
	CloudName string `json:"cloud_name"`
	PriceUsd  string `json:"price_usd"`
}

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          string   `json:"state"`
}

type ServicePrivatelinkAwsdeleteOut

type ServicePrivatelinkAwsdeleteOut struct {
	AwsServiceId   string   `json:"aws_service_id,omitempty"`
	AwsServiceName string   `json:"aws_service_name,omitempty"`
	Principals     []string `json:"principals"`
	State          string   `json:"state"`
}

type ServicePrivatelinkAwsgetOut

type ServicePrivatelinkAwsgetOut struct {
	AwsServiceId   string   `json:"aws_service_id,omitempty"`
	AwsServiceName string   `json:"aws_service_name,omitempty"`
	Principals     []string `json:"principals"`
	State          string   `json:"state"`
}

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          string   `json:"state"`
}

type ServicePrivatelinkAzureConnectionApprovalOut

type ServicePrivatelinkAzureConnectionApprovalOut struct {
	PrivateEndpointId       string `json:"private_endpoint_id"`
	PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"`
	State                   string `json:"state"`
	UserIpAddress           string `json:"user_ip_address"`
}

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                   string `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               string   `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               string   `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               string   `json:"state"`
	UserSubscriptionIds []string `json:"user_subscription_ids"`
}

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               string   `json:"state"`
	UserSubscriptionIds []string `json:"user_subscription_ids"`
}

Jump to

Keyboard shortcuts

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