-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance egctl #1020
Merged
Merged
Enhance egctl #1020
Changes from 22 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a755223
finish get command and refactor code
suchen-sci a118ed2
finish describe object
suchen-sci 4c96e30
finish all describe
suchen-sci 84ab4c6
finish create, delete, update
suchen-sci 5f9815a
finish other command
suchen-sci 6a807fe
add example framework
suchen-sci 587e948
add more examples, add other missing commands
suchen-sci 75219f6
add command for object status
suchen-sci 9a74cf9
udpate egctl command
suchen-sci 7d1f484
update
suchen-sci 9f75742
add comments
suchen-sci 7bc5634
add more comments, add egctl cheat sheet
suchen-sci 9d8063a
update egctl cheat sheet
suchen-sci a496d83
fix random test bug
suchen-sci 86baec0
update based on comment
suchen-sci 599cd37
rewrite apply create get command
suchen-sci bf84ef6
finish describe, delete and refactor code
suchen-sci 66d0089
update examples
suchen-sci e3169b9
Merge branch 'main' into enhance-egctl
suchen-sci f4a1e84
fix typo
suchen-sci d62f266
add security for egctl
suchen-sci d65c077
update doc
suchen-sci cb58b43
refactor code structure
suchen-sci f69ec13
update based on code review comments
suchen-sci 14ebb75
update based on github action
suchen-sci 7dfd1cc
update based on github action
suchen-sci 83df91b
update based on github action
suchen-sci 92f54a8
update based on github action
suchen-sci b8593fc
update based on github action
suchen-sci c4e92c4
update based on github action
suchen-sci 6e81f67
support egctl create/apply -f -
suchen-sci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2017, MegaEase | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http:https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package command | ||
|
||
import "github.com/megaease/easegress/cmd/client/general" | ||
|
||
var makePath = general.MakePath | ||
|
||
const ( | ||
apiURL = general.ApiURL | ||
|
||
membersURL = general.MembersURL | ||
memberURL = general.MemberItemURL | ||
|
||
objectKindsURL = general.ObjectKindsURL | ||
objectsURL = general.ObjectsURL | ||
objectURL = general.ObjectItemURL | ||
|
||
statusObjectURL = general.StatusObjectItemURL | ||
statusObjectsURL = general.StatusObjectsURL | ||
|
||
customDataKindURL = general.CustomDataKindURL | ||
customDataKindItemURL = general.CustomDataKindItemURL | ||
customDataURL = general.CustomDataURL | ||
customDataItemURL = general.CustomDataItemURL | ||
) |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking if we should use more idiomatic
egctl create|apply -f -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, i will update it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw your demo not showing this usage, is it supported now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, user can
create
andapply
resoruce fromyaml
file or stdin.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you will support
egctl create -f -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for misunderstanding... Let me update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, now
egctl create -f -
andegctl apply -f -
is supported.egctl create/apply
will print the help text. I also update related ducoments. Please check again.