instance

package
v0.0.0-...-86ca01b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 3 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(conn *core.Connection, instanceid string, newtenantid string) error

func Delete

func Delete(conn *core.Connection, id string) error

func Mappings

func Mappings(conn *core.Connection, tenantid string) (map[string]string, map[string]string, error)

Types

type AssignStruct

type AssignStruct struct {
	NewTenantId string `json:"newtenantid"`
	InstanceId  string `json:"instanceid"`
}

type BrokerType

type BrokerType struct {
	Id       string `json:"id"`
	Clientip string `json:"clientip,omitempty"`
}

type MartiniAmazon

type MartiniAmazon struct {
	Region string `json:"region"`
}

type MartiniBrokerEndpoint

type MartiniBrokerEndpoint struct {
	Id             string `json:"id"`
	Status         string `json:"status"`
	Port           string `json:"port,omitempty"`
	ExpectedClient string `json:"expectedclient,omitempty"`
}

func Broker

func Broker(conn *core.Connection, id string, clientip string) (MartiniBrokerEndpoint, error)

type MartiniDeploy

type MartiniDeploy struct {
	Id     string      `json:"id"`
	Type   string      `json:"type"`
	Config interface{} `json:"config"`
}

func NewAWSConfig

func NewAWSConfig(tenantid string, region string) *MartiniDeploy

func (*MartiniDeploy) Deploy

func (m *MartiniDeploy) Deploy(conn *core.Connection) (string, error)

type MartiniInstance

type MartiniInstance struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	TenantId string `json:"tenant_id"`
	Type     string `json:"type"`
	Status   string `json:"status"`
	Location string `json:"location"`
	Hostname string `json:"hostname"`
	Port     string `json:"port"`
	Username string `json:"username"`
	Password string `json:"password,omitempty"`
}

func List

func List(conn *core.Connection, tenantid string) ([]MartiniInstance, error)

func ListOrphans

func ListOrphans(conn *core.Connection) ([]MartiniInstance, error)

func (*MartiniInstance) Create

func (i *MartiniInstance) Create(conn *core.Connection) error

type MartiniInstanceIdentification

type MartiniInstanceIdentification struct {
	Id         string `json:"id,omitempty"`
	InstanceId string `json:"instanceid,omitempty"`
	Data       string `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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