Documentation
¶
Index ¶
- func PrintAppInfo(appInfos []AppInfo, out io.Writer)
- func PrintAppVersionInfo(appVersionInfos []AppVersionInfo, out io.Writer)
- func PrintCertificationInfo(certificationInfo []CertificationInfo, out io.Writer)
- func PrintClusterInfo(clusterInfos []ClusterInfo, out io.Writer)
- func PrintConfigMapInfos(configMapInfos []ConfigMapInfo, out io.Writer)
- func PrintCreateInstanceInfo(contents []InstanceInfo, out io.Writer)
- func PrintCustomInfos(customInfos []CustomInfo, out io.Writer)
- func PrintEnvGroupInfo(groups []DevopsGroupInfo, out io.Writer)
- func PrintEnvInfo(envs []EnvInfo, out io.Writer)
- func PrintEnvInstanceInfo(contents []InstanceInfo, out io.Writer)
- func PrintGenericCertInfo(genericCertInfos []GenericCertInfo, out io.Writer)
- func PrintIngressInfo(contents []DevOpsIngressInfo, out io.Writer)
- func PrintInstanceResources(resources InstanceResources, out io.Writer)
- func PrintNodeInfo(nodeInfos []NodeInfo, out io.Writer)
- func PrintOrgInfo(orgInfos []OrganizationInfo, out io.Writer)
- func PrintProInfo(proInfos []ProjectInfo, out io.Writer)
- func PrintPvInfos(pvInfos []PvInfo, out io.Writer)
- func PrintPvcInfos(pvcInfos []PvcInfo, out io.Writer)
- func PrintSecretInfos(secretInfos []SecretInfo, out io.Writer)
- func PrintServiceInfo(contents []DevOpsServiceInfo, out io.Writer)
- func PrintValueInfo(valueInfos []ValueInfo, out io.Writer)
- type App
- type AppInfo
- type AppPostInfo
- type AppVersion
- type AppVersionInfo
- type AppVersions
- type ApplicationInstanceDTO
- type Apps
- type CertAcme
- type CertConfig
- type CertSpec
- type Certificate
- type Certification
- type CertificationInfo
- type CertificationPostInfo
- type Certifications
- type Cluster
- type ClusterInfo
- type ClusterPostInfo
- type Clusters
- type ConfigMap
- type ConfigMapInfo
- type ConfigMapPostInfo
- type ConfigMaps
- type Custom
- type CustomInfo
- type Customs
- type DaemonSetDTOS
- type DeploymentDTOS
- type DevOpsEnv
- type DevOpsEnvs
- type DevOpsIngressInfo
- type DevOpsService
- type DevOpsServiceInfo
- type DevopsGroupInfo
- type DevopsIngress
- type EndPointPortInfo
- type EnvInfo
- type EnvPostInfo
- type EnvSyncStatus
- type Error
- type ExistCert
- type GenericCert
- type GenericCertInfo
- type GenericCerts
- type IngressDTOS
- type IngressPath
- type IngressPostInfo
- type Ingresss
- type InstanceInfo
- type InstancePostInfo
- type InstanceResources
- type InstanceValues
- type Instances
- type Metadata
- type Node
- type NodeInfo
- type Nodes
- type Organization
- type OrganizationInfo
- type PersistentVolumeClaimDTOS
- type PodDTOS
- type Project
- type ProjectInfo
- type Pv
- type PvInfo
- type PvPostInfo
- type Pvc
- type PvcInfo
- type PvcPostInfo
- type Pvcs
- type Pvs
- type Release
- type ReplicaSetDTOS
- type Secret
- type SecretInfo
- type SecretPostInfo
- type Secrets
- type ServiceDTOS
- type ServicePort
- type ServicePostInfo
- type Services
- type Spec
- type StatefulSetDTOS
- type Token
- type UserAttrInfo
- type UserInfo
- type Value
- type ValueInfo
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintAppInfo ¶
func PrintAppVersionInfo ¶
func PrintAppVersionInfo(appVersionInfos []AppVersionInfo, out io.Writer)
func PrintCertificationInfo ¶
func PrintCertificationInfo(certificationInfo []CertificationInfo, out io.Writer)
func PrintClusterInfo ¶
func PrintClusterInfo(clusterInfos []ClusterInfo, out io.Writer)
func PrintConfigMapInfos ¶
func PrintConfigMapInfos(configMapInfos []ConfigMapInfo, out io.Writer)
func PrintCreateInstanceInfo ¶
func PrintCreateInstanceInfo(contents []InstanceInfo, out io.Writer)
func PrintCustomInfos ¶
func PrintCustomInfos(customInfos []CustomInfo, out io.Writer)
func PrintEnvGroupInfo ¶
func PrintEnvGroupInfo(groups []DevopsGroupInfo, out io.Writer)
func PrintEnvInfo ¶
func PrintEnvInstanceInfo ¶
func PrintEnvInstanceInfo(contents []InstanceInfo, out io.Writer)
func PrintGenericCertInfo ¶
func PrintGenericCertInfo(genericCertInfos []GenericCertInfo, out io.Writer)
func PrintIngressInfo ¶
func PrintIngressInfo(contents []DevOpsIngressInfo, out io.Writer)
func PrintInstanceResources ¶
func PrintInstanceResources(resources InstanceResources, out io.Writer)
func PrintNodeInfo ¶
func PrintOrgInfo ¶
func PrintOrgInfo(orgInfos []OrganizationInfo, out io.Writer)
func PrintProInfo ¶
func PrintProInfo(proInfos []ProjectInfo, out io.Writer)
func PrintPvInfos ¶
func PrintPvcInfos ¶
func PrintSecretInfos ¶
func PrintSecretInfos(secretInfos []SecretInfo, out io.Writer)
func PrintServiceInfo ¶
func PrintServiceInfo(contents []DevOpsServiceInfo, out io.Writer)
func PrintValueInfo ¶
Types ¶
type App ¶
type App struct { ID int `json:"id"` Name string `json:"name"` Code string `json:"code"` ProjectID int `json:"projectId"` GitlabProjectId int `json:"gitlabProjectId"` RepoURL string `json:"repoUrl"` PublishLevel interface{} `json:"publishLevel"` Contributor interface{} `json:"contributor"` Description interface{} `json:"description"` SonarURL interface{} `json:"sonarUrl"` Type string `json:"type"` Synchro bool `json:"synchro"` Fail interface{} `json:"fail"` Active bool `json:"active"` }
type AppPostInfo ¶
type AppVersion ¶
type AppVersionInfo ¶
type AppVersions ¶
type AppVersions struct { Pages int `json:"pages"` Size int `json:"size"` Total int `json:"total"` List []AppVersion `json:"list"` }
type ApplicationInstanceDTO ¶
type ApplicationInstanceDTO struct { ID int `json:"id"` Code string `json:"code"` Status string `json:"status"` PodCount int `json:"podCount"` PodRunningCount int `json:"podRunningCount"` AppServiceId int `json:"appServiceId"` AppServiceName string `json:"appServiceName"` AppServiceVersionId int `json:"AppServiceVersionId"` VersionName string `json:"VersionName"` ObjectVersionNumber int `json:"objectVersionNumber"` Connect bool `json:"connect"` CommandVersion string `json:"commandVersion"` CommandVersionID int `json:"commandVersionId"` CommandType string `json:"commandType"` CommandStatus string `json:"commandStatus"` Error string `json:"error"` ProjectID int `json:"projectId"` ClusterId int `json:"clusterId"` }
type CertAcme ¶
type CertAcme struct {
Config []CertConfig `json:"config"`
}
type CertConfig ¶
type Certificate ¶
type Certification ¶
type Certification struct { ID int `json:"id"` OrganizationID int `json:"organizationId"` CertName string `json:"certName"` CommonName string `json:"commonName"` Domains []string `json:"domains"` Type string `json:"type"` Status string `json:"status"` ValidFrom string `json:"validFrom"` ValidUntil string `json:"validUntil"` EnvID int `json:"envId"` EnvName string `json:"envName"` EnvConnected bool `json:"envConnected"` CommandType string `json:"commandType"` CommandStatus string `json:"commandStatus"` Error string `json:"error"` SkipCheckProjectPermission bool `json:"skipCheckProjectPermission"` }
type CertificationInfo ¶
type CertificationPostInfo ¶
type Certifications ¶
type Certifications struct { Pages int `json:"pages"` Size int `json:"size"` Total int `json:"total"` List []Certification `json:"list"` }
type ClusterInfo ¶
type ClusterPostInfo ¶
type ConfigMap ¶
type ConfigMap struct { Id int `json:"id"` EnvId int `json:"envId"` CommandStatus string `json:"commandStatus"` EnvCode string `json:"envCode"` EnvStatus string `json:"envStatus"` Error string `json:"error"` Name string `json:"name"` Key []string `json:"key"` Value []string `json:"value"` Description string `json:"description"` CreationDate string `json:"creationDate"` LastUpdateDate string `json:"lastUpdateDate"` }
type ConfigMapInfo ¶
type ConfigMapPostInfo ¶
type ConfigMaps ¶
type Custom ¶
type Custom struct { Id int `json:"id"` ProjectId int `json:"projectId"` EnvId int `json:"envId"` ClusterId int `json:"clusterId"` CreationDate string `json:"creationDate"` LastUpdateDate string `json:"lastUpdateDate"` EnvCode string `json:"EnvCode"` ResourceContent string `json:"resourceContent"` K8sKind string `json:"k8sKind"` CommandStatus string `json:"commandStatus"` Name string `json:"name"` Description string `json:"description"` }
type CustomInfo ¶
type DaemonSetDTOS ¶
type DeploymentDTOS ¶
type DevOpsEnv ¶
type DevOpsEnv struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Code string `json:"code"` GitlabEnvProjectId int `json:"gitlabEnvProjectId"` ClusterName string `json:"clusterName"` ClusterID int `json:"clusterId"` DevopsEnvGroupID int `json:"devopsEnvGroupId"` Permission bool `json:"permission"` Connect bool `json:"connect"` Synchro bool `json:"synchro"` Failed bool `json:"failed"` Active bool `json:"active"` }
type DevOpsEnvs ¶
type DevOpsIngressInfo ¶
type DevOpsService ¶
type DevOpsService struct { ID int `json:"id"` Name string `json:"name"` Status string `json:"status"` EnvID int `json:"envId"` EnvName string `json:"envName"` Type string `json:"type"` EnvStatus bool `json:"envStatus"` AppServiceId int `json:"appServiceId"` AppServiceProjectId int `json:"appServiceProjectId"` AppServiceName string `json:"appServiceName"` Dns string `json:"dns"` Labels map[string]string `json:"labels"` CommandType string `json:"commandType"` CommandStatus string `json:"commandStatus"` Error string `json:"error"` LoadBalanceIP string `json:"loadBalanceIp"` Target struct { Instances []ApplicationInstanceDTO `json:"instances"` Labels map[string]string `json:"labels"` EndPoints map[string][]map[string]interface{} `json:"endPoints"` } `json:"target"` Config struct { ExternalIps interface{} `json:"externalIps"` Ports []struct { Name string `json:"name"` Port int `json:"port"` NodePort interface{} `json:"nodePort"` Protocol string `json:"protocol"` TargetPort string `json:"targetPort"` } `json:"ports"` } `json:"config"` }
type DevOpsServiceInfo ¶
type DevopsGroupInfo ¶
type DevopsIngress ¶
type DevopsIngress struct { ID int `json:"id"` AppServiceId int `json:"appServiceId"` Domain string `json:"domain"` Name string `json:"name"` EnvID int `json:"envId"` EnvName string `json:"envName"` EnvStatus bool `json:"envStatus"` Status string `json:"status"` CertID int `json:"certId"` CertName string `json:"certName"` CertStatus string `json:"certStatus"` PathList []IngressPath `json:"pathList"` CommandType string `json:"commandType"` CommandStatus string `json:"commandStatus"` Error string `json:"error"` Usable bool `json:"usable"` }
type EndPointPortInfo ¶
type EnvPostInfo ¶
type EnvSyncStatus ¶
type GenericCert ¶
type GenericCertInfo ¶
type GenericCerts ¶
type GenericCerts struct { Pages int `json:"pages"` Size int `json:"size"` Total int `json:"total"` List []GenericCert `json:"list"` }
type IngressDTOS ¶
type IngressPath ¶
type IngressPostInfo ¶
type IngressPostInfo struct { Domain string `json:"domain"` Name string `json:"name"` EnvID int `json:"envId"` CertId int `json:"certId"` PathList []IngressPath `json:"pathList"` }
type Ingresss ¶
type Ingresss struct { Pages int `json:"pages"` Size int `json:"size"` Total int `json:"total"` List []DevopsIngress `json:"list"` }
type InstanceInfo ¶
type InstancePostInfo ¶
type InstanceResources ¶
type InstanceResources struct { StatefulSets []StatefulSetDTOS `json:"statefulSetDTOS"` Ingresses []IngressDTOS `json:"ingressDTOS"` Deployments []DeploymentDTOS `json:"deploymentDTOS"` PersistentVolumeClaims []PersistentVolumeClaimDTOS `json:"persistentVolumeClaimDTOS"` Pods []PodDTOS `json:"podDTOS"` ReplicaSets []ReplicaSetDTOS `json:"replicaSetDTOS"` DaemonSets []DaemonSetDTOS `json:"daemonSetDTOS"` Services []ServiceDTOS `json:"serviceDTOS"` }
type InstanceValues ¶
type InstanceValues struct {
Values string `json:"yaml"`
}
type Instances ¶
type Instances struct { Pages int `json:"pages"` Size int `json:"size"` Total int `json:"total"` List []ApplicationInstanceDTO `json:"list"` }
type Node ¶
type Node struct { Type string `json:"type"` NodeName string `json:"nodeName"` Status string `json:"status"` CreateTime string `json:"createTime"` CPUTotal string `json:"cpuTotal"` CPURequest string `json:"cpuRequest"` CPULimit string `json:"cpuLimit"` CPURequestPercentage string `json:"cpuRequestPercentage"` CPULimitPercentage string `json:"cpuLimitPercentage"` MemoryTotal string `json:"memoryTotal"` MemoryRequest string `json:"memoryRequest"` MemoryLimit string `json:"memoryLimit"` MemoryRequestPercentage string `json:"memoryRequestPercentage"` MemoryLimitPercentage string `json:"memoryLimitPercentage"` PodTotal int `json:"podTotal"` PodCount int `json:"podCount"` PodPercentage string `json:"podPercentage"` }
type Organization ¶
type Organization struct { ID int `json:"id"` Name string `json:"name"` Code string `json:"code"` ObjectVersionNumber int `json:"objectVersionNumber"` Enabled bool `json:"enabled"` ProjectCount interface{} `json:"projectCount"` ImageURL interface{} `json:"imageUrl"` OwnerLoginName interface{} `json:"ownerLoginName"` OwnerRealName interface{} `json:"ownerRealName"` OwnerPhone interface{} `json:"ownerPhone"` OwnerEmail interface{} `json:"ownerEmail"` Projects interface{} `json:"projects"` Roles interface{} `json:"roles"` UserID int `json:"userId"` Address interface{} `json:"address"` Into bool `json:"into"` }
type OrganizationInfo ¶
type Project ¶
type Project struct { ID int `json:"id"` Name string `json:"name"` OrganizationID int `json:"organizationId"` Code string `json:"code"` Enabled bool `json:"enabled"` ObjectVersionNumber int `json:"objectVersionNumber"` TypeName interface{} `json:"typeName"` Type interface{} `json:"type"` ImageURL interface{} `json:"imageUrl"` }
type ProjectInfo ¶
type Pv ¶
type Pv struct { Id int `json:"id"` Name string `json:"name"` Description string `json:"description"` AccessModes string `json:"accessModes"` PvcName string `json:"pvcName"` ClusterName string `json:"clusterName"` Type string `json:"type"` RequestResource string `json:"requestResource"` Status string `json:"status"` }
type PvPostInfo ¶
type PvPostInfo struct { Name string `json:"name"` AccessModes string `json:"accessModes"` ClusterId int `json:"clusterId"` RequestResource string `json:"requestResource"` Type string `json:"type"` SkipCheckProjectPermission bool `json:"skipCheckProjectPermission,bool"` ValueConfig string `json:"valueConfig"` ProjectIds []int `json:"projectIds"` }
type Pvc ¶
type Pvc struct { Id int `json:"id"` Name string `json:"name"` EnvId int `json:"envId"` ProjectId int `json:"projectId"` PvId int `json:"pvId"` PvName string `json:"pvName"` AccessModes string `json:"accessModes"` Status string `json:"status"` RequestResource string `json:"requestResource"` EnvCode string `json:"EnvCode"` }
type PvcPostInfo ¶
type ReplicaSetDTOS ¶
type Secret ¶
type Secret struct { Id int `json:"id"` EnvId int `json:"envId"` CommandStatus string `json:"commandStatus"` Error string `json:"error"` Name string `json:"name"` Key []string `json:"key"` Value map[string]string `json:"value"` Description string `json:"description"` CreationDate string `json:"creationDate"` LastUpdateDate string `json:"lastUpdateDate"` }
type SecretInfo ¶
type SecretPostInfo ¶
type ServiceDTOS ¶
type ServicePort ¶
type ServicePort struct { Port int32 `json:"port"` TargetPort intstr.IntOrString `json:"targetPort"` NodePort int32 `json:"nodePort"` }
type ServicePostInfo ¶
type ServicePostInfo struct { Name string `json:"name"` AppID int `json:"appId"` Instances []string `json:"instances"` EnvID int `json:"envId"` ExternalIP string `json:"externalIp"` Ports []ServicePort `json:"ports"` Type string `json:"type"` EndPoints map[string][]EndPointPortInfo `json:"endPoints"` Selectors map[string]string `json:"selectors"` }
type Services ¶
type Services struct { Pages int `json:"pages"` Size int `json:"size"` Total int `json:"total"` List []DevOpsService `json:"list"` }
type StatefulSetDTOS ¶
type UserAttrInfo ¶
type UserInfo ¶
type UserInfo struct { ID int `json:"id"` OrganizationID int `json:"organizationId"` OrganizationName string `json:"organizationName"` OrganizationCode string `json:"organizationCode"` LoginName string `json:"loginName"` Email string `json:"email"` RealName string `json:"realName"` Phone string `json:"phone"` InternationalTelCode string `json:"internationalTelCode"` ImageURL string `json:"imageUrl"` Language string `json:"language"` TimeZone string `json:"timeZone"` Locked bool `json:"locked"` Ldap bool `json:"ldap"` Enabled bool `json:"enabled"` Admin bool `json:"admin"` ObjectVersionNumber int `json:"objectVersionNumber"` }
type Value ¶
type Value struct { Id int `json:"id"` Value string `json:"value"` ProjectId int `json:"projectId"` EnvId int `json:"envId"` AppServiceId int `json:"appServiceId"` Name string `json:"name"` Description string `json:"description"` EnvName string `json:"envName"` AppServiceName string `json:"AppServiceName"` }
Click to show internal directories.
Click to hide internal directories.