Added parameter 'type' to resource/custom type 'harbor_registry' in order to define the type of the registry endpoint, e.g. 'harbor', 'gitlab'.
Set the default value of new parameter 'type' to previously hard-coded value 'harbor'.
In general split much code into small methods in order to allow reuse and remove duplicated code, and improve readability and understanding.
Added parameter 'type' to resource/custom type 'harbor_registry' in order to define the type of the registry endpoint, e.g. 'harbor', 'gitlab'. Set the default value of new parameter 'type' to previously hard-coded value 'harbor'. In general split much code into small methods in order to allow reuse and remove duplicated code, and improve readability and understanding.
Note that this branch bases on branch of pull request #25.
Additionally: In self.instances():
In create():