Documentation
¶
Index ¶
- type AccountGroup
- type CloudAccount
- type CloudProvider
- type Cluster
- type Dns
- type Domain
- type DomainRecord
- type Event
- type FirewallProfile
- type GenericImage
- type LBNode
- type LicenseeReport
- type Lines
- type LoadBalancer
- type Location
- type Node
- type PollingCommand
- type PollingContinuousReport
- type PollingPing
- type Report
- type RequiredCredentials
- type Rule
- type SSHProfile
- type SaasAccount
- type SaasProvider
- type SaasRequiredCredentials
- type Script
- type ScriptChar
- type Server
- type ServerPlan
- type Service
- type SettingsReport
- type Template
- type TemplateScript
- type TemplateScriptCredentials
- type TemplateServer
- type WizardApp
- type Workspace
- type WorkspaceServer
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 CloudProvider ¶
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 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 GenericImage ¶
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 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 PollingCommand ¶
type PollingContinuousReport ¶
type PollingContinuousReport struct {
Stdout string `json:"stdout" header:"STDOUT"`
}
type PollingPing ¶
type PollingPing struct {
PendingCommands bool `json:"pending_commands" header:"PENDING_COMMANDS"`
}
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 SSHProfile ¶
type SaasAccount ¶
type SaasProvider ¶
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 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"`
Cloud_account_id string `json:"cloud_account_id" header:"CLOUD_ACCOUNT_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"`
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"`
}
Source Files
¶
- admin_reports.go
- apps.go
- cloud_accounts.go
- cloud_providers.go
- cluster.go
- domain.go
- events.go
- firewall_profiles.go
- generic_images.go
- licensee_reports.go
- load_balancers.go
- locations.go
- node.go
- polling_command.go
- polling_continuous_report.go
- polling_ping.go
- saas_accounts.go
- saas_providers.go
- scripts.go
- server_plan.go
- servers.go
- services.go
- settings_reports.go
- ssh_profiles.go
- templates.go
- workspaces.go
Click to show internal directories.
Click to hide internal directories.