Documentation ¶
Index ¶
- type Accessor
- func (x *Accessor) Create(clusterID string, appGroup *pb.AppGroup) (string, error)
- func (x *Accessor) DeleteAppGroup(appGroupID string) error
- func (x *Accessor) GetAppGroup(appGroupID string) (*pb.AppGroup, error)
- func (x *Accessor) GetAppGroups(name string, appGroupType pb.AppGroupType) ([]*pb.AppGroup, error)
- func (x *Accessor) GetAppGroupsByClusterID(clusterID string, offset, limit int) ([]*pb.AppGroup, error)
- func (x *Accessor) GetApps(appGroupID string, appType pb.AppType) ([]*pb.Application, error)
- func (x *Accessor) GetAppsByAppGroupID(appGroupID string) ([]*pb.Application, error)
- func (x *Accessor) UpdateApp(appGroupID string, appType pb.AppType, endpoint, metadata string) error
- func (x *Accessor) UpdateAppGroupStatus(appGroupID string, status pb.AppGroupStatus, statusDesc string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor struct {
// contains filtered or unexported fields
}
Accessor is an accessor to postgreSQL to query data.
func (*Accessor) DeleteAppGroup ¶
DeleteAppGroup deletes an application group and applications.
func (*Accessor) GetAppGroup ¶
GetAppGroup returns an application group by cluster_id and app_group_id.
func (*Accessor) GetAppGroups ¶
GetAppGroups returns application groups matching name and type in database.
func (*Accessor) GetAppGroupsByClusterID ¶
func (x *Accessor) GetAppGroupsByClusterID(clusterID string, offset, limit int) ([]*pb.AppGroup, error)
GetApplicatiionGroup returns an application group in database.
func (*Accessor) GetAppsByAppGroupID ¶
func (x *Accessor) GetAppsByAppGroupID(appGroupID string) ([]*pb.Application, error)
GetAppsByAppGroupID queies applications by app group id.
func (*Accessor) UpdateApp ¶
func (x *Accessor) UpdateApp(appGroupID string, appType pb.AppType, endpoint, metadata string) error
UpdateApp updates data of application in database.
func (*Accessor) UpdateAppGroupStatus ¶
func (x *Accessor) UpdateAppGroupStatus(appGroupID string, status pb.AppGroupStatus, statusDesc string, workflowId string) error
UpdateAppGroupStatus updates status of application group.
Click to show internal directories.
Click to hide internal directories.