Re: [jenkins-ci PATCH 01/20] quayadmin: Import initial implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 17, 2019 at 01:53:50PM +0200, Andrea Bolognani wrote:
> This code was written by Daniel P. Berrangé, and contains
> the scaffolding necessary to call Quay APIs as well as the
> implementation of a few commands.
> 
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
> ---
>  guests/quayadmin | 198 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 198 insertions(+)
>  create mode 100755 guests/quayadmin

Since this is my code

  Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>


> diff --git a/guests/quayadmin b/guests/quayadmin
> new file mode 100755
> index 0000000..31ea929
> --- /dev/null
> +++ b/guests/quayadmin
> @@ -0,0 +1,198 @@
> +#!/usr/bin/python3
> +# -*- python -*-
> +#
> +# quayadmin - client for quay.io
> +#
> +# Copyright (C) 2019 Red Hat, Inc.
> +#
> +# This program is free software; you can redistribute it and/or modify it
> +# under the terms of the GNU General Public License as published by the
> +# Free Software Foundation; either version 2 of the License, or (at your
> +# option) any later version.
> +#
> +# This program is distributed in the hope that it will be useful, but
> +# WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
> +# Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License along
> +# with this program. If not, see <https://www.gnu.org/licenses/>.
> +
> +import argparse
> +import requests
> +import sys
> +
> +baseurl = "https://quay.io/api/v1";
> +clientid = "xxx"
> +clientsecret = "xxx"
> +token= "xxx"

/me tries to remember if I put the "xxx" in there myself before
sending you the code, or if you have grabbed my token before
scrubbing it yourself :-P


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux