services

package
v0.0.0-...-de24bab Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IMClusterTemplate = `` /* 4567-byte string literal not displayed */

IMClusterTemplate : template TOSCA for IM

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfCloud

type ConfCloud struct {
	ID            string `yaml:"id"`
	Type          string `yaml:"type"`
	Username      string `yaml:"username"`
	Password      string `yaml:"password"`
	Host          string `yaml:"host"`
	Tenant        string `yaml:"tenant"`
	AuthURL       string `yaml:"auth_url,omitempty"`
	AuthVersion   string `yaml:"auth_version"`
	Domain        string `yaml:"domain,omitempty"`
	ServiceRegion string `yaml:"service_region,omitempty"`
}

ConfCloud ...

type ConfIM

type ConfIM struct {
	ID       string `yaml:"id"`
	Type     string `yaml:"type"`
	Host     string `yaml:"host"`
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
	Token    string `yaml:"token,omitempty"`
}

ConfIM : configuration for Indigo InfrastructureManager auth

type IMClient

type IMClient struct {
	ConfigIM    ConfIM
	ConfigCloud ConfCloud
	Context     core.InfrastructureConfig
	State       core.InfrastructureState
}

IMClient : Indigo-dc InfrastructureManager client

func (IMClient) Create

func (t IMClient) Create() error

Create : create infrastructure with IMClient

func (IMClient) Describe

func (t IMClient) Describe() error

Describe : get detailed information about the infrastructure

func (IMClient) Destroy

func (t IMClient) Destroy() error

Destroy : destroy the infrastructure

func (IMClient) Scale

func (t IMClient) Scale(nodeLabel core.NodeLabel, num int) error

Scale : scale up or down selected node

func (IMClient) Status

func (t IMClient) Status() error

Status : get status of the infrastructure

func (IMClient) Update

func (t IMClient) Update() error

Update : update the deployment with the current Infrastructure configuration

type IMClientFactory

type IMClientFactory struct {
	// contains filtered or unexported fields
}

IMClientFactory : Indigo-dc InfrastructureManager client factory

func (IMClientFactory) Init

func (t IMClientFactory) Init() (*IMClient, error)

Init : initialize IMClient

type IndigoIAMConfig

type IndigoIAMConfig struct {
	CredPath     string
	Name         string
	AccessToken  string
	ClientSecret string
	ClientID     string
	Endpoint     string
}

IndigoIAMConfig : configuration for Indigo-IAM

func (IndigoIAMConfig) GetAccessToken

func (IndigoIAMConfig) GetAccessToken() (string, error)

GetAccessToken initialize Indigo IAM configuration. As per core.IAMConfig interface

func (IndigoIAMConfig) Init

func (IndigoIAMConfig) Init() error

Init initialize Indigo IAM configuration. As per core.IAMConfig interface

func (IndigoIAMConfig) RefreshAccessToken

func (IndigoIAMConfig) RefreshAccessToken() (string, error)

RefreshAccessToken initialize Indigo IAM configuration. As per core.IAMConfig interface

Jump to

Keyboard shortcuts

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