Documentation
¶
Index ¶
- type ActivityCollectionInterface
- type ActivityInterface
- type CIMetricCollectionInterface
- type CIMetricInterface
- type CIWorkflowCollectionInterface
- type CIWorkflowInterface
- type CertificateCollectionInterface
- type CertificateInterface
- type ClusterWorkflowCollectionInterface
- type ClusterWorkflowInterface
- type CronJobCollectionInterface
- type CronJobInterface
- type EnvironmentLogCollection
- type EnvironmentLogInterface
- type EventCollectionInterface
- type EventInterface
- type LoadbalancerCollectionInterface
- type LoadbalancerInterface
- type PodStateCollectionInterface
- type PodStateInterface
- type ReleaseInfoCollectionInterface
- type ReleaseInfoInterface
- type ServiceCollectionInterface
- type ServiceInterface
- type StorageCollectionInterface
- type StorageInterface
- type Store
- func (c *Store) Activity() ActivityInterface
- func (c *Store) CIMetric() CIMetricInterface
- func (c *Store) CIWOrkflow() CIWorkflowInterface
- func (c *Store) Certificate() CertificateInterface
- func (c *Store) ClusterWOrkflow() ClusterWorkflowInterface
- func (c *Store) CronJob() CronJobInterface
- func (c *Store) EnvironmentLog() EnvironmentLogInterface
- func (c *Store) Event() EventInterface
- func (c *Store) Loadbalancer() LoadbalancerInterface
- func (c *Store) PodState() PodStateInterface
- func (c *Store) ReleaseInfo() ReleaseInfoInterface
- func (c *Store) Service() ServiceInterface
- func (c *Store) Storage() StorageInterface
- type StoreInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityCollectionInterface ¶
type ActivityCollectionInterface interface {
Activity() ActivityInterface
}
type ActivityInterface ¶
type CIMetricCollectionInterface ¶
type CIMetricCollectionInterface interface {
CIMetric() CIMetricInterface
}
type CIMetricInterface ¶
type CIWorkflowCollectionInterface ¶
type CIWorkflowCollectionInterface interface {
CIWOrkflow() CIWorkflowInterface
}
type CIWorkflowInterface ¶
type CIWorkflowInterface interface {
GetWorkflowDetail(namespace string, offset int, limit int) ([]*model.WorkflowMetadata, error)
GetWorkflowLog(name string) (map[string]interface{}, error)
GetLatestWorkflow(namespace string) (*model.WorkflowMetadata, error)
GetWorkflowCount(namespace, startdate, enddate string) (int, error)
GetWorkflow(name string) (map[string]interface{}, error)
GetBuildImages(namespace string, offset int, limit int) ([]map[string]string, error)
DeleteWorkflow(namespace string, workflowId string) error
DeleteCIWorkflow(namespace string) error
DeleteCIPodData(namespace string) error
StoreWorkflow(data model.PublishDataCi) error
UpdateWorkflow(data model.PublishDataCi) error
StorePodData(data model.PodLogsData) error
}
type CertificateCollectionInterface ¶
type CertificateCollectionInterface interface {
Certificate() CertificateInterface
}
type CertificateInterface ¶
type ClusterWorkflowCollectionInterface ¶
type ClusterWorkflowCollectionInterface interface {
ClusterWOrkflow() ClusterWorkflowInterface
}
type ClusterWorkflowInterface ¶
type ClusterWorkflowInterface interface {
GetCreateClusterWorkflow(name string) (*model.ClusterWorkflowMetadata, error)
GetClusterWorkflowDetail(namespace string, offset int, limit int) ([]*model.ClusterWorkflowMetadata, error)
GetCreateClusterWorkflowLog(name string) (map[string]interface{}, error)
StoreWorkflow(data model.PublishData)
UpdateWorkflow(data model.PublishData)
DeleteWorkflowByNamespace(namespace string) error
DeleteWorkflowLogsByNamespace(namespace string) error
}
type CronJobCollectionInterface ¶
type CronJobCollectionInterface interface {
CronJob() CronJobInterface
}
type CronJobInterface ¶
type CronJobInterface interface {
StoreCronJob(job model.CronJobPublish) error
StoreJob(job model.JobPublish) error
GetCronJobStatus(namespace string) ([]map[string]interface{}, error)
GetCronJobLogs(namespace string, name string, page int, limit int) ([]map[string]interface{}, error)
StoreCronJobLogs(data model.JobLog) error
DeleteCronJob(namespace string, id uint) error
DeleteCronJobByNamespace(namespace string) error
DeleteCronJobLogs(namespace string, name string) error
DeleteCronJobLogsByNamespace(namespace string) error
}
type EnvironmentLogCollection ¶
type EnvironmentLogCollection interface {
EnvironmentLog() EnvironmentLogInterface
}
type EnvironmentLogInterface ¶
type EnvironmentLogInterface interface {
StoreEnvironmentLogs(data model.EnvironmentLog) error
DeleteEnvironmentLogs(namespace string) error
}
type EventCollectionInterface ¶
type EventCollectionInterface interface {
Event() EventInterface
}
type EventInterface ¶
type LoadbalancerCollectionInterface ¶
type LoadbalancerCollectionInterface interface {
Loadbalancer() LoadbalancerInterface
}
type LoadbalancerInterface ¶
type PodStateCollectionInterface ¶
type PodStateCollectionInterface interface {
PodState() PodStateInterface
}
type PodStateInterface ¶
type PodStateInterface interface {
GetAddOnState(namespace string) ([]map[string]interface{}, error)
GetEnvironmentState(namespace string) ([]map[string]interface{}, string, bool, error)
GetPodStatus(namespace string) ([]map[string]interface{}, error)
StorePodData(data model.PodLogsData)
DeletePodState(namespace string) []map[string]interface{}
DeletePodData(namespace string) error
StorePodState(i int, data *model.EnvironmentState) error
StorePodEventData(i int, data *model.PodEvent) error
}
type ReleaseInfoCollectionInterface ¶
type ReleaseInfoCollectionInterface interface {
ReleaseInfo() ReleaseInfoInterface
}
type ReleaseInfoInterface ¶
type ReleaseInfoInterface interface {
GetData(releaseId string) (*model.K8sRelease, error)
GetRevisonData(namespace string) (*model.RevisionHistory, error)
DeleteReleaseMeta(releaseId string) error
StoreRelease(releaseId string, data *model.HelmRelease, valuesString string, cname string) error
StoreRevison(tag string, result *model.HelmRelease) error
DeleteRevison(namespace string) error
}
type ServiceCollectionInterface ¶
type ServiceCollectionInterface interface {
Service() ServiceInterface
}
type ServiceInterface ¶
type StorageCollectionInterface ¶
type StorageCollectionInterface interface {
Storage() StorageInterface
}
type StorageInterface ¶
type StorageInterface interface {
GetStorageState(namespace string) ([]map[string]interface{}, error)
StorageData(data model.StoragePublish) error
SetStorageData(namespace string, data *corev1.PersistentVolumeClaimList)
DeleteStorageData(namespace string) error
DeleteStorageDataAll(namespace string) error
DeleteStorageDataById(namespace string, id uint) error
}
type Store ¶
type Store struct {
}
func (*Store) Activity ¶
func (c *Store) Activity() ActivityInterface
func (*Store) CIMetric ¶
func (c *Store) CIMetric() CIMetricInterface
func (*Store) CIWOrkflow ¶
func (c *Store) CIWOrkflow() CIWorkflowInterface
func (*Store) Certificate ¶
func (c *Store) Certificate() CertificateInterface
func (*Store) ClusterWOrkflow ¶
func (c *Store) ClusterWOrkflow() ClusterWorkflowInterface
func (*Store) CronJob ¶
func (c *Store) CronJob() CronJobInterface
func (*Store) EnvironmentLog ¶
func (c *Store) EnvironmentLog() EnvironmentLogInterface
func (*Store) Event ¶
func (c *Store) Event() EventInterface
func (*Store) Loadbalancer ¶
func (c *Store) Loadbalancer() LoadbalancerInterface
func (*Store) PodState ¶
func (c *Store) PodState() PodStateInterface
func (*Store) ReleaseInfo ¶
func (c *Store) ReleaseInfo() ReleaseInfoInterface
func (*Store) Service ¶
func (c *Store) Service() ServiceInterface
func (*Store) Storage ¶
func (c *Store) Storage() StorageInterface
type StoreInterface ¶
type StoreInterface interface {
CIWorkflowCollectionInterface
ActivityCollectionInterface
CertificateCollectionInterface
CIMetricCollectionInterface
ClusterWorkflowCollectionInterface
CronJobCollectionInterface
EventCollectionInterface
LoadbalancerCollectionInterface
PodStateCollectionInterface
ServiceCollectionInterface
StorageCollectionInterface
EnvironmentLogCollection
ReleaseInfoCollectionInterface
}
func NewStore ¶
func NewStore() StoreInterface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.