-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Agent包管理开发--story=119532566 Agent包管理
- Loading branch information
1 parent
f14f01b
commit 7bf1d65
Showing
52 changed files
with
4,947 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { request } from '../base'; | ||
|
||
export const listPackage = request('GET', 'api/agent/package/'); | ||
export const listPackageNew = request('POST', 'api/agent/package/search/{{pk}}'); | ||
export const updatePackage = request('PUT', 'api/agent/package/{{pk}}/'); | ||
export const deletePackage = request('DELETE', 'api/agent/package/{{pk}}/'); | ||
export const quickSearchCondition = request('GET', 'api/agent/package/quick_search_condition/'); | ||
export const uploadPackage = request('POST', 'api/agent/package/upload/'); | ||
export const parsePackage = request('POST', 'api/agent/package/parse/'); | ||
export const createAgentRegisterTask = request('POST', 'api/agent/package/create_register_task/'); | ||
export const queryAgentRegisterTask = request('GET', 'api/agent/package/query_register_task/'); | ||
export const getTags = request('GET', 'api/agent/package/tags/'); | ||
export const getVersion = request('POST', 'api/agent/package/version/'); | ||
export const getDeployedHostsCount = request('POST', 'api/agent/package/deployed_hosts_count/'); | ||
export const createAgentTags = request('POST', 'api/agent/package/create_agent_tags/'); | ||
export const versionCompare = request('POST', 'api/agent/package/version_compare/'); | ||
|
||
export default { | ||
listPackage, | ||
updatePackage, | ||
listPackageNew, | ||
deletePackage, | ||
quickSearchCondition, | ||
uploadPackage, | ||
parsePackage, | ||
createAgentRegisterTask, | ||
queryAgentRegisterTask, | ||
getTags, | ||
getVersion, | ||
getDeployedHostsCount, | ||
createAgentTags, | ||
versionCompare, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.