Interface: endpoints.EnumPartitions

import "../ibm-cos-sdk-go/aws/endpoints"

Overview

EnumPartitions a provides a way to retrieve the underlying partitions that make up the SDK's default Resolver, or any resolver decoded from a model file.

Use this interface with DefaultResolver and DecodeModels to get the list of Partitions.

Examples:

resolver := endpoints.DefaultResolver() partitions := resolver.(endpoints.EnumPartitions).Partitions() for _, p := range partitions { fmt.Println("Regions for", p.ID()) for id := range p.Regions() { fmt.Println("*", id) } fmt.Println("Services for", p.ID()) for id := range p.Services() { fmt.Println("*", id) } }

Interface Method Summary collapse

Interface Method Details

Partitions() []Partition

This method is abstract.


255
// File 'aws/endpoints/endpoints.go', line 255

Partitions() []Partition