def __init__(self, tasker, workflow, registries=None, group=True, goarch=None):
        """
        constructor

        :param tasker: DockerTasker instance
        :param workflow: DockerBuildWorkflow instance
        :param registries: dict, keys are docker registries, values are dicts containing
                           per-registry parameters.
                           Params:
                            * "secret" optional string - path to the secret, which stores
                              login and password for remote registry
        :param group: bool, if true, create a manifest list; otherwise only add tags to
                      amd64 image manifest
        :param goarch: dict, keys are platform, values are go language platform names
        """
        # call parent constructor
        super(GroupManifestsPlugin, self).__init__(tasker, workflow)

        self.group = get_group_manifests(self.workflow, group)

        plat_des_fallback = []
        for platform, architecture in (goarch or {}).items():
            plat_dic = {'platform': platform,
                        'architecture': architecture}
            plat_des_fallback.append(plat_dic)

        platform_descriptors = get_platform_descriptors(self.workflow, plat_des_fallback)
        goarch_from_pd = {}
        for platform in platform_descriptors:
            goarch_from_pd[platform['platform']] = platform['architecture']
        self.goarch = goarch_from_pd

        self.registries = get_registries(self.workflow, deepcopy(registries or {}))
        self.worker_registries = {}
def __init__ ( self , tasker , workflow , registries = None , group = True , goarch = None ) : super ( GroupManifestsPlugin , self ) . __init__ ( tasker , workflow ) self . group = get_group_manifests ( self . workflow , group ) plat_des_fallback = [ ] for platform , architecture in ( goarch or { } ) . items ( ) : plat_dic = { 'platform' : platform , 'architecture' : architecture } plat_des_fallback . append ( plat_dic ) platform_descriptors = get_platform_descriptors ( self . workflow , plat_des_fallback ) goarch_from_pd = { } for platform in platform_descriptors : goarch_from_pd [ platform [ 'platform' ] ] = platform [ 'architecture' ] self . goarch = goarch_from_pd self . registries = get_registries ( self . workflow , deepcopy ( registries or { } ) ) self . worker_registries = { }
constructor

        :param tasker: DockerTasker instance
        :param workflow: DockerBuildWorkflow instance
        :param registries: dict, keys are docker registries, values are dicts containing
                           per-registry parameters.
                           Params:
                            * "secret" optional string - path to the secret, which stores
                              login and password for remote registry
        :param group: bool, if true, create a manifest list; otherwise only add tags to
                      amd64 image manifest
        :param goarch: dict, keys are platform, values are go language platform names