captenstore

package
v0.0.0-...-f9f20c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSelectAllQuery

func CreateSelectAllQuery(keyspace string) string

func CreateSelectByFieldNameQuery

func CreateSelectByFieldNameQuery(keyspace, field string) string

func IsObjectNotFound

func IsObjectNotFound(err error) bool

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(log logging.Logger) (*Store, error)

func (*Store) AddOrUpdateOnboardingIntegration

func (a *Store) AddOrUpdateOnboardingIntegration(payload *model.ClusterGitoptsConfig) error

func (*Store) DeleteAppConfigByReleaseName

func (a *Store) DeleteAppConfigByReleaseName(releaseName string) error

func (*Store) DeleteArgoCDProjectsData

func (a *Store) DeleteArgoCDProjectsData(id string) error

func (*Store) DeleteCloudProviderById

func (a *Store) DeleteCloudProviderById(id string) error

func (*Store) DeleteContainerRegistryById

func (a *Store) DeleteContainerRegistryById(id string) error

func (*Store) DeleteCrossplaneProject

func (a *Store) DeleteCrossplaneProject(id string) error

func (*Store) DeleteCrossplaneProviderById

func (a *Store) DeleteCrossplaneProviderById(id string) error

func (*Store) DeleteGitProjectById

func (a *Store) DeleteGitProjectById(id string) error

func (*Store) DeleteManagedClusterById

func (a *Store) DeleteManagedClusterById(id string) error

func (*Store) DeleteOnboardingIntegration

func (a *Store) DeleteOnboardingIntegration(usecase, onboardingProjectUrl string) error

func (*Store) DeleteTektonProject

func (a *Store) DeleteTektonProject(id string) error

func (*Store) GetAllApps

func (a *Store) GetAllApps() ([]*agentpb.SyncAppData, error)

func (*Store) GetAppConfig

func (a *Store) GetAppConfig(appReleaseName string) (*agentpb.SyncAppData, error)

func (*Store) GetArgoCDProjectForID

func (a *Store) GetArgoCDProjectForID(id string) (*model.ArgoCDProject, error)

func (*Store) GetArgoCDProjects

func (a *Store) GetArgoCDProjects() ([]*model.ArgoCDProject, 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) GetCloudProvidersByLabelsAndCloudType

func (a *Store) GetCloudProvidersByLabelsAndCloudType(searchLabels []string, cloudType string) ([]*captenpluginspb.CloudProvider, error)

func (*Store) GetContainerRegistries

func (a *Store) GetContainerRegistries() ([]*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) GetOnboardingIntegration

func (a *Store) GetOnboardingIntegration(usecase string) (*model.ClusterGitoptsConfig, 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) InsertCrossplaneProvider

func (a *Store) InsertCrossplaneProvider(provider *model.CrossplaneProvider) error

func (*Store) UpdateCrossplaneProvider

func (a *Store) UpdateCrossplaneProvider(provider *model.CrossplaneProvider) error

func (*Store) UpsertAppConfig

func (a *Store) UpsertAppConfig(config *agentpb.SyncAppData) error

func (*Store) UpsertArgoCDProject

func (a *Store) UpsertArgoCDProject(project *model.ArgoCDProject) error

func (*Store) UpsertCloudProvider

func (a *Store) UpsertCloudProvider(config *captenpluginspb.CloudProvider) error

func (*Store) UpsertContainerRegistry

func (a *Store) UpsertContainerRegistry(config *captenpluginspb.ContainerRegistry) error

func (*Store) UpsertCrossplaneProject

func (a *Store) UpsertCrossplaneProject(project *model.CrossplaneProject) error

func (*Store) UpsertGitProject

func (a *Store) UpsertGitProject(config *captenpluginspb.GitProject) error

func (*Store) UpsertManagedCluster

func (a *Store) UpsertManagedCluster(config *captenpluginspb.ManagedCluster) error

func (*Store) UpsertTektonProject

func (a *Store) UpsertTektonProject(project *model.TektonProject) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL