Documentation
¶
Index ¶
- Constants
- func Loader(ctx context.Context, config providers.Config) (providers.Provider, *httperr.Error)
- func LoaderSim(_ context.Context, cfg providers.Config) (providers.Provider, *httperr.Error)
- func NamedLoader() (string, providers.Loader)
- func NamedLoaderSim() (string, providers.Loader)
- type Client
- type Credentials
- type InstanceTopology
- type Provider
- func (p *Provider) GenerateTopologyConfig(ctx context.Context, pageSize *int, instances []topology.ComputeInstances) (*topology.Graph, *httperr.Error)
- func (p *Provider) GetInstancesRegions(ctx context.Context, nodes []string) (map[string]string, error)
- func (p *Provider) Instances2NodeMap(ctx context.Context, nodes []string) (map[string]string, error)
- type ProviderParams
- type TopologyResult
Constants ¶
View Source
const (
NAME = "nscale"
)
View Source
const (
NAME_SIM = "nscale-sim"
)
Variables ¶
This section is empty.
Functions ¶
func NamedLoader ¶
func NamedLoaderSim ¶
Types ¶
type Credentials ¶
type InstanceTopology ¶
type InstanceTopology struct {
ID string `json:"instance_id"`
NetworkPath []string `json:"network_node_path"`
BlockID *string `json:"block_id,omitempty"`
}
InstanceTopology represents the topology of a single instance.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) GenerateTopologyConfig ¶
type ProviderParams ¶
type TopologyResult ¶
type TopologyResult struct {
Instances []InstanceTopology `json:"results"`
}
TopologyResult represents the topology of a single instance.
Click to show internal directories.
Click to hide internal directories.