aks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package aks provides functions and data structures to interact with Azure Kubernetes Service (AKS) resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureResourceReport

type AzureResourceReport struct {
	Resources AzureResources `json:"resources"`
	Errors    []string       `json:"errors"`
}

AzureResourceReport contains the AzureResources and any non-fatal errors encountered during enumeration.

func EnumerateAKSClusters

func EnumerateAKSClusters(ctx context.Context, cfg config.AzureConfig) (*AzureResourceReport, error)

EnumerateAKSClusters enumerates all AKS clusters in the subscription, returning a report of the clusters and any non-fatal errors encountered.

type AzureResources

type AzureResources struct {
	SubscriptionID string           `json:"subscription_id"`
	AKSClusters    []ClusterDetails `json:"aks_clusters"`
}

AzureResources contains details about all AKS clusters in the subscription.

type ClusterDetails

type ClusterDetails struct {
	Name          string                             `json:"cluster_name"`
	ResourceGroup string                             `json:"resource_group"`
	Details       armcontainerservice.ManagedCluster `json:"details"`
	NodePools     []NodePoolDetails                  `json:"node_pools"`
}

ClusterDetails contains details about a single AKS cluster, including the cluster details and node pools.

type NodePoolDetails

type NodePoolDetails struct {
	Details armcontainerservice.AgentPool `json:"details"`
	VMIDs   []string                      `json:"vm_ids"`
}

NodePoolDetails contains details about a single AKS node pool and the VMs in the pool.

Jump to

Keyboard shortcuts

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