Documentation
¶
Index ¶
- Constants
- func CreateCaDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func CreateCaService(clusterId string, namespaceId string, chainId string, caName string) ([]byte, error)
- func CreateDeployment(clusterId string, namespaceId string, deployObj interface{}) ([]byte, error)
- func CreateKafkaDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func CreateKafkaService(clusterId string, namespaceId string, chainId string, kafkaName string) ([]byte, error)
- func CreateNamespace(clusterId string, namespaceId string) ([]byte, error)
- func CreateOrderKafkaDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func CreateOrderRaftDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func CreateOrderService(clusterId string, namespaceId string, chainId string, orderName string) ([]byte, error)
- func CreatePeerDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func CreatePeerService(clusterId string, namespaceId string, chainId string, peerName string) ([]byte, error)
- func CreateService(clusterId string, namespaceId string, serviceObj interface{}) ([]byte, error)
- func CreateToolsDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func CreateZookeeperDeployment(clusterId string, node string, namespaceId string, chainId string, zkId string, ...) ([]byte, error)
- func CreateZookeeperService(clusterId string, namespaceId string, chainId string, zkName string) ([]byte, error)
- func DeleteDeployment(clusterId string, namespaceId string, deployName string) ([]byte, error)
- func DeleteNamespace(clusterId string, namespaceId string) ([]byte, error)
- func DeleteService(clusterId string, namespaceId string, serviceName string) ([]byte, error)
- func OrgAddPatchToolsDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- func PatchDeployment(clusterId string, namespaceId string, deploymentName string, ...) ([]byte, error)
- func PatchToolsDeployment(clusterId string, node string, namespaceId string, chainId string, ...) ([]byte, error)
- type AffinitySpecTemplateSt
- type CaDeployMent
- type CaService
- type ContainerSpecTemplateSt
- type DeployResult
- type EmptyDirVolumeSpecTemplateSt
- type EnvContainerSpecTemplateSt
- type ExeAffinitySpecTemplateSt
- type HostPathVolumeSpecTemplateSt
- type ImagePullSecretSpecTemplateSt
- type KafkaDeployMent
- type KafkaService
- type LabelsSt
- type MatchPreferenceExeAffinitySpecTemplateSt
- type MetadataDeployMent
- type MetadataService
- type MetadataTemplateSt
- type NamespaceDeploy
- type NamespaceDeployResult
- type NamespaceDeployResultError
- type NfsVolumeSpecTemplateSt
- type NodeAffinityAffinitySpecTemplateSt
- type NodeSelectorSpecTemplateSt
- type OrderDeployMent
- type OrderService
- type OrgAddToolsDeploymentPara
- type PathToolsDeploymentPara
- type PeerDeployMent
- type PeerDeploymentPara
- type PeerService
- type PortContainerSpecTemplateSt
- type PortSpecService
- type PreferenceExeAffinitySpecTemplateSt
- type RequestsResourceContainerSpecTemplateSt
- type ResourceContainerSpecTemplateSt
- type SelectorSpecService
- type SelectorSt
- type SpecService
- type SpecSt
- type SpecTemplateSt
- type StrategySt
- type TemplateSt
- type ToolsDeployMent
- type ToolsDeploymentPara
- type VolumeContainerSpecTemplateSt
- type VolumeSpecTemplateHostSt
- type VolumeSpecTemplateSt
- type ZookeeperDeployMent
- type ZookeeperService
Constants ¶
View Source
const (
KUBERNETES_DEPLOY_FAILED string = "Failure"
)
Variables ¶
This section is empty.
Functions ¶
func CreateCaDeployment ¶
func CreateCaService ¶
func CreateDeployment ¶
func CreateKafkaDeployment ¶
func CreateKafkaService ¶
func CreateOrderService ¶
func CreatePeerDeployment ¶
func CreatePeerService ¶
func CreateService ¶
func CreateToolsDeployment ¶
func CreateZookeeperService ¶
func DeleteDeployment ¶
func DeleteService ¶
func PatchDeployment ¶
func PatchToolsDeployment ¶
Types ¶
type AffinitySpecTemplateSt ¶
type AffinitySpecTemplateSt struct {
NodeAffinity NodeAffinityAffinitySpecTemplateSt `json:"nodeAffinity"`
}
type CaDeployMent ¶
type CaDeployMent struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataDeployMent `json:"metadata"` Spec SpecSt `json:"spec"` }
type CaService ¶
type CaService struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataService `json:"metadata"` Spec SpecService `json:"spec"` }
type ContainerSpecTemplateSt ¶
type ContainerSpecTemplateSt struct { Name string `json:"name"` Image string `json:"image"` ImagePullPolicy string `json:"imagePullPolicy"` Resources ResourceContainerSpecTemplateSt `json:"resources"` Args []string `json:"args"` Env []EnvContainerSpecTemplateSt `json:"env"` Ports []PortContainerSpecTemplateSt `json:"ports"` VolumeMounts []VolumeContainerSpecTemplateSt `json:"volumeMounts"` WorkingDir string `json:"workingDir,omitempty"` Command []string `json:"command,omitempty"` Tty bool `json:"tty,omitempty"` Stdin bool `json:"stdin,omitempty"` }
type DeployResult ¶
type DeployResult struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata interface{} `json:"metadata"` Status interface{} `json:"status"` Message string `json:"message"` Reason string `json:"reason"` Details struct { Name string `json:"name"` Group string `json:"group"` Kind string `json:"kind"` } `json:"details"` Code int `json:"code"` }
type EmptyDirVolumeSpecTemplateSt ¶
type EmptyDirVolumeSpecTemplateSt struct { }
type ExeAffinitySpecTemplateSt ¶
type ExeAffinitySpecTemplateSt struct { Weight int `json:"weight"` Preference PreferenceExeAffinitySpecTemplateSt `json:"preference"` }
type HostPathVolumeSpecTemplateSt ¶
type HostPathVolumeSpecTemplateSt struct {
Path string `json:"path"`
}
type ImagePullSecretSpecTemplateSt ¶
type ImagePullSecretSpecTemplateSt struct {
Name string `json:"name"`
}
type KafkaDeployMent ¶
type KafkaDeployMent struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataDeployMent `json:"metadata"` Spec SpecSt `json:"spec"` }
type KafkaService ¶
type KafkaService struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataService `json:"metadata"` Spec SpecService `json:"spec"` }
type MetadataDeployMent ¶
type MetadataService ¶
type MetadataService struct {
Name string `json:"name"`
}
type MetadataTemplateSt ¶
type MetadataTemplateSt struct {
Labels LabelsSt `json:"labels"`
}
type NamespaceDeploy ¶
type NamespaceDeployResult ¶
type NamespaceDeployResult struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata struct { Name string `json:"name"` SelfLink string `json:"selfLink"` UID string `json:"uid"` ResourceVersion string `json:"resourceVersion"` CreationTimestamp time.Time `json:"creationTimestamp"` } `json:"metadata"` Spec struct { Finalizers []string `json:"finalizers"` } `json:"spec"` Status struct { Phase string `json:"phase"` } `json:"status"` }
type NfsVolumeSpecTemplateSt ¶
type NodeAffinityAffinitySpecTemplateSt ¶
type NodeAffinityAffinitySpecTemplateSt struct {
PreferredDuringSchedulingIgnoredDuringExecution []ExeAffinitySpecTemplateSt `json:"preferredDuringSchedulingIgnoredDuringExecution"`
}
type NodeSelectorSpecTemplateSt ¶
type NodeSelectorSpecTemplateSt struct {
KubernetesIoHostname string `json:"kubernetes.io/hostname"`
}
type OrderDeployMent ¶
type OrderDeployMent struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataDeployMent `json:"metadata"` Spec SpecSt `json:"spec"` }
type OrderService ¶
type OrderService struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataService `json:"metadata"` Spec SpecService `json:"spec"` }
type PathToolsDeploymentPara ¶
type PeerDeployMent ¶
type PeerDeployMent struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataDeployMent `json:"metadata"` Spec SpecSt `json:"spec"` }
type PeerDeploymentPara ¶
type PeerService ¶
type PeerService struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataService `json:"metadata"` Spec SpecService `json:"spec"` }
type PortContainerSpecTemplateSt ¶
type PortContainerSpecTemplateSt struct {
ContainerPort int `json:"containerPort"`
}
type PortSpecService ¶
type PreferenceExeAffinitySpecTemplateSt ¶
type PreferenceExeAffinitySpecTemplateSt struct {
MatchExpressions []MatchPreferenceExeAffinitySpecTemplateSt `json:"matchExpressions"`
}
type ResourceContainerSpecTemplateSt ¶
type ResourceContainerSpecTemplateSt struct {
Requests RequestsResourceContainerSpecTemplateSt `json:"requests"`
}
type SelectorSpecService ¶
type SelectorSpecService struct {
App string `json:"app"`
}
type SelectorSt ¶
type SelectorSt struct {
MatchLabels LabelsSt `json:"matchLabels"`
}
type SpecService ¶
type SpecService struct { Type string `json:"type"` Ports []PortSpecService `json:"ports"` Selector SelectorSpecService `json:"selector"` }
type SpecSt ¶
type SpecSt struct { Selector SelectorSt `json:"selector,omitempty"` Replicas int `json:"replicas"` Strategy StrategySt `json:"strategy"` Template TemplateSt `json:"template"` }
type SpecTemplateSt ¶
type SpecTemplateSt struct { //NodeSelector NodeSelectorSpecTemplateSt `json:"nodeSelector,omitempty"` NodeName string `json:"nodeName,omitempty"` Affinity AffinitySpecTemplateSt `json:"affinity,omitempty"` InitContainers []ContainerSpecTemplateSt `json:"initContainers,omitempty"` Containers []ContainerSpecTemplateSt `json:"containers"` RestartPolicy string `json:"restartPolicy"` ImagePullSecrets []ImagePullSecretSpecTemplateSt `json:"imagePullSecrets"` Hostname string `json:"hostname,omitempty"` Subdomain string `json:"subdomain,omitempty"` HostNetwork string `json:"hostNetwork,omitempty"` DnsPolicy string `json:"dnsPolicy,omitempty"` //Volumes []VolumeSpecTemplateSt `json:"volumes"` Volumes []interface{} `json:"volumes,omitempty"` }
type StrategySt ¶
type StrategySt struct {
Type string `json:"type"`
}
type TemplateSt ¶
type TemplateSt struct { Metadata MetadataTemplateSt `json:"metadata"` Spec SpecTemplateSt `json:"spec"` }
type ToolsDeployMent ¶
type ToolsDeployMent struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataDeployMent `json:"metadata"` Spec SpecSt `json:"spec"` }
type ToolsDeploymentPara ¶
type VolumeSpecTemplateHostSt ¶
type VolumeSpecTemplateHostSt struct { Name string `json:"name"` HostPath HostPathVolumeSpecTemplateSt `json:"hostPath"` }
type VolumeSpecTemplateSt ¶
type VolumeSpecTemplateSt struct { Name string `json:"name"` //EmptyDir EmptyDirVolumeSpecTemplateSt `json:"emptyDir,omitempty"` Nfs NfsVolumeSpecTemplateSt `json:"nfs,omitempty"` }
type ZookeeperDeployMent ¶
type ZookeeperDeployMent struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataDeployMent `json:"metadata"` Spec SpecSt `json:"spec"` }
type ZookeeperService ¶
type ZookeeperService struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata MetadataService `json:"metadata"` Spec SpecService `json:"spec"` }
Click to show internal directories.
Click to hide internal directories.