Documentation
¶
Overview ¶
Package types is the main set of data types defined within CPM and used across all tiers.
Index ¶
- type Cluster
- type ClusterNode
- type ClusterProfiles
- type Container
- type ContainerUser
- type Credential
- type HealthCheck
- type MonitorContainerParam
- type MonitorOutput
- type MonitorServerParam
- type NodeUser
- type PostgresControldata
- type PostgresSetting
- type PostgresStatement
- type Profiles
- type Project
- type ProvisionStatus
- type Proxy
- type Server
- type Setting
- type Settings
- type SimpleStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { ID string //unique key ProjectID string //foreign key to project Name string //cluster name ClusterType string //async or sync type of replication Status string //either up or down or initialized CreateDate string Containers map[string]string //map of containers within this cluster Token string }
type ClusterNode ¶
type ClusterNode struct { ID string //unique key ClusterID string //foreign key to cluster Name string //cluster name Role string //role of node in cluster Image string //docker image of node CreateDate string Status string ProjectID string //foreign key to project ProjectName string //project name ClusterName string //cluster name ServerID string //server info IPAddress string //current IP address }
type ClusterProfiles ¶
type ClusterProfiles struct { Size string //either SM, MED, or LG Count string //number of standby nodes Algo string //round-robin MasterProfile string //the docker profile to use for the master node StandbyProfile string //the docker profile to use for the standby nodes MasterServer string //the server class to place the master on StandbyServer string //the server class to place the standby nodes on Token string }
type Container ¶
type Container struct { ID string //unique key ClusterID string //foreign key to cluster Name string //container name, also used as the host name Role string //role of this container (master, standby, standalone) Image string //docker image this container is based on CreateDate string ProjectID string //foreign key to project ProjectName string //project name this container is in ClusterName string //cluster name this contaienr is part of }
type ContainerUser ¶
type ContainerUser struct { ID string //unique key Containername string //container name ContainerID string //foreign key to the container Passwd string //database password of this user Rolname string //postgres role name Rolsuper string //postgres superuser permission flag Rolinherit string //postgres inherit permission flag Rolcreaterole string //postgres createrole permission flag Rolcreatedb string //postgres createdb permission flag Rolcanlogin string //postgres login permission flag Rolreplication string //postgres replication permission flag UpdateDate string }
type Credential ¶
type HealthCheck ¶
type HealthCheck struct { ID string //unique key ProjectName string //project name ProjectID string //foreign key to project ContainerName string //container name ContainerID string //foreign key to container ContainerRole string //container role ContainerImage string //docker image of container Status string //either up or down UpdateDate string }
type MonitorContainerParam ¶
type MonitorOutput ¶
type MonitorServerParam ¶
type NodeUser ¶
type NodeUser struct { ID string //unique key Containername string //container name Rolname string //role name of this suser Passwd string //password of this user Updatedt string Token string Rolsuper bool //superuser permission flag Rolinherit bool //inherit permission flag Rolcreaterole bool //createrole permission flag Rolcreatedb bool //createdb permission flag Rollogin bool //login permission flag Rolreplication bool //replication permission flag }
type PostgresControldata ¶
type PostgresSetting ¶
type PostgresStatement ¶
type PostgresStatement struct { Database string //pg_stat_statements database value Query string //pg_stat_statements query value Calls string //pg_stat_statements calls value TotalTime string //pg_stat_statements totaltime value Rows string //pg_stat_statements rows value HitPercent string //pg_stat_statements hitpercent value }
type Profiles ¶
type Profiles struct { SmallCPU string //SM profile cpu shares setting SmallMEM string //SM profile memory setting MediumCPU string //MED profile cpu shares setting MediumMEM string //MED profile docker memory setting LargeCPU string //LG profile docker cpu shares setting LargeMEM string //LG profile docker memory setting Token string }
type Project ¶
type Project struct { ID string //unique key Name string //project name Desc string //description Containers map[string]string //map of containers in this project Clusters map[string]string //map of clusters in this project Proxies map[string]string //map of proxies in this project UpdateDate string Token string }
type ProvisionStatus ¶
type Proxy ¶
type Proxy struct { ID string //unique key Database string //database name Host string //database host name Usename string //database user name Passwd string //database password ContainerID string //foreign key to container ContainerName string //container name ServerName string //server name Status string //database status either down or running ContainerStatus string //container status either down or running ProjectID string //foreign key to project Port string //database port number UpdateDate string Token string }
type SimpleStatus ¶
type SimpleStatus struct {
Status string
}
Click to show internal directories.
Click to hide internal directories.