1
0
mirror of https://github.com/rancher/types.git synced 2025-09-13 05:26:11 +00:00

generate changes

This commit is contained in:
Daishan Peng
2018-03-19 09:41:22 -07:00
committed by Darren Shepherd
parent 8ad7a4777f
commit ed47e37c35
25 changed files with 1828 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
package compose
import (
clusterClient "github.com/rancher/types/client/cluster/v3"
managementClient "github.com/rancher/types/client/management/v3"
projectClient "github.com/rancher/types/client/project/v3"
)
type Config struct {
Version string `yaml:"version,omitempty"`
// Management Client
NodePools map[string]managementClient.NodePool `json:"nodePools,omitempty" yaml:"nodePools,omitempty"`
Nodes map[string]managementClient.Node `json:"nodes,omitempty" yaml:"nodes,omitempty"`
NodeDrivers map[string]managementClient.NodeDriver `json:"nodeDrivers,omitempty" yaml:"nodeDrivers,omitempty"`
NodeTemplates map[string]managementClient.NodeTemplate `json:"nodeTemplates,omitempty" yaml:"nodeTemplates,omitempty"`
Projects map[string]managementClient.Project `json:"projects,omitempty" yaml:"projects,omitempty"`
GlobalRoles map[string]managementClient.GlobalRole `json:"globalRoles,omitempty" yaml:"globalRoles,omitempty"`
GlobalRoleBindings map[string]managementClient.GlobalRoleBinding `json:"globalRoleBindings,omitempty" yaml:"globalRoleBindings,omitempty"`
RoleTemplates map[string]managementClient.RoleTemplate `json:"roleTemplates,omitempty" yaml:"roleTemplates,omitempty"`
PodSecurityPolicyTemplates map[string]managementClient.PodSecurityPolicyTemplate `json:"podSecurityPolicyTemplates,omitempty" yaml:"podSecurityPolicyTemplates,omitempty"`
ClusterRoleTemplateBindings map[string]managementClient.ClusterRoleTemplateBinding `json:"clusterRoleTemplateBindings,omitempty" yaml:"clusterRoleTemplateBindings,omitempty"`
ProjectRoleTemplateBindings map[string]managementClient.ProjectRoleTemplateBinding `json:"projectRoleTemplateBindings,omitempty" yaml:"projectRoleTemplateBindings,omitempty"`
Clusters map[string]managementClient.Cluster `json:"clusters,omitempty" yaml:"clusters,omitempty"`
ClusterEvents map[string]managementClient.ClusterEvent `json:"clusterEvents,omitempty" yaml:"clusterEvents,omitempty"`
ClusterRegistrationTokens map[string]managementClient.ClusterRegistrationToken `json:"clusterRegistrationTokens,omitempty" yaml:"clusterRegistrationTokens,omitempty"`
Catalogs map[string]managementClient.Catalog `json:"catalogs,omitempty" yaml:"catalogs,omitempty"`
Templates map[string]managementClient.Template `json:"templates,omitempty" yaml:"templates,omitempty"`
TemplateVersions map[string]managementClient.TemplateVersion `json:"templateVersions,omitempty" yaml:"templateVersions,omitempty"`
Groups map[string]managementClient.Group `json:"groups,omitempty" yaml:"groups,omitempty"`
GroupMembers map[string]managementClient.GroupMember `json:"groupMembers,omitempty" yaml:"groupMembers,omitempty"`
Users map[string]managementClient.User `json:"users,omitempty" yaml:"users,omitempty"`
Tokens map[string]managementClient.Token `json:"tokens,omitempty" yaml:"tokens,omitempty"`
DynamicSchemas map[string]managementClient.DynamicSchema `json:"dynamicSchemas,omitempty" yaml:"dynamicSchemas,omitempty"`
Preferences map[string]managementClient.Preference `json:"preferences,omitempty" yaml:"preferences,omitempty"`
ClusterLoggings map[string]managementClient.ClusterLogging `json:"clusterLoggings,omitempty" yaml:"clusterLoggings,omitempty"`
ProjectLoggings map[string]managementClient.ProjectLogging `json:"projectLoggings,omitempty" yaml:"projectLoggings,omitempty"`
ListenConfigs map[string]managementClient.ListenConfig `json:"listenConfigs,omitempty" yaml:"listenConfigs,omitempty"`
Settings map[string]managementClient.Setting `json:"settings,omitempty" yaml:"settings,omitempty"`
Notifiers map[string]managementClient.Notifier `json:"notifiers,omitempty" yaml:"notifiers,omitempty"`
ClusterAlerts map[string]managementClient.ClusterAlert `json:"clusterAlerts,omitempty" yaml:"clusterAlerts,omitempty"`
ProjectAlerts map[string]managementClient.ProjectAlert `json:"projectAlerts,omitempty" yaml:"projectAlerts,omitempty"`
ClusterPipelines map[string]managementClient.ClusterPipeline `json:"clusterPipelines,omitempty" yaml:"clusterPipelines,omitempty"`
SourceCodeCredentials map[string]managementClient.SourceCodeCredential `json:"sourceCodeCredentials,omitempty" yaml:"sourceCodeCredentials,omitempty"`
Pipelines map[string]managementClient.Pipeline `json:"pipelines,omitempty" yaml:"pipelines,omitempty"`
PipelineExecutions map[string]managementClient.PipelineExecution `json:"pipelineExecutions,omitempty" yaml:"pipelineExecutions,omitempty"`
PipelineExecutionLogs map[string]managementClient.PipelineExecutionLog `json:"pipelineExecutionLogs,omitempty" yaml:"pipelineExecutionLogs,omitempty"`
SourceCodeRepositorys map[string]managementClient.SourceCodeRepository `json:"sourceCodeRepositories,omitempty" yaml:"sourceCodeRepositories,omitempty"`
GlobalComposeConfigs map[string]managementClient.GlobalComposeConfig `json:"globalComposeConfigs,omitempty" yaml:"globalComposeConfigs,omitempty"`
ClusterComposeConfigs map[string]managementClient.ClusterComposeConfig `json:"clusterComposeConfigs,omitempty" yaml:"clusterComposeConfigs,omitempty"`
// Cluster Client
Namespaces map[string]clusterClient.Namespace `json:"namespaces,omitempty" yaml:"namespaces,omitempty"`
PersistentVolumes map[string]clusterClient.PersistentVolume `json:"persistentVolumes,omitempty" yaml:"persistentVolumes,omitempty"`
StorageClasss map[string]clusterClient.StorageClass `json:"storageClasses,omitempty" yaml:"storageClasses,omitempty"`
// Project Client
PersistentVolumeClaims map[string]projectClient.PersistentVolumeClaim `json:"persistentVolumeClaims,omitempty" yaml:"persistentVolumeClaims,omitempty"`
Ingresss map[string]projectClient.Ingress `json:"ingresses,omitempty" yaml:"ingresses,omitempty"`
Secrets map[string]projectClient.Secret `json:"secrets,omitempty" yaml:"secrets,omitempty"`
ServiceAccountTokens map[string]projectClient.ServiceAccountToken `json:"serviceAccountTokens,omitempty" yaml:"serviceAccountTokens,omitempty"`
DockerCredentials map[string]projectClient.DockerCredential `json:"dockerCredentials,omitempty" yaml:"dockerCredentials,omitempty"`
Certificates map[string]projectClient.Certificate `json:"certificates,omitempty" yaml:"certificates,omitempty"`
BasicAuths map[string]projectClient.BasicAuth `json:"basicAuths,omitempty" yaml:"basicAuths,omitempty"`
SSHAuths map[string]projectClient.SSHAuth `json:"sshAuths,omitempty" yaml:"sshAuths,omitempty"`
NamespacedSecrets map[string]projectClient.NamespacedSecret `json:"namespacedSecrets,omitempty" yaml:"namespacedSecrets,omitempty"`
NamespacedServiceAccountTokens map[string]projectClient.NamespacedServiceAccountToken `json:"namespacedServiceAccountTokens,omitempty" yaml:"namespacedServiceAccountTokens,omitempty"`
NamespacedDockerCredentials map[string]projectClient.NamespacedDockerCredential `json:"namespacedDockerCredentials,omitempty" yaml:"namespacedDockerCredentials,omitempty"`
NamespacedCertificates map[string]projectClient.NamespacedCertificate `json:"namespacedCertificates,omitempty" yaml:"namespacedCertificates,omitempty"`
NamespacedBasicAuths map[string]projectClient.NamespacedBasicAuth `json:"namespacedBasicAuths,omitempty" yaml:"namespacedBasicAuths,omitempty"`
NamespacedSSHAuths map[string]projectClient.NamespacedSSHAuth `json:"namespacedSshAuths,omitempty" yaml:"namespacedSshAuths,omitempty"`
Services map[string]projectClient.Service `json:"services,omitempty" yaml:"services,omitempty"`
DNSRecords map[string]projectClient.DNSRecord `json:"dnsRecords,omitempty" yaml:"dnsRecords,omitempty"`
Pods map[string]projectClient.Pod `json:"pods,omitempty" yaml:"pods,omitempty"`
Deployments map[string]projectClient.Deployment `json:"deployments,omitempty" yaml:"deployments,omitempty"`
ReplicationControllers map[string]projectClient.ReplicationController `json:"replicationControllers,omitempty" yaml:"replicationControllers,omitempty"`
ReplicaSets map[string]projectClient.ReplicaSet `json:"replicaSets,omitempty" yaml:"replicaSets,omitempty"`
StatefulSets map[string]projectClient.StatefulSet `json:"statefulSets,omitempty" yaml:"statefulSets,omitempty"`
DaemonSets map[string]projectClient.DaemonSet `json:"daemonSets,omitempty" yaml:"daemonSets,omitempty"`
Jobs map[string]projectClient.Job `json:"jobs,omitempty" yaml:"jobs,omitempty"`
CronJobs map[string]projectClient.CronJob `json:"cronJobs,omitempty" yaml:"cronJobs,omitempty"`
Workloads map[string]projectClient.Workload `json:"workloads,omitempty" yaml:"workloads,omitempty"`
Apps map[string]projectClient.App `json:"apps,omitempty" yaml:"apps,omitempty"`
ConfigMaps map[string]projectClient.ConfigMap `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
NamespaceComposeConfigs map[string]projectClient.NamespaceComposeConfig `json:"namespaceComposeConfigs,omitempty" yaml:"namespaceComposeConfigs,omitempty"`
}