kt

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package kt provides direct KT Cloud VPC (D1, OpenStack-based) SDK calls (truth surface). Public IPs on KT are managed through a separate NSM API and are not covered as residuals; leftover custom tiers (KT's subnet equivalent, account-wide and persistent) are.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDescribeInstanceStatuses

func BatchDescribeInstanceStatuses(ctx context.Context, region string, instanceIds []string) (map[string]string, error)

BatchDescribeInstanceStatuses returns TB statuses for the given server IDs (region argument = zone).

func BatchTerminateInstances

func BatchTerminateInstances(ctx context.Context, region string, instanceIds []string) (map[string]string, error)

BatchTerminateInstances deletes the given servers (region argument = zone). Like Spider, it first removes the servers' firewall policies, port forwarding, and public IPs — KT refuses to delete those once the server is gone.

func DeleteResiduals

func DeleteResiduals(ctx context.Context, region, zone string, items []csp.ResidualResource) map[string]error

DeleteResiduals deletes the given custom tiers. KT returns an odd error body containing ":true" on success (same quirk cb-spider tolerates).

func ListCustomTiers

func ListCustomTiers(ctx context.Context, region, zone string) (map[string]string, error)

ListCustomTiers returns KT custom tiers (NetworkID -> name) in the zone; system tiers are excluded. KT has no deletable VPC: a TB vNet is "gone" once none of its tiers remain.

func ListResiduals

func ListResiduals(ctx context.Context, region, zone string) ([]csp.ResidualResource, error)

ListResiduals lists custom tiers (non-system, isCustom) — leftovers of failed or half-cleaned vNet runs — and the Fortigate firewall policies that still reference TB-named tiers (KT refuses to delete a tier while a policy references it). Firewall residuals carry the referenced tier's name so the caller's attribution rule (TB uid / "-shared-") applies to both.

func ListVMs

func ListVMs(ctx context.Context, region, zone string) ([]csp.VMRecord, error)

ListVMs lists every server in the zone directly from KT Cloud.

Types

This section is empty.

Jump to

Keyboard shortcuts

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