types

package
v0.0.0-...-43d62ff Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountGroup

type AccountGroup struct {
	ID   string `json:"_id" header:"ID"`
	Name string `json:"name" header:"NAME"`
}

AccountGroup hods account group data

type CloudAccount

type CloudAccount struct {
	Id          string `json:"id" header:"ID"`
	CloudProvId string `json:"cloud_provider_id" header:"CLOUD_PROVIDER_ID"`
}

type CloudProvider

type CloudProvider struct {
	Id                  string   `json:"id" header:"ID"`
	Name                string   `json:"name" header:"NAME"`
	RequiredCredentials []string `json:"required_credentials" header:"REQUIRED_CREDENTIALS"`
	ProvidedServices    []string `json:"provided_services" header:"PROVIDED_SERVICES"`
}

type Cluster

type Cluster struct {
	Id                string   `json:"id" header:"ID"`
	Name              string   `json:"name" header:"NAME"`
	State             string   `json:"state" header:"STATE"`
	MasterCount       int      `json:"master_count" header:"MASTER_COUNT"`
	SlaveCount        int      `json:"slave_count" header:"SLAVE_COUNT"`
	WorkspaceId       string   `json:"workspace_id" header:"WORKSPACE_ID"`
	FirewallProfileId string   `json:"firewall_profile_id" header:"FIREWALL_PROFILE_ID"`
	MasterTemplateId  string   `json:"master_template_id" header:"MASTER_TEMPLATE_ID"`
	SlaveTemplateId   string   `json:"slave_template_id" header:"SLAVE_TEMPLATE_ID"`
	Masters           []string `json:"masters" header:"MASTERS"`
}

Cluster represents a Cluster entry

type Dns

type Dns struct {
	Id        string `json:"id" header:"ID"`
	Name      string `json:"name" header:"NAME"`
	Content   string `json:"content" header:"CONTENT"`
	Type      string `json:"type" header:"TYPE"`
	IsFQDN    bool   `json:"is_fqdn" header:"IS_FQDN"`
	Domain_id string `json:"domain_id" header:"DOMAIN_ID"`
}

type Domain

type Domain struct {
	ID      string `json:"id" header:"ID"`
	Name    string `json:"name" header:"NAME"`
	TTL     int    `json:"ttl" header:"TTL"`
	Contact string `json:"contact" header:"CONTACT"`
	Minimum int    `json:"minimum" header:"MINIMUM"`
	Enabled bool   `json:"enabled" header:"ENABLED"`
}

Domain represents a domain entry

type DomainRecord

type DomainRecord struct {
	ID       string `json:"id" header:"ID"`
	Type     string `json:"type" header:"TYPE"`
	Name     string `json:"name" header:"NAME"`
	Content  string `json:"content" header:"CONTENT"`
	TTL      int    `json:"ttl" header:"TTL"`
	Prio     int    `json:"prio" header:"PRIO"`
	ServerID string `json:"server_id" header:"SERVER ID"`
	DomainID string `json:"domain_id" header:"DOMAIN ID"`
}

DomainRecord represents a domain record entry

type Event

type Event struct {
	Id          string    `json:"id" header:"ID"`
	Timestamp   time.Time `json:"timestamp" header:"TIMESTAMP"`
	Level       string    `json:"level" header:"LEVEL"`
	Header      string    `json:"header" header:"HEADER"`
	Description string    `json:"description" header:"DESCRIPTION"`
}

Event stores an Concerto event item

type FirewallProfile

type FirewallProfile struct {
	Id          string `json:"id" header:"ID"`
	Name        string `json:"name,omitempty" header:"NAME"`
	Description string `json:"description,omitempty" header:"DESCRIPTION"`
	Default     bool   `json:"default,omitempty" header:"DEFAULT"`
	Rules       []Rule `json:"rules,omitempty" header:"RULES"`
}

type GenericImage

type GenericImage struct {
	Id   string `json:"id" header:"ID"`
	Name string `json:"name" header:"NAME"`
}

type LBNode

type LBNode struct {
	Id       string `json:"id" header:"ID"`
	Name     string `json:"name" header:"NAME"`
	PublicIp string `json:"public_ip" header:"PUBLIC_IP"`
	State    string `json:"state" header:"STATE"`
	ServerId string `json:"server_id" header:"SERVER_ID"`
	Port     int    `json:"port" header:"PORT"`
}

type LicenseeReport

type LicenseeReport struct {
	Id            string     `json:"id" header:"ID"`
	Year          int        `json:"year" header:"YEAR"`
	Month         time.Month `json:"month" header:"MONTH"`
	StartTime     time.Time  `json:"start_time" header:"START_TIME"`
	EndTime       time.Time  `json:"end_time" header:"END_TIME"`
	ServerSeconds float32    `json:"server_seconds" header:"SERVER_SECONDS"`
	Closed        bool       `json:"closed" header:"CLOSED"`
	Lines         []Lines    `json:"lines" header:"LINES"`
}

type Lines

type Lines struct {
	ID               string    `json:"_id" header:"ID"`
	CommissionedAt   time.Time `json:"commissioned_at" header:"COMMISSIONED_AT"`
	DecommissionedAt time.Time `json:"decommissioned_at" header:"DECOMMISSIONED_AT"`
	InstanceID       string    `json:"instance_id" header:"INSTANCE_ID"`
	InstanceName     string    `json:"instance_name" header:"INSTANCE_NAME"`
	InstanceFQDN     string    `json:"instance_fqdn" header:"INSTANCE_FQDN"`
	Consumption      float32   `json:"consumption" header:"CONSUMPTION"`
}

Lines holds data for report lines

type LoadBalancer

type LoadBalancer struct {
	Id                          string `json:"id" header:"ID"`
	Name                        string `json:"name" header:"NAME"`
	Fqdn                        string `json:"fqdn" header:"FQDN"`
	Protocol                    string `json:"protocol" header:"PROTOCOL"`
	Port                        int    `json:"port" header:"PORT"`
	Algorithm                   string `json:"algorithm" header:"ALGORITHM"`
	SslCertificate              string `json:"ssl_certificate" header:"SSL_CERTIFICATE"`
	Ssl_certificate_private_key string `json:"ssl_certificate_private_key" header:"SSL_CERTIFICATE_PRIVATE_KEY"`
	Domain_id                   string `json:"domain_id" header:"DOMAIN_ID"`
	Cloud_provider_id           string `json:"cloud_provider_id" header:"CLOUD_PROVIDER_ID"`
	Traffic_in                  int    `json:"traffic_in" header:"TRAFFIC_IN"`
	Traffic_out                 int    `json:"traffic_out" header:"TRAFFIC_OUT"`
}

type Location

type Location struct {
	Id   string `json:"id" header:"ID"`
	Name string `json:"name" header:"NAME"`
}

type Node

type Node struct {
	Id        string `json:"id" header:"ID"`
	Name      string `json:"name" header:"NAME"`
	Fqdn      string `json:"fqdn" header:"FQDN"`
	PublicIp  string `json:"public_ip" header:"PUBLIC_IP"`
	State     string `json:"state" header:"STATE"`
	Os        string `json:"os" header:"OS"`
	Plan      string `json:"plan" header:"PLAN"`
	FleetName string `json:"fleet_name" header:"FLEET_NAME"`
	Master    bool   `json:"is_master" header:"IS_MASTER"`
}

type Report

type Report struct {
	ID            string       `json:"id" header:"REPORT ID"`
	Year          int          `json:"year" header:"YEAR"`
	Month         time.Month   `json:"month" header:"MONTH"`
	StartTime     time.Time    `json:"start_time" header:"START TIME"`
	EndTime       time.Time    `json:"end_time" header:"END TIME"`
	ServerSeconds float32      `json:"server_seconds" header:"SERVER TIME" show:"minifySeconds"`
	Closed        bool         `json:"closed" header:"CLOSED"`
	Lines         []Lines      `json:"lines" header:"LINES" show:"nolist"`
	AccountGroup  AccountGroup `json:"account_group" header:"ACCOUNT_GROUP" show:"nolist"`
}

Report holds a report header fields

type RequiredCredentials

type RequiredCredentials interface{}

type Rule

type Rule struct {
	Protocol string `json:"ip_protocol" header:"IP_PROTOCOL"`
	MinPort  int    `json:"min_port" header:"MIN_PORT"`
	MaxPort  int    `json:"max_port" header:"MAX_PORT"`
	CidrIp   string `json:"source" header:"SOURCE"`
}

type SSHProfile

type SSHProfile struct {
	Id          string `json:"id" header:"ID"`
	Name        string `json:"name" heade:"NAME"`
	Public_key  string `json:"public_key" header:"PUBLIC_KEY"`
	Private_key string `json:"private_key" header:"PRIVATE_KEY"`
}

type SaasAccount

type SaasAccount struct {
	Id         string `json:"id" header:"ID"`
	SaasProvId string `json:"saas_provider_id" header:"SAAS PROVIDER ID"`
}

type SaasProvider

type SaasProvider struct {
	Id                    string   `json:"id" header:"ID"`
	Name                  string   `json:"name" header:"NAME"`
	Required_account_data []string `json:"required_account_data" header:"REQUIRED_ACCOUNT_DATA"`
}

type SaasRequiredCredentials

type SaasRequiredCredentials interface{}

type Script

type Script struct {
	ID          string   `json:"id" header:"ID"`
	Name        string   `json:"name" header:"NAME"`
	Description string   `json:"description" header:"DESCRIPTION"`
	Code        string   `json:"code" header:"CODE" show:"nolist"`
	Parameters  []string `json:"parameters" header:"PARAMETERS"`
}

Script holds script data

type ScriptChar

type ScriptChar struct {
	Id               string   `json:"id" header:"ID"`
	Type             string   `json:"type" header:"TYPE"`
	Parameter_values struct{} `json:"parameter_values" header:"PARAMETER_VALUES"`
	Template_id      string   `json:"template_id" header:"TEMPLATE_ID"`
	Script_id        string   `json:"script_id" header:"SCRIPT_ID"`
}

type Server

type Server struct {
	Id             string `json:"id" header:"ID"`
	Name           string `json:"name" header:"NAME"`
	Fqdn           string `json:"fqdn" header:"FQDN"`
	State          string `json:"state" header:"STATE"`
	Public_ip      string `json:"public_ip" header:"PUBLIC_IP"`
	Workspace_id   string `json:"workspace_id" header:"WORKSPACE_ID"`
	Template_id    string `json:"template_id" header:"TEMPLATE_ID"`
	Server_plan_id string `json:"server_plan_id" header:"SERVER_PLAN_ID"`
	Ssh_profile_id string `json:"ssh_profile_id" header:"SSH_PROFILE_ID"`
}

type ServerPlan

type ServerPlan struct {
	Id              string  `json:"id" header:"ID"`
	Name            string  `json:"name" header:"NAME"`
	Memory          int     `json:"memory" header:"MEMORY"`
	CPUs            float32 `json:"cpus" header:"CPUS"`
	Storage         int     `json:"storage" header:"STORAGE"`
	LocationId      string  `json:"location_id" header:"LOCATION_ID"`
	CloudProviderId string  `json:"cloud_provider_id" header:"CLOUD_PROVIDER_ID"`
}

type Service

type Service struct {
	Id          string   `json:"id" header:"ID"`
	Name        string   `json:"name" header:"NAME"`
	Description string   `json:"description" header:"DESCRIPTION"`
	Public      bool     `json:"public" header:"PUBLIC"`
	License     string   `json:"license" header:"LICENSE"`
	Recipes     []string `json:"recipes"  header:"RECIPES"`
}

type SettingsReport

type SettingsReport struct {
	ID            string     `json:"id" header:"REPORT ID"`
	Year          int        `json:"year" header:"YEAR"`
	Month         time.Month `json:"month" header:"MONTH"`
	StartTime     time.Time  `json:"start_time" header:"START TIME"`
	EndTime       time.Time  `json:"end_time" header:"END TIME"`
	ServerSeconds float32    `json:"server_seconds" header:"SERVER TIME" show:"minifySeconds"`
	Closed        bool       `json:"closed" header:"CLOSED"`
	Lines         []Lines    `json:"lines" header:"LINES" show:"nolist"`
}

SettingsReport holds a report header fields

type Template

type Template struct {
	ID                      string           `json:"id,omitempty" header:"ID"`
	Name                    string           `json:"name,omitempty" header:"NAME"`
	GenericImgID            string           `json:"generic_image_id,omitempty" header:"GENERIC IMAGE ID"`
	ServiceList             []string         `json:"service_list,omitempty" header:"SERVICE LIST" show:"nolist"`
	ConfigurationAttributes *json.RawMessage `json:"configuration_attributes,omitempty" header:"CONFIGURATION ATTRIBUTES" show:"nolist"`
}

Template stores blueprint templates

type TemplateScript

type TemplateScript struct {
	ID              string           `json:"id" header:"ID"`
	Type            string           `json:"type" header:"TYPE"`
	ExecutionOrder  int              `json:"execution_order" header:"EXECUTION ORDER"`
	TemplateID      string           `json:"template_id" header:"TEMPLATE ID"`
	ScriptID        string           `json:"script_id" header:"SCRIPT ID"`
	ParameterValues *json.RawMessage `json:"parameter_values" header:"PARAMETER VALUES"`
}

TemplateScript stores a templates' script info

type TemplateScriptCredentials

type TemplateScriptCredentials interface{}

TemplateScriptCredentials stores credentials to servers

type TemplateServer

type TemplateServer struct {
	ID           string `json:"id"  header:"ID"`
	Name         string `json:"name" header:"NAME"`
	Fqdn         string `json:"fqdn" header:"FQDN"`
	State        string `json:"state" header:"STATE"`
	PublicIP     string `json:"public_ip" header:"PUBLIC IP"`
	WorkspaceID  string `json:"workspace_id" header:"WORKSPACE ID"`
	TemplateID   string `json:"template_id" header:"TEMPLATE ID"`
	ServerPlanID string `json:"server_plan_id" header:"SERVER PLAN ID"`
	SSHProfileID string `json:"ssh_profile_id" header:"SSH PROFILE ID"`
}

TemplateServer stores servers associated with the template

type WizardApp

type WizardApp struct {
	Id                   string          `json:"id" header:"ID"`
	Name                 string          `json:"name" header:"NAME"`
	Flavour_requirements json.RawMessage `json:"flavour_requirements" header:"FLAVOUR_REQUIREMENTS"`
	Generic_image_id     string          `json:"generic_image_id" header:"GENERIC_IMAGE_ID"`
}

type Workspace

type Workspace struct {
	Id                  string `json:"id" header:"ID"`
	Name                string `json:"name" header:"NAME"`
	Default             bool   `json:"default" header:"DEFAULT"`
	Domain_id           string `json:"domain_id" header:"DOMAIN_ID"`
	Ssh_profile_id      string `json:"ssh_profile_id" header:"SSH_PROFILE_ID"`
	Firewall_profile_id string `json:"firewall_profile_id" header:"FIREWALL_PROFILE_ID"`
}

type WorkspaceServer

type WorkspaceServer struct {
	Id             string `json:"id" header:"ID"`
	Name           string `json:"name" header:"NAME"`
	Fqdn           string `json:"fqdn" header:"FQDN"`
	State          string `json:"state" header:"STATE"`
	Public_ip      string `json:"public_ip" header:"PUBLIC_IP"`
	Workspace_id   string `json:"workspace_id" header:"WORKSPACE_ID"`
	Template_id    string `json:"template_id" header:"TEMPLATE_ID"`
	Server_plan_id string `json:"server_plan_id" header:"SERVER_PLAN_ID"`
	Ssh_profile_id string `json:"ssh_profile_id" header:"SSH_PROFILE_ID"`
}

Jump to

Keyboard shortcuts

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