Documentation ¶
Index ¶
- type BootAPI
- type ChartAPI
- func (api *ChartAPI) CreateChart(c *gin.Context)
- func (api *ChartAPI) DeleteChartByUID(c *gin.Context)
- func (api *ChartAPI) GetChartByUID(c *gin.Context)
- func (api *ChartAPI) GetDashboardsByChartUID(c *gin.Context)
- func (api *ChartAPI) SearchCharts(c *gin.Context)
- func (api *ChartAPI) UnlinkChartFromDashboard(c *gin.Context)
- func (api *ChartAPI) UpdateChart(c *gin.Context)
- type ComponentAPI
- func (api *ComponentAPI) CreateComponent(c *gin.Context)
- func (api *ComponentAPI) DeleteComponentByUID(c *gin.Context)
- func (api *ComponentAPI) GetComponentTreeByCurrentOrg(c *gin.Context)
- func (api *ComponentAPI) GetOrgComponents(c *gin.Context)
- func (api *ComponentAPI) LoadComponentTree(c *gin.Context)
- func (api *ComponentAPI) SaveOrgComponents(c *gin.Context)
- func (api *ComponentAPI) SortComponents(c *gin.Context)
- func (api *ComponentAPI) UpdateComponent(c *gin.Context)
- func (api *ComponentAPI) UpdateRolesOfOrgComponent(c *gin.Context)
- type DashboardAPI
- func (api *DashboardAPI) CreateDashboard(c *gin.Context)
- func (api *DashboardAPI) DeleteDashboardByUID(c *gin.Context)
- func (api *DashboardAPI) GetDashboardByUID(c *gin.Context)
- func (api *DashboardAPI) SearchDashboards(c *gin.Context)
- func (api *DashboardAPI) StarDashboard(c *gin.Context)
- func (api *DashboardAPI) UnstarDashboard(c *gin.Context)
- func (api *DashboardAPI) UpdateDashboard(c *gin.Context)
- type DatasourceAPI
- type DatasourceQueryAPI
- type IntegerationAPI
- type LoginAPI
- type OrgAPI
- func (api *OrgAPI) CreateOrg(c *gin.Context)
- func (api *OrgAPI) DeleteOrgByUID(c *gin.Context)
- func (api *OrgAPI) GetOrgByUID(c *gin.Context)
- func (api *OrgAPI) GetOrgListForSignedUser(c *gin.Context)
- func (api *OrgAPI) GetUserListForSignedOrg(c *gin.Context)
- func (api *OrgAPI) SearchOrg(c *gin.Context)
- func (api *OrgAPI) UpdateOrg(c *gin.Context)
- type TagAPI
- type TeamAPI
- func (api *TeamAPI) AddTeamMembers(c *gin.Context)
- func (api *TeamAPI) CreateTeam(c *gin.Context)
- func (api *TeamAPI) DeleteTeamByUID(c *gin.Context)
- func (api *TeamAPI) GetTeamByUID(c *gin.Context)
- func (api *TeamAPI) GetTeamMembers(c *gin.Context)
- func (api *TeamAPI) RemoveTeamMember(c *gin.Context)
- func (api *TeamAPI) SearchTeams(c *gin.Context)
- func (api *TeamAPI) UpdateTeam(c *gin.Context)
- func (api *TeamAPI) UpdateTeamMember(c *gin.Context)
- type UserAPI
- func (api *UserAPI) AddOrg(c *gin.Context)
- func (api *UserAPI) ChangePassword(c *gin.Context)
- func (api *UserAPI) CreateUser(c *gin.Context)
- func (api *UserAPI) DisableUserByUID(c *gin.Context)
- func (api *UserAPI) EnableUserByUID(c *gin.Context)
- func (api *UserAPI) GetOrgListByUserUID(c *gin.Context)
- func (api *UserAPI) GetPreference(c *gin.Context)
- func (api *UserAPI) GetUserByUID(c *gin.Context)
- func (api *UserAPI) RemoveOrg(c *gin.Context)
- func (api *UserAPI) ResetPassword(c *gin.Context)
- func (api *UserAPI) SavePreference(c *gin.Context)
- func (api *UserAPI) SearchUser(c *gin.Context)
- func (api *UserAPI) SwitchOrg(c *gin.Context)
- func (api *UserAPI) UpdateOrg(c *gin.Context)
- func (api *UserAPI) UpdateUser(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootAPI ¶
type BootAPI struct {
// contains filtered or unexported fields
}
BootAPI represents boot information related api handlers.
func NewBootAPI ¶
NewBootAPI creates a BootAPI instance.
type ChartAPI ¶
type ChartAPI struct {
// contains filtered or unexported fields
}
ChartAPI represents chart repo related api handlers.
func NewChartAPI ¶
NewChartAPI creates a ChartAPI instance.
func (*ChartAPI) CreateChart ¶
CreateChart creates a new chart.
func (*ChartAPI) DeleteChartByUID ¶
DeleteChartByUID deletes chart by given uid.
func (*ChartAPI) GetChartByUID ¶
GetChartByUID returns chart by given uid.
func (*ChartAPI) GetDashboardsByChartUID ¶
GetDashboardsByChartUID returns dashboards by chart.
func (*ChartAPI) SearchCharts ¶
SearchCharts searches charts by given params.
func (*ChartAPI) UnlinkChartFromDashboard ¶
UnlinkChartFromDashboard unlinks chart from dashboard.
func (*ChartAPI) UpdateChart ¶
UpdateChart updates a chart.
type ComponentAPI ¶
type ComponentAPI struct {
// contains filtered or unexported fields
}
ComponentAPI represents component information related api handlers.
func NewComponentAPI ¶
func NewComponentAPI(deps *depspkg.API) *ComponentAPI
NewComponentAPI creates a ComponentAPI instance.
func (*ComponentAPI) CreateComponent ¶
func (api *ComponentAPI) CreateComponent(c *gin.Context)
CreateComponent creates a new component.
func (*ComponentAPI) DeleteComponentByUID ¶
func (api *ComponentAPI) DeleteComponentByUID(c *gin.Context)
DeleteComponentByUID deletes component.
func (*ComponentAPI) GetComponentTreeByCurrentOrg ¶
func (api *ComponentAPI) GetComponentTreeByCurrentOrg(c *gin.Context)
GetComponentTreeByCurrentOrg returns component tree that current user can access of current org.
func (*ComponentAPI) GetOrgComponents ¶
func (api *ComponentAPI) GetOrgComponents(c *gin.Context)
func (*ComponentAPI) LoadComponentTree ¶
func (api *ComponentAPI) LoadComponentTree(c *gin.Context)
LoadComponentTree returns component tree.
func (*ComponentAPI) SaveOrgComponents ¶
func (api *ComponentAPI) SaveOrgComponents(c *gin.Context)
SaveOrgComponents creates or removes components for org's components.
func (*ComponentAPI) SortComponents ¶
func (api *ComponentAPI) SortComponents(c *gin.Context)
SortComponents sorts component list.
func (*ComponentAPI) UpdateComponent ¶
func (api *ComponentAPI) UpdateComponent(c *gin.Context)
UpdateComponent updates component.
func (*ComponentAPI) UpdateRolesOfOrgComponent ¶
func (api *ComponentAPI) UpdateRolesOfOrgComponent(c *gin.Context)
UpdateRolesOfOrgComponent updates roles for current org.
type DashboardAPI ¶
type DashboardAPI struct {
// contains filtered or unexported fields
}
DashboardAPI represents dashboard related api handlers.
func NewDashboardAPI ¶
func NewDashboardAPI(deps *depspkg.API) *DashboardAPI
NewDashboardAPI creates a DashboardAPI instance.
func (*DashboardAPI) CreateDashboard ¶
func (api *DashboardAPI) CreateDashboard(c *gin.Context)
CreateDashboard creates a new dashboard.
func (*DashboardAPI) DeleteDashboardByUID ¶
func (api *DashboardAPI) DeleteDashboardByUID(c *gin.Context)
DeleteDashboardByUID deletes dashboard by given uid.
func (*DashboardAPI) GetDashboardByUID ¶
func (api *DashboardAPI) GetDashboardByUID(c *gin.Context)
GetDashboardByUID gets dashboard by given uid.
func (*DashboardAPI) SearchDashboards ¶
func (api *DashboardAPI) SearchDashboards(c *gin.Context)
SearchDashboards searches dashboards by given params.
func (*DashboardAPI) StarDashboard ¶
func (api *DashboardAPI) StarDashboard(c *gin.Context)
StarDashboard stars the dashboard by given uid.
func (*DashboardAPI) UnstarDashboard ¶
func (api *DashboardAPI) UnstarDashboard(c *gin.Context)
UnstarDashboard unstars the dashboard by given uid.
func (*DashboardAPI) UpdateDashboard ¶
func (api *DashboardAPI) UpdateDashboard(c *gin.Context)
UpdateDashboard updates an existing dashboard.
type DatasourceAPI ¶
type DatasourceAPI struct {
// contains filtered or unexported fields
}
DatasourceAPI represents data source related api handlers.
func NewDatasourceAPI ¶
func NewDatasourceAPI(deps *apideps.API) *DatasourceAPI
NewDatasourceAPI creates a DatasourceAPI instance.
func (*DatasourceAPI) CreateDatasource ¶
func (api *DatasourceAPI) CreateDatasource(c *gin.Context)
CreateDatasource creates a data source.
func (*DatasourceAPI) DeleteDatasourceByUID ¶
func (api *DatasourceAPI) DeleteDatasourceByUID(c *gin.Context)
DeleteDatasource deletes data source by uid.
func (*DatasourceAPI) GetDatasourceByUID ¶
func (api *DatasourceAPI) GetDatasourceByUID(c *gin.Context)
GetDatasource returns data source by uid.
func (*DatasourceAPI) GetDatasources ¶
func (api *DatasourceAPI) GetDatasources(c *gin.Context)
GetDatasources returns all data sources.
func (*DatasourceAPI) UpdateDatasource ¶
func (api *DatasourceAPI) UpdateDatasource(c *gin.Context)
UpdateDatasource updates data source by uid.
type DatasourceQueryAPI ¶
type DatasourceQueryAPI struct {
// contains filtered or unexported fields
}
DatasourceQueryAPI represents data source query related api handlers.
func NewDatasourceQueryAPI ¶
func NewDatasourceQueryAPI(deps *apideps.API) *DatasourceQueryAPI
NewDatasourceQueryAPI creates a DatasourceQueryAPI instance.
func (*DatasourceQueryAPI) DataQuery ¶
func (api *DatasourceQueryAPI) DataQuery(c *gin.Context)
DataQuery queries data.
func (*DatasourceQueryAPI) MetadataQuery ¶
func (api *DatasourceQueryAPI) MetadataQuery(c *gin.Context)
MetadataQuery queries metadata.
type IntegerationAPI ¶
type IntegerationAPI struct {
// contains filtered or unexported fields
}
IntegerationAPI represents integration information related api handlers.
func NewIntegrationAPI ¶
func NewIntegrationAPI(deps *depspkg.API) *IntegerationAPI
NewIntegrationAPI creates an IntegerationAPI instance.
func (*IntegerationAPI) GetIntegrations ¶
func (api *IntegerationAPI) GetIntegrations(c *gin.Context)
GetIntegrations returns all supported integrations.
type LoginAPI ¶
type LoginAPI struct {
// contains filtered or unexported fields
}
LoginAPI represents login related api handlers.
func NewLoginAPI ¶
NewLoginAPI creates a LoginAPI instance.
type OrgAPI ¶
type OrgAPI struct {
// contains filtered or unexported fields
}
OrgAPI represents org related api handlers.
func (*OrgAPI) DeleteOrgByUID ¶
DeleteOrgByUID deletes the org by given uid.
func (*OrgAPI) GetOrgByUID ¶
GetOrgByUID returns the org by given uid.
func (*OrgAPI) GetOrgListForSignedUser ¶
GetOrgListForSignedUser returns all org for current signed user can manage.
func (*OrgAPI) GetUserListForSignedOrg ¶
GetUserListForSignedOrg returns the users for current signed org, filter(user name/name/email).
type TagAPI ¶
type TagAPI struct {
// contains filtered or unexported fields
}
TagAPI represents tag related api handlers.
type TeamAPI ¶
type TeamAPI struct {
// contains filtered or unexported fields
}
TeamAPI represents team related api handlers.
func NewTeamAPI ¶
NewTeamAPI creates a TeamAPI instance.
func (*TeamAPI) AddTeamMembers ¶
AddTeamMembers adds new members to team.
func (*TeamAPI) CreateTeam ¶
CreateTeam creates a new team.
func (*TeamAPI) DeleteTeamByUID ¶
DeleteTeamByUID deletes team by given uid.
func (*TeamAPI) GetTeamByUID ¶
GetTeamByUID returns team by given uid.
func (*TeamAPI) GetTeamMembers ¶
GetTeamMembers returns member list for team.
func (*TeamAPI) RemoveTeamMember ¶
RemoveTeamMember removes member from team.
func (*TeamAPI) SearchTeams ¶
SearchTeams searches teams by given params.
func (*TeamAPI) UpdateTeam ¶
UpdateTeam updates a team.
func (*TeamAPI) UpdateTeamMember ¶
UpdateTeamMember updates team member.
type UserAPI ¶
type UserAPI struct {
// contains filtered or unexported fields
}
UserAPI represents user related api handlers.
func NewUserAPI ¶
NewUserAPI creates an UserAPI instance.
func (*UserAPI) ChangePassword ¶
ChangePassword changes user password.
func (*UserAPI) CreateUser ¶
CreateUser creates a new user.
func (*UserAPI) DisableUserByUID ¶
DisableUserByUID disables user by uid.
func (*UserAPI) EnableUserByUID ¶
EnableUserByUID enables user by uid.
func (*UserAPI) GetOrgListByUserUID ¶
GetOrgListByUserUID returns the org list than user belong.
func (*UserAPI) GetPreference ¶
GetPreference returns the preference of current signed user.
func (*UserAPI) GetUserByUID ¶
GetUserByUID returns user by uid.
func (*UserAPI) ResetPassword ¶
ResetPassword resets user password.
func (*UserAPI) SavePreference ¶
SavePreference saves the preference of current signed user.
func (*UserAPI) SearchUser ¶
SearchUser searches users by given params.
func (*UserAPI) UpdateUser ¶
UpdateUser updates user basic information.