api

package
v0.0.0-...-3e848aa Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func NewBootAPI(deps *depspkg.API) *BootAPI

NewBootAPI creates a BootAPI instance.

func (*BootAPI) Boot

func (api *BootAPI) Boot(c *gin.Context)

Boot gets boot information after signed in.

type ChartAPI

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

ChartAPI represents chart repo related api handlers.

func NewChartAPI

func NewChartAPI(deps *depspkg.API) *ChartAPI

NewChartAPI creates a ChartAPI instance.

func (*ChartAPI) CreateChart

func (api *ChartAPI) CreateChart(c *gin.Context)

CreateChart creates a new chart.

func (*ChartAPI) DeleteChartByUID

func (api *ChartAPI) DeleteChartByUID(c *gin.Context)

DeleteChartByUID deletes chart by given uid.

func (*ChartAPI) GetChartByUID

func (api *ChartAPI) GetChartByUID(c *gin.Context)

GetChartByUID returns chart by given uid.

func (*ChartAPI) GetDashboardsByChartUID

func (api *ChartAPI) GetDashboardsByChartUID(c *gin.Context)

GetDashboardsByChartUID returns dashboards by chart.

func (*ChartAPI) SearchCharts

func (api *ChartAPI) SearchCharts(c *gin.Context)

SearchCharts searches charts by given params.

func (*ChartAPI) UnlinkChartFromDashboard

func (api *ChartAPI) UnlinkChartFromDashboard(c *gin.Context)

UnlinkChartFromDashboard unlinks chart from dashboard.

func (*ChartAPI) UpdateChart

func (api *ChartAPI) UpdateChart(c *gin.Context)

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

func NewLoginAPI(deps *depspkg.API) *LoginAPI

NewLoginAPI creates a LoginAPI instance.

func (*LoginAPI) Login

func (api *LoginAPI) Login(c *gin.Context)

Login logins system via username/password.

func (*LoginAPI) Logout

func (api *LoginAPI) Logout(c *gin.Context)

Logout logouts system, removed login session.

type OrgAPI

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

OrgAPI represents org related api handlers.

func NewOrgAPI

func NewOrgAPI(deps *depspkg.API) *OrgAPI

NewOrgAPI creates an OrgAPI instance.

func (*OrgAPI) CreateOrg

func (api *OrgAPI) CreateOrg(c *gin.Context)

CreateOrg creates a new org.

func (*OrgAPI) DeleteOrgByUID

func (api *OrgAPI) DeleteOrgByUID(c *gin.Context)

DeleteOrgByUID deletes the org by given uid.

func (*OrgAPI) GetOrgByUID

func (api *OrgAPI) GetOrgByUID(c *gin.Context)

GetOrgByUID returns the org by given uid.

func (*OrgAPI) GetOrgListForSignedUser

func (api *OrgAPI) GetOrgListForSignedUser(c *gin.Context)

GetOrgListForSignedUser returns all org for current signed user can manage.

func (*OrgAPI) GetUserListForSignedOrg

func (api *OrgAPI) GetUserListForSignedOrg(c *gin.Context)

GetUserListForSignedOrg returns the users for current signed org, filter(user name/name/email).

func (*OrgAPI) SearchOrg

func (api *OrgAPI) SearchOrg(c *gin.Context)

SearchOrg searches organizations by given params.

func (*OrgAPI) UpdateOrg

func (api *OrgAPI) UpdateOrg(c *gin.Context)

UpdateOrg updates an org.

type TagAPI

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

TagAPI represents tag related api handlers.

func NewTagAPI

func NewTagAPI(deps *depspkg.API) *TagAPI

NewTagAPI creates a TagAPI instance.

func (*TagAPI) FindTags

func (api *TagAPI) FindTags(c *gin.Context)

FindTags returns tag list by given term prefix.

type TeamAPI

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

TeamAPI represents team related api handlers.

func NewTeamAPI

func NewTeamAPI(deps *depspkg.API) *TeamAPI

NewTeamAPI creates a TeamAPI instance.

func (*TeamAPI) AddTeamMembers

func (api *TeamAPI) AddTeamMembers(c *gin.Context)

AddTeamMembers adds new members to team.

func (*TeamAPI) CreateTeam

func (api *TeamAPI) CreateTeam(c *gin.Context)

CreateTeam creates a new team.

func (*TeamAPI) DeleteTeamByUID

func (api *TeamAPI) DeleteTeamByUID(c *gin.Context)

DeleteTeamByUID deletes team by given uid.

func (*TeamAPI) GetTeamByUID

func (api *TeamAPI) GetTeamByUID(c *gin.Context)

GetTeamByUID returns team by given uid.

func (*TeamAPI) GetTeamMembers

func (api *TeamAPI) GetTeamMembers(c *gin.Context)

GetTeamMembers returns member list for team.

func (*TeamAPI) RemoveTeamMember

func (api *TeamAPI) RemoveTeamMember(c *gin.Context)

RemoveTeamMember removes member from team.

func (*TeamAPI) SearchTeams

func (api *TeamAPI) SearchTeams(c *gin.Context)

SearchTeams searches teams by given params.

func (*TeamAPI) UpdateTeam

func (api *TeamAPI) UpdateTeam(c *gin.Context)

UpdateTeam updates a team.

func (*TeamAPI) UpdateTeamMember

func (api *TeamAPI) UpdateTeamMember(c *gin.Context)

UpdateTeamMember updates team member.

type UserAPI

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

UserAPI represents user related api handlers.

func NewUserAPI

func NewUserAPI(deps *depspkg.API) *UserAPI

NewUserAPI creates an UserAPI instance.

func (*UserAPI) AddOrg

func (api *UserAPI) AddOrg(c *gin.Context)

AddOrg adds user org related(join org).

func (*UserAPI) ChangePassword

func (api *UserAPI) ChangePassword(c *gin.Context)

ChangePassword changes user password.

func (*UserAPI) CreateUser

func (api *UserAPI) CreateUser(c *gin.Context)

CreateUser creates a new user.

func (*UserAPI) DisableUserByUID

func (api *UserAPI) DisableUserByUID(c *gin.Context)

DisableUserByUID disables user by uid.

func (*UserAPI) EnableUserByUID

func (api *UserAPI) EnableUserByUID(c *gin.Context)

EnableUserByUID enables user by uid.

func (*UserAPI) GetOrgListByUserUID

func (api *UserAPI) GetOrgListByUserUID(c *gin.Context)

GetOrgListByUserUID returns the org list than user belong.

func (*UserAPI) GetPreference

func (api *UserAPI) GetPreference(c *gin.Context)

GetPreference returns the preference of current signed user.

func (*UserAPI) GetUserByUID

func (api *UserAPI) GetUserByUID(c *gin.Context)

GetUserByUID returns user by uid.

func (*UserAPI) RemoveOrg

func (api *UserAPI) RemoveOrg(c *gin.Context)

RemoveOrg removes user org related(leave org).

func (*UserAPI) ResetPassword

func (api *UserAPI) ResetPassword(c *gin.Context)

ResetPassword resets user password.

func (*UserAPI) SavePreference

func (api *UserAPI) SavePreference(c *gin.Context)

SavePreference saves the preference of current signed user.

func (*UserAPI) SearchUser

func (api *UserAPI) SearchUser(c *gin.Context)

SearchUser searches users by given params.

func (*UserAPI) SwitchOrg

func (api *UserAPI) SwitchOrg(c *gin.Context)

SwitchOrg switches target org.

func (*UserAPI) UpdateOrg

func (api *UserAPI) UpdateOrg(c *gin.Context)

UpdateOrg updates user org realted.

func (*UserAPI) UpdateUser

func (api *UserAPI) UpdateUser(c *gin.Context)

UpdateUser updates user basic information.

Jump to

Keyboard shortcuts

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