cloud

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cloud maps user-friendly Mist cloud names and API hosts to the environments known by mistapi-go.

Index

Constants

This section is empty.

Variables

View Source
var All = []Cloud{
	{"global01", "api.mist.com", mistapi.MIST_GLOBAL_01},
	{"global02", "api.gc1.mist.com", mistapi.MIST_GLOBAL_02},
	{"global03", "api.ac2.mist.com", mistapi.MIST_GLOBAL_03},
	{"global04", "api.gc2.mist.com", mistapi.MIST_GLOBAL_04},
	{"global05", "api.gc4.mist.com", mistapi.MIST_GLOBAL_05},
	{"emea01", "api.eu.mist.com", mistapi.MIST_EMEA_01},
	{"emea02", "api.gc3.mist.com", mistapi.MIST_EMEA_02},
	{"emea03", "api.ac6.mist.com", mistapi.MIST_EMEA_03},
	{"emea04", "api.gc6.mist.com", mistapi.MIST_EMEA_04},
	{"apac01", "api.ac5.mist.com", mistapi.MIST_APAC_01},
	{"apac02", "api.gc5.mist.com", mistapi.MIST_APAC_02},
	{"apac03", "api.gc7.mist.com", mistapi.MIST_APAC_03},
	{"gov", "api.us.mist-federal.com", mistapi.GOV_CLOUD},
	{"staging", "api.mistsys.com", mistapi.AWS_STAGING},
}

All lists every cloud supported by the underlying SDK.

Functions

func Names

func Names() []string

Names returns the short names of all clouds, sorted.

Types

type Cloud

type Cloud struct {
	Name string              // short name used on the command line, e.g. "global01"
	Host string              // API host, e.g. "api.mist.com"
	Env  mistapi.Environment // mistapi-go environment
}

Cloud describes one Mist cloud instance.

func Lookup

func Lookup(s string) (Cloud, error)

Lookup resolves a cloud by short name ("global01"), API host ("api.mist.com"), portal host ("manage.mist.com") or SDK environment name ("Mist Global 01"). Matching is case-insensitive.

Jump to

Keyboard shortcuts

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