Documentation
¶
Index ¶
- type CloudProvider
- type ClusterAppConfig
- type ClusterPluginConfig
- type ContainerRegistry
- type CrossplaneProject
- type CrossplaneProvider
- type GitProject
- type ManagedCluster
- type PluginStoreConfig
- type PluginStoreData
- type Store
- func (a *Store) AddCloudProvider(config *captenpluginspb.CloudProvider) error
- func (a *Store) AddContainerRegistry(config *captenpluginspb.ContainerRegistry) error
- func (a *Store) AddCrossplaneProvider(crossplaneProvider *model.CrossplaneProvider) error
- func (a *Store) AddGitProject(config *captenpluginspb.GitProject) error
- func (a *Store) AddManagedCluster(managedCluster *captenpluginspb.ManagedCluster) error
- func (a *Store) DeleteAppConfigByReleaseName(releaseName string) error
- func (a *Store) DeleteCloudProviderById(id string) error
- func (a *Store) DeleteClusterPluginConfig(pluginName string) error
- func (a *Store) DeleteContainerRegistryById(id string) error
- func (a *Store) DeleteCrossplaneProject(id string) error
- func (a *Store) DeleteCrossplaneProviderById(id string) error
- func (a *Store) DeleteGitProjectById(id string) error
- func (a *Store) DeleteManagedClusterById(id string) error
- func (a *Store) DeletePluginStoreConfig(storeType pluginstorepb.StoreType) error
- func (a *Store) DeletePluginStoreData(storeType pluginstorepb.StoreType, gitProjectId, pluginName string) error
- func (a *Store) DeleteTektonProject(id string) error
- func (a *Store) GetAllApps() ([]*agentpb.SyncAppData, error)
- func (a *Store) GetAllClusterPluginConfigs() ([]*clusterpluginspb.Plugin, error)
- func (a *Store) GetAppConfig(appReleaseName string) (*agentpb.SyncAppData, error)
- func (a *Store) GetCloudProviderForID(id string) (*captenpluginspb.CloudProvider, error)
- func (a *Store) GetCloudProviders() ([]*captenpluginspb.CloudProvider, error)
- func (a *Store) GetCloudProvidersByLabels(searchLabels []string) ([]*captenpluginspb.CloudProvider, error)
- func (a *Store) GetCloudProvidersByLabelsAndCloudType(searchLabels []string, cloudType string) ([]*captenpluginspb.CloudProvider, error)
- func (a *Store) GetClusterPluginConfig(pluginName string) (*clusterpluginspb.Plugin, error)
- func (a *Store) GetContainerRegistries() ([]*captenpluginspb.ContainerRegistry, error)
- func (a *Store) GetContainerRegistriesByLabels(searchLabels []string) ([]*captenpluginspb.ContainerRegistry, error)
- func (a *Store) GetContainerRegistryForID(id string) (*captenpluginspb.ContainerRegistry, error)
- func (a *Store) GetCrossplanProviderByCloudType(cloudType string) (*captenpluginspb.CrossplaneProvider, error)
- func (a *Store) GetCrossplanProviderById(id string) (*captenpluginspb.CrossplaneProvider, error)
- func (a *Store) GetCrossplaneProject() (*model.CrossplaneProject, error)
- func (a *Store) GetCrossplaneProjectForID(id string) (*model.CrossplaneProject, error)
- func (a *Store) GetCrossplaneProviders() ([]*captenpluginspb.CrossplaneProvider, error)
- func (a *Store) GetGitProjectForID(id string) (*captenpluginspb.GitProject, error)
- func (a *Store) GetGitProjects() ([]*captenpluginspb.GitProject, error)
- func (a *Store) GetGitProjectsByLabels(searchLabels []string) ([]*captenpluginspb.GitProject, error)
- func (a *Store) GetManagedClusterForID(id string) (*captenpluginspb.ManagedCluster, error)
- func (a *Store) GetManagedClusters() ([]*captenpluginspb.ManagedCluster, error)
- func (a *Store) GetPluginStoreConfig(storeType pluginstorepb.StoreType) (*pluginstorepb.PluginStoreConfig, error)
- func (a *Store) GetPluginStoreData(storeType pluginstorepb.StoreType, gitProjectId, pluginName string) (*pluginstorepb.PluginData, error)
- func (a *Store) GetPlugins(gitProjectId string) ([]*pluginstorepb.Plugin, error)
- func (a *Store) GetTektonProject() (*model.TektonProject, error)
- func (a *Store) GetTektonProjectForID(id string) (*model.TektonProject, error)
- func (a *Store) UpdateCrossplaneProvider(provider *model.CrossplaneProvider) error
- func (a *Store) UpsertAppConfig(appData *agentpb.SyncAppData) error
- func (a *Store) UpsertCloudProvider(config *captenpluginspb.CloudProvider) error
- func (a *Store) UpsertClusterPluginConfig(pluginConfig *clusterpluginspb.Plugin) error
- func (a *Store) UpsertContainerRegistry(config *captenpluginspb.ContainerRegistry) error
- func (a *Store) UpsertCrossplaneProject(crossplaneProject *model.CrossplaneProject) error
- func (a *Store) UpsertCrossplaneProvider(crossplaneProvider *model.CrossplaneProvider) error
- func (a *Store) UpsertGitProject(config *captenpluginspb.GitProject) error
- func (a *Store) UpsertManagedCluster(managedCluster *captenpluginspb.ManagedCluster) error
- func (a *Store) UpsertPluginStoreConfig(config *pluginstorepb.PluginStoreConfig) error
- func (a *Store) UpsertPluginStoreData(gitProjectID string, pluginData *pluginstorepb.PluginData) error
- func (a *Store) UpsertTektonProject(tektonProject *model.TektonProject) error
- type StringArray
- type TektonProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider struct { ID uuid.UUID `json:"id" gorm:"column:id;type:uuid"` CloudType string `json:"cloud_type" gorm:"column:cloud_type"` Labels StringArray `json:"labels" gorm:"column:labels;type:text[]"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (CloudProvider) TableName ¶
func (CloudProvider) TableName() string
type ClusterAppConfig ¶
type ClusterAppConfig struct { ReleaseName string `json:"release_name" gorm:"column:release_name;primaryKey"` AppName string `json:"app_name" gorm:"column:app_name"` PluginName string `json:"plugin_name" gorm:"column:plugin_name"` PluginStoreType int `json:"plugin_store_type" gorm:"column:plugin_store_type"` Category string `json:"category" gorm:"column:category"` Description string `json:"description" gorm:"column:description"` RepoURL string `json:"repo_url" gorm:"column:repo_url"` Version string `json:"version" gorm:"column:version"` Namespace string `json:"namespace" gorm:"column:namespace"` UIEndpoint string `json:"ui_endpoint" gorm:"column:ui_endpoint"` UIModuleEndpoint string `json:"ui_module_endpoint" gorm:"column:ui_module_endpoint"` APIEndpoint string `json:"api_endpoint" gorm:"column:api_endpoint"` DefaultApp bool `json:"default_app" gorm:"column:default_app"` PrivilegedNamespace bool `json:"privileged_namespace" gorm:"column:privileged_namespace"` InstallStatus string `json:"install_status" gorm:"column:install_status"` Icon []byte `json:"icon" gorm:"column:icon"` OverrideValues string `json:"override_values" gorm:"column:override_values"` LaunchUIValues string `json:"launch_ui_values" gorm:"column:launch_ui_values"` TemplateValues string `json:"template_values" gorm:"column:template_values"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (ClusterAppConfig) TableName ¶
func (ClusterAppConfig) TableName() string
type ClusterPluginConfig ¶
type ClusterPluginConfig struct { PluginName string `json:"plugin_name" gorm:"column:plugin_name;primaryKey"` PluginStoreType int `json:"plugin_store_type" gorm:"column:plugin_store_type"` Capabilities StringArray `json:"capabilities" gorm:"column:capabilities;type:text[]"` Category string `json:"category" gorm:"column:category"` Description string `json:"description" gorm:"column:description"` ChartName string `json:"chart_name" gorm:"column:chart_name"` ChartRepo string `json:"chart_repo" gorm:"column:chart_repo"` Version string `json:"version" gorm:"column:version"` Namespace string `json:"namespace" gorm:"column:namespace"` UIEndpoint string `json:"ui_endpoint" gorm:"column:ui_endpoint"` APIEndpoint string `json:"api_endpoint" gorm:"column:api_endpoint"` UIModuleEndpoint string `json:"ui_module_endpoint" gorm:"column:ui_module_endpoint"` DefaultApp bool `json:"default_app" gorm:"column:default_app"` PrivilegedNamespace bool `json:"privileged_namespace" gorm:"column:privileged_namespace"` InstallStatus string `json:"install_status" gorm:"column:install_status"` Icon []byte `json:"icon" gorm:"column:icon"` OverrideValues string `json:"override_values" gorm:"column:override_values"` Values string `json:"values" gorm:"column:values"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (ClusterPluginConfig) TableName ¶
func (ClusterPluginConfig) TableName() string
type ContainerRegistry ¶
type ContainerRegistry struct { ID uuid.UUID `json:"id" gorm:"column:id;primaryKey"` RegistryURL string `json:"registry_url" gorm:"column:registry_url"` RegistryType string `json:"registry_type" gorm:"column:registry_type"` Labels StringArray `json:"labels" gorm:"column:labels;type:text[]"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (ContainerRegistry) TableName ¶
func (ContainerRegistry) TableName() string
type CrossplaneProject ¶
type CrossplaneProject struct { ID int `json:"id" gorm:"column:id;primaryKey"` GitProjectID uuid.UUID `json:"git_project_id" gorm:"column:git_project_id"` GitProjectURL string `json:"git_project_url" gorm:"column:git_project_url"` Status string `json:"status" gorm:"column:status"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (CrossplaneProject) TableName ¶
func (CrossplaneProject) TableName() string
type CrossplaneProvider ¶
type CrossplaneProvider struct { ID uuid.UUID `json:"id" gorm:"column:id;primaryKey"` CloudProviderID string `json:"cloud_provider_id" gorm:"column:cloud_provider_id"` ProviderName string `json:"provider_name" gorm:"column:provider_name"` CloudType string `json:"cloud_type" gorm:"column:cloud_type"` Status string `json:"status" gorm:"column:status"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (CrossplaneProvider) TableName ¶
func (CrossplaneProvider) TableName() string
type GitProject ¶
type GitProject struct { ID uuid.UUID `json:"id" gorm:"column:id;primaryKey"` ProjectURL string `json:"project_url" gorm:"column:project_url"` Labels StringArray `json:"labels" gorm:"column:labels;type:text[]"` LastUpdateTime time.Time `json:"last_update_time column:last_update_time"` }
func (GitProject) TableName ¶
func (GitProject) TableName() string
type ManagedCluster ¶
type ManagedCluster struct { ID uuid.UUID `json:"id" gorm:"column:id;primaryKey"` ClusterName string `json:"cluster_name" gorm:"column:cluster_name"` ClusterEndpoint string `json:"cluster_endpoint" gorm:"column:cluster_endpoint"` ClusterDeployStatus string `json:"cluster_deploy_status" gorm:"column:cluster_deploy_status"` AppDeployStatus string `json:"app_deploy_status" gorm:"column:app_deploy_status"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (ManagedCluster) TableName ¶
func (ManagedCluster) TableName() string
type PluginStoreConfig ¶
type PluginStoreConfig struct { StoreType int `json:"store_type" gorm:"column:store_type;primaryKey"` GitProjectID uuid.UUID `json:"git_project_id" gorm:"column:git_project_id"` GitProjectURL string `json:"git_project_url" gorm:"column:git_project_url"` Status string `json:"status" gorm:"column:status"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (PluginStoreConfig) TableName ¶
func (PluginStoreConfig) TableName() string
type PluginStoreData ¶
type PluginStoreData struct { StoreType int `json:"store_type" gorm:"column:store_type;primaryKey"` GitProjectID uuid.UUID `json:"git_project_id" gorm:"column:git_project_id"` PluginName string `json:"plugin_name" gorm:"column:plugin_name"` Category string `json:"category" gorm:"column:category"` Versions StringArray `json:"versions" gorm:"column:versions;type:text[]"` Icon []byte `json:"icon" gorm:"column:icon"` Description string `json:"description" gorm:"column:description"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (PluginStoreData) TableName ¶
func (PluginStoreData) TableName() string
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddCloudProvider ¶
func (a *Store) AddCloudProvider(config *captenpluginspb.CloudProvider) error
func (*Store) AddContainerRegistry ¶
func (a *Store) AddContainerRegistry(config *captenpluginspb.ContainerRegistry) error
func (*Store) AddCrossplaneProvider ¶
func (a *Store) AddCrossplaneProvider(crossplaneProvider *model.CrossplaneProvider) error
func (*Store) AddGitProject ¶
func (a *Store) AddGitProject(config *captenpluginspb.GitProject) error
func (*Store) AddManagedCluster ¶
func (a *Store) AddManagedCluster(managedCluster *captenpluginspb.ManagedCluster) error
func (*Store) DeleteAppConfigByReleaseName ¶
func (*Store) DeleteCloudProviderById ¶
func (*Store) DeleteClusterPluginConfig ¶
func (*Store) DeleteContainerRegistryById ¶
func (*Store) DeleteCrossplaneProject ¶
func (*Store) DeleteCrossplaneProviderById ¶
func (*Store) DeleteGitProjectById ¶
func (*Store) DeleteManagedClusterById ¶
func (*Store) DeletePluginStoreConfig ¶
func (a *Store) DeletePluginStoreConfig(storeType pluginstorepb.StoreType) error
func (*Store) DeletePluginStoreData ¶
func (a *Store) DeletePluginStoreData(storeType pluginstorepb.StoreType, gitProjectId, pluginName string) error
func (*Store) DeleteTektonProject ¶
func (*Store) GetAllApps ¶
func (a *Store) GetAllApps() ([]*agentpb.SyncAppData, error)
func (*Store) GetAllClusterPluginConfigs ¶
func (a *Store) GetAllClusterPluginConfigs() ([]*clusterpluginspb.Plugin, error)
func (*Store) GetAppConfig ¶
func (a *Store) GetAppConfig(appReleaseName string) (*agentpb.SyncAppData, error)
func (*Store) GetCloudProviderForID ¶
func (a *Store) GetCloudProviderForID(id string) (*captenpluginspb.CloudProvider, error)
func (*Store) GetCloudProviders ¶
func (a *Store) GetCloudProviders() ([]*captenpluginspb.CloudProvider, error)
func (*Store) GetCloudProvidersByLabels ¶
func (a *Store) GetCloudProvidersByLabels(searchLabels []string) ([]*captenpluginspb.CloudProvider, error)
func (*Store) GetCloudProvidersByLabelsAndCloudType ¶
func (a *Store) GetCloudProvidersByLabelsAndCloudType(searchLabels []string, cloudType string) ([]*captenpluginspb.CloudProvider, error)
func (*Store) GetClusterPluginConfig ¶
func (a *Store) GetClusterPluginConfig(pluginName string) (*clusterpluginspb.Plugin, error)
func (*Store) GetContainerRegistries ¶
func (a *Store) GetContainerRegistries() ([]*captenpluginspb.ContainerRegistry, error)
func (*Store) GetContainerRegistriesByLabels ¶
func (a *Store) GetContainerRegistriesByLabels(searchLabels []string) ([]*captenpluginspb.ContainerRegistry, error)
func (*Store) GetContainerRegistryForID ¶
func (a *Store) GetContainerRegistryForID(id string) (*captenpluginspb.ContainerRegistry, error)
func (*Store) GetCrossplanProviderByCloudType ¶
func (a *Store) GetCrossplanProviderByCloudType(cloudType string) (*captenpluginspb.CrossplaneProvider, error)
func (*Store) GetCrossplanProviderById ¶
func (a *Store) GetCrossplanProviderById(id string) (*captenpluginspb.CrossplaneProvider, error)
func (*Store) GetCrossplaneProject ¶
func (a *Store) GetCrossplaneProject() (*model.CrossplaneProject, error)
func (*Store) GetCrossplaneProjectForID ¶
func (a *Store) GetCrossplaneProjectForID(id string) (*model.CrossplaneProject, error)
func (*Store) GetCrossplaneProviders ¶
func (a *Store) GetCrossplaneProviders() ([]*captenpluginspb.CrossplaneProvider, error)
func (*Store) GetGitProjectForID ¶
func (a *Store) GetGitProjectForID(id string) (*captenpluginspb.GitProject, error)
func (*Store) GetGitProjects ¶
func (a *Store) GetGitProjects() ([]*captenpluginspb.GitProject, error)
func (*Store) GetGitProjectsByLabels ¶
func (a *Store) GetGitProjectsByLabels(searchLabels []string) ([]*captenpluginspb.GitProject, error)
func (*Store) GetManagedClusterForID ¶
func (a *Store) GetManagedClusterForID(id string) (*captenpluginspb.ManagedCluster, error)
func (*Store) GetManagedClusters ¶
func (a *Store) GetManagedClusters() ([]*captenpluginspb.ManagedCluster, error)
func (*Store) GetPluginStoreConfig ¶
func (a *Store) GetPluginStoreConfig(storeType pluginstorepb.StoreType) (*pluginstorepb.PluginStoreConfig, error)
func (*Store) GetPluginStoreData ¶
func (a *Store) GetPluginStoreData(storeType pluginstorepb.StoreType, gitProjectId, pluginName string) (*pluginstorepb.PluginData, error)
func (*Store) GetPlugins ¶
func (a *Store) GetPlugins(gitProjectId string) ([]*pluginstorepb.Plugin, error)
func (*Store) GetTektonProject ¶
func (a *Store) GetTektonProject() (*model.TektonProject, error)
func (*Store) GetTektonProjectForID ¶
func (a *Store) GetTektonProjectForID(id string) (*model.TektonProject, error)
func (*Store) UpdateCrossplaneProvider ¶
func (a *Store) UpdateCrossplaneProvider(provider *model.CrossplaneProvider) error
func (*Store) UpsertAppConfig ¶
func (a *Store) UpsertAppConfig(appData *agentpb.SyncAppData) error
func (*Store) UpsertCloudProvider ¶
func (a *Store) UpsertCloudProvider(config *captenpluginspb.CloudProvider) error
func (*Store) UpsertClusterPluginConfig ¶
func (a *Store) UpsertClusterPluginConfig(pluginConfig *clusterpluginspb.Plugin) error
func (*Store) UpsertContainerRegistry ¶
func (a *Store) UpsertContainerRegistry(config *captenpluginspb.ContainerRegistry) error
func (*Store) UpsertCrossplaneProject ¶
func (a *Store) UpsertCrossplaneProject(crossplaneProject *model.CrossplaneProject) error
func (*Store) UpsertCrossplaneProvider ¶
func (a *Store) UpsertCrossplaneProvider(crossplaneProvider *model.CrossplaneProvider) error
func (*Store) UpsertGitProject ¶
func (a *Store) UpsertGitProject(config *captenpluginspb.GitProject) error
func (*Store) UpsertManagedCluster ¶
func (a *Store) UpsertManagedCluster(managedCluster *captenpluginspb.ManagedCluster) error
func (*Store) UpsertPluginStoreConfig ¶
func (a *Store) UpsertPluginStoreConfig(config *pluginstorepb.PluginStoreConfig) error
func (*Store) UpsertPluginStoreData ¶
func (a *Store) UpsertPluginStoreData(gitProjectID string, pluginData *pluginstorepb.PluginData) error
func (*Store) UpsertTektonProject ¶
func (a *Store) UpsertTektonProject(tektonProject *model.TektonProject) error
type StringArray ¶
type StringArray []string
StringArray represents a string array to handle TEXT[] data type
func (StringArray) GormDataType ¶
func (StringArray) GormDataType() string
GormDataType returns the data type of the field
func (*StringArray) Scan ¶
func (a *StringArray) Scan(value interface{}) error
Scan reads the value from the database
func (StringArray) String ¶
func (a StringArray) String() string
type TektonProject ¶
type TektonProject struct { ID int `json:"id" gorm:"column:id;primaryKey"` GitProjectID uuid.UUID `json:"git_project_id" gorm:"column:git_project_id"` GitProjectURL string `json:"git_project_url" gorm:"column:git_project_url"` Status string `json:"status" gorm:"column:status"` LastUpdateTime time.Time `json:"last_update_time" gorm:"column:last_update_time"` }
func (TektonProject) TableName ¶
func (TektonProject) TableName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.