geoservercloudsync.py
- class geoservercloud.GeoServerCloudSync(src_url: str, src_user: str, src_password: str, dst_url: str, dst_user: str, dst_password: str, src_verifytls: bool = True, dst_verifytls: bool = True)
Bases:
object
Facade class allowing synchronization of GeoServer resources between two GeoServer instances
- src_url
base GeoServer URL for source GeoServer instance
- Type:
str
- src_user
GeoServer username for source GeoServer instance
- Type:
str
- src_password
GeoServer password for source GeoServer instance
- Type:
str
- dst_url
base GeoServer URL for destination GeoServer instance
- Type:
str
- dst_user
GeoServer username for destination GeoServer instance
- Type:
str
- dst_password
GeoServer password for destination GeoServer instance
- Type:
str
- copy_feature_type(workspace_name: str, datastore_name: str, feature_type_name: str) tuple[str, int]
Copy a feature type from source to destination GeoServer instance
- copy_feature_types(workspace_name: str, datastore_name: str, copy_layers: bool = False) tuple[str, int]
Copy all feature types in a datastore from source to destination GeoServer instance
- copy_layer(workspace_name: str, feature_type_name: str) tuple[str, int]
Copy a layer from source to destination GeoServer instance
- copy_layer_group(workspace_name: str, layer_group_name: str) tuple[str, int]
Copy a layer group from source to destination GeoServer instance
- copy_layer_groups(workspace_name: str) tuple[str, int]
Copy all layer groups in a workspace from source to destination GeoServer instance
- copy_pg_datastore(workspace_name: str, datastore_name: str, deep_copy: bool = False) tuple[str, int]
Copy a datastore from source to destination GeoServer instance If deep_copy is True, copy all feature types and the corresponding layers
- copy_pg_datastores(workspace_name: str, deep_copy: bool = False) tuple[str, int]
Copy all the datastores in given workspace. If deep_copy is True, copy all feature types and the corresponding layers in each datastore
- copy_resource(resource_dir: str, resource_name: str, content_type: str, workspace_name: str | None = None) tuple[str, int]
Copy a resource from source to destination GeoServer instance
- copy_style(style_name: str, workspace_name: str | None = None) tuple[str, int]
Copy a style from source to destination GeoServer instance
- copy_style_images(workspace_name: str | None = None) tuple[str, int]
Copy all images in a workspace’s style directory, or all global style images if no workspace is provided
- copy_styles(workspace_name: str | None = None, include_images: bool = True) tuple[str, int]
Copy all styles in a workspace (if a workspace is provided) or all global styles
- copy_workspace(workspace_name: str, deep_copy: bool = False) tuple[str, int]
Copy a workspace from the source to the destination GeoServer instance. If deep_copy is True, the copy includes the PostGIS datastores, the feature types in the datastores, the corresponding layers, the layer groups and the styles in the workspace (including images).
- static not_ok(http_status_code: int) bool