Skip to content

feat: update docker api #254

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

luboszima
Copy link
Contributor

Goal is to update docker_api.py with for me all known docker related APIs.

@luboszima luboszima marked this pull request as draft June 26, 2025 11:19
Comment on lines +104 to +111
if sort_dir not in ['ASC', 'DESC']:
raise ValueError("sort_dir must be either 'ASC' or 'DESC'")

if sort_by not in ['time', 'level', 'user', 'event']:
raise ValueError("sort_by must be one of: 'time', 'level', 'user', 'event'")

if loglevel not in ['', 'information', 'warning', 'error']:
raise ValueError("loglevel must be one of: '', 'information', 'warning', 'error'")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am adding validation for params. I think it will be good to add similar validation to other APIs.

FYI: @N4S4 @joeperpetua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant