Documentation ¶
Overview ¶
Package endpoints implements endpoints code.
Index ¶
- Constants
- Variables
- func CostructRegionFromZone(zone string) string
- func FetchPVSEndpoint(region string, serviceEndpoint []ServiceEndpoint) string
- func FetchRCEndpoint(serviceEndpoint []ServiceEndpoint) string
- func FetchVPCEndpoint(region string, serviceEndpoint []ServiceEndpoint) string
- type ServiceEndpoint
Constants ¶
View Source
const ( // VPC used to identify VPC service. VPC serviceID = "vpc" // PowerVS used to identify PowerVS service. PowerVS serviceID = "powervs" // RC used to identify Resource-Controller service. RC serviceID = "rc" )
Variables ¶
View Source
var ServiceEndpointFormat string
ServiceEndpointFormat is used to identify the custom endpoint of IBM Cloud service.
Functions ¶
func CostructRegionFromZone ¶
CostructRegionFromZone Calculate region based on location/zone.
func FetchPVSEndpoint ¶
func FetchPVSEndpoint(region string, serviceEndpoint []ServiceEndpoint) string
FetchPVSEndpoint will return PowerVS service endpoint.
func FetchRCEndpoint ¶
func FetchRCEndpoint(serviceEndpoint []ServiceEndpoint) string
FetchRCEndpoint will return resource controller endpoint.
func FetchVPCEndpoint ¶
func FetchVPCEndpoint(region string, serviceEndpoint []ServiceEndpoint) string
FetchVPCEndpoint will return VPC service endpoint.
Types ¶
type ServiceEndpoint ¶
ServiceEndpoint holds the Service endpoint specific information.
func ParseServiceEndpointFlag ¶
func ParseServiceEndpointFlag(serviceEndpoints string) ([]ServiceEndpoint, error)
ParseServiceEndpointFlag parses the command line flag of service endpoint in the format ${ServiceRegion}:${ServiceID1}=${URL1},${ServiceID2}=${URL2...} returning a list of ServiceEndpoint.
Click to show internal directories.
Click to hide internal directories.