vpc_endpoint

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(client *golangsdk.ServiceClient, clusterID string, opts ActionOpts) error

Accept or Reject VPC Endpoint Connection

func Disable

func Disable(client *golangsdk.ServiceClient, clusterID string) error

EnableVpcEndpoint function is used to Disable VCP endpoint of the cluster.

func Enable

func Enable(client *golangsdk.ServiceClient, clusterID string, opts EnableOpts) error

EnableVpcEndpoint function is used to Enable VCP endpoint of the cluster.

func UpdateWhitelist

func UpdateWhitelist(client *golangsdk.ServiceClient, clusterID string, opts UpdateWhitelistOpts) error

Modifying the VPC Endpoint Service Whitelist

Types

type ActionOpts

type ActionOpts struct {
	// Specifies whether to accept or reject a VPC endpoint for a VPC endpoint service.
	// receive: means to accept the VPC endpoint.
	// reject: means to reject the VPC endpoint.
	Action string `json:"action" required:"true"`
	// Lists VPC endpoint IDs.
	// Each request accepts or rejects only one VPC endpoint
	Endpoints []string `json:"endpointIdList" required:"true"`
}

type ConnectionResp

type ConnectionResp struct {
	ID                string `json:"id"`
	Status            string `json:"status"`
	MaxSession        string `json:"maxSession"`
	SpecificationName string `json:"specificationName"`
	CreatedAt         string `json:"created_at"`
	UpdatedAt         string `json:"update_at"`
	DomainId          string `json:"domain_id"`
}

func ListConnections

func ListConnections(client *golangsdk.ServiceClient, id string) ([]ConnectionResp, error)

List VPC Endpoint Connections

type EnableOpts

type EnableOpts struct {
	// Indicates whether to enable the internal DNS name .
	EndpointWithDnsName *bool `json:"endpointWithDnsName"`
}

type UpdateWhitelistOpts

type UpdateWhitelistOpts struct {
	// List of Tenant IDs to whitelist
	Permissions []string `json:"vpcPermissions" required:"true"`
}

Jump to

Keyboard shortcuts

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