types

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrappingAppliedConfiguration added in v0.8.0

type BootstrappingAppliedConfiguration struct {
	StartedAt             string `json:"started_at,omitempty" header:"STARTED AT"`
	FinishedAt            string `json:"finished_at,omitempty" header:"FINISHED AT"`
	PolicyfileRevisionIDs string `json:"policyfile_revision_ids,omitempty" header:"POLICY FILE REVISION IDS" show:"nolist"`
	AttributeRevisionID   string `json:"attribute_revision_id,omitempty" header:"ATTRIBUTE REVISION ID"`
}

type BootstrappingConfiguration added in v0.8.0

type BootstrappingConfiguration struct {
	Policyfiles         []BootstrappingPolicyfile `json:"policyfiles,omitempty" header:"POLICY FILES" show:"nolist"`
	Attributes          *json.RawMessage          `json:"attributes,omitempty" header:"ATTRIBUTES" show:"nolist"`
	AttributeRevisionID string                    `json:"attribute_revision_id,omitempty" header:"ATTRIBUTE REVISION ID"`
}

type BootstrappingContinuousReport added in v0.8.0

type BootstrappingContinuousReport struct {
	Stdout string `json:"stdout" header:"STDOUT"`
}

type BootstrappingPolicyfile added in v0.8.0

type BootstrappingPolicyfile struct {
	ID          string `json:"id,omitempty" header:"ID"`
	RevisionID  string `json:"revision_id,omitempty" header:"REVISION ID"`
	DownloadURL string `json:"download_url,omitempty" header:"DOWNLOAD URL"`
}

type CloudAccount

type CloudAccount struct {
	ID                string `json:"id" header:"ID"`
	Name              string `json:"name" header:"NAME"`
	CloudProviderID   string `json:"cloud_provider_id" header:"CLOUD_PROVIDER_ID"`
	CloudProviderName string `json:"cloud_provider_name" header:"CLOUD_PROVIDER_NAME"`
}

type CloudProvider

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

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"`
	DomainID 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" show:"nolist"`
	ResourceType string `json:"resource_type" header:"RESOURCE_TYPE" show:"nolist"`
	LabelableFields
}

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 Label added in v0.8.0

type Label struct {
	ID           string `json:"id" header:"ID"`
	Name         string `json:"name" header:"NAME"`
	ResourceType string `json:"resource_type" header:"RESOURCE_TYPE"`
	Namespace    string `json:"namespace" header:"NAMESPACE" show:"nolist"`
	Value        string `json:"value" header:"VALUE" show:"nolist"`
}

type Labelable added in v0.8.0

type Labelable interface {
	FilterByLabelIDs(labelIDs []string) bool
	AssignLabelIDs(labelIDs []string)
	FillInLabelNames(labelNamesByID map[string]string)
}

type LabelableFields added in v0.8.0

type LabelableFields struct {
	LabelIDs []string `json:"label_ids" header:"LABEL_IDS" show:"nolist,noshow"`
	Labels   []string `json:"labels" header:"LABELS"`
}

func (*LabelableFields) AssignLabelIDs added in v0.8.0

func (lf *LabelableFields) AssignLabelIDs(labelIDs []string)

func (*LabelableFields) FillInLabelNames added in v0.8.0

func (lf *LabelableFields) FillInLabelNames(labelNamesByID map[string]string)

func (*LabelableFields) FilterByLabelIDs added in v0.8.0

func (lf *LabelableFields) FilterByLabelIDs(labelIDs []string) bool

type LabeledResource added in v0.8.0

type LabeledResource struct {
	ID           string `json:"id" header:"ID"`
	ResourceType string `json:"resource_type" header:"RESOURCE_TYPE"`
}

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"`
	SSLCertificatePrivateKey string `json:"ssl_certificate_private_key" header:"SSL_CERTIFICATE_PRIVATE_KEY"`
	DomainID                 string `json:"domain_id" header:"DOMAIN_ID"`
	CloudProviderID          string `json:"cloud_provider_id" header:"CLOUD_PROVIDER_ID"`
	TrafficIn                int    `json:"traffic_in" header:"TRAFFIC_IN"`
	TrafficOut               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 PollingCommand

type PollingCommand struct {
	ID       string `json:"id" header:"ID"`
	Script   string `json:"script" header:"SCRIPT"`
	Stdout   string `json:"stdout" header:"STDOUT"`
	Stderr   string `json:"stderr" header:"STDERR"`
	ExitCode int    `json:"exit_code" header:"EXIT_CODE"`
}

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 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" header:"NAME"`
	PublicKey    string `json:"public_key" header:"PUBLIC_KEY"`
	PrivateKey   string `json:"private_key" header:"PRIVATE_KEY" show:"nolist"`
	ResourceType string `json:"resource_type" header:"RESOURCE_TYPE" show:"nolist"`
	LabelableFields
}

type SaasAccount

type SaasAccount struct {
	ID             string `json:"id" header:"ID"`
	SaasProviderID 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"`
	RequiredAccountData []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"`
	ResourceType string   `json:"resource_type" header:"RESOURCE_TYPE" show:"nolist"`
	LabelableFields
}

Script holds script data

type ScriptChar

type ScriptChar struct {
	ID              string   `json:"id" header:"ID"`
	Type            string   `json:"type" header:"TYPE"`
	ParameterValues struct{} `json:"parameter_values" header:"PARAMETER_VALUES"`
	TemplateID      string   `json:"template_id" header:"TEMPLATE_ID"`
	ScriptID        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"`
	PublicIP          string `json:"public_ip" header:"PUBLIC_IP"`
	TemplateID        string `json:"template_id" header:"TEMPLATE_ID"`
	ServerPlanID      string `json:"server_plan_id" header:"SERVER_PLAN_ID"`
	CloudAccountID    string `json:"cloud_account_id" header:"CLOUD_ACCOUNT_ID"`
	SSHProfileID      string `json:"ssh_profile_id" header:"SSH_PROFILE_ID"`
	FirewallProfileID string `json:"firewall_profile_id" header:"FIREWALL_PROFILE_ID"`
	ResourceType      string `json:"resource_type" header:"RESOURCE_TYPE" show:"nolist"`
	LabelableFields
}

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"`
	LocationName      string  `json:"location_name" header:"LOCATION_NAME"`
	CloudProviderID   string  `json:"cloud_provider_id" header:"CLOUD_PROVIDER_ID"`
	CloudProviderName string  `json:"cloud_provider_name" header:"CLOUD_PROVIDER_NAME"`
}

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" show:"nolist"`
}

type Template

type Template struct {
	ID                      string           `json:"id,omitempty" header:"ID"`
	Name                    string           `json:"name,omitempty" header:"NAME"`
	GenericImageID          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"`
	ResourceType            string           `json:"resource_type" header:"RESOURCE_TYPE" show:"nolist"`
	LabelableFields
}

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"`
	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"`
	FirewallProfileID string `json:"firewall_profile_id" header:"FIREWALL_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"`
	FlavourRequirements json.RawMessage `json:"flavour_requirements" header:"FLAVOUR_REQUIREMENTS"`
	GenericImageID      string          `json:"generic_image_id" header:"GENERIC_IMAGE_ID"`
}

Jump to

Keyboard shortcuts

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