nexuscli.api.blobstore package¶
Submodules¶
nexuscli.api.blobstore.collection module¶
-
class
nexuscli.api.blobstore.collection.
BlobstoreCollection
(nexus_http: nexuscli.nexus_http.NexusHttp = None)¶ Bases:
nexuscli.api.base_collection.BaseCollection
-
create
(blobstore: nexuscli.api.blobstore.model.Blobstore) → None¶
-
delete
(name: str) → None¶ See Nexus 3 API documentation.
-
get_by_name
(name: str) → nexuscli.api.blobstore.model.Blobstore¶ Get a Nexus 3 blobstore by its name.
- Parameters
name – name of the wanted blobstore
- Returns
the requested object
- Raises
exception.NexusClientInvalidRepository – when a repository with the given name isn’t found.
-
quota_status
(name: str) → dict¶ See Nexus 3 API documentation.
-
raw_list
() → List[str]¶ List of all blobstores on the Nexus 3 service.
- Returns
a list of names
- Raises
exception.NexusClientAPIError – if list cannot be retrieved; i.e.: any HTTP code
other than 200.
-
nexuscli.api.blobstore.model module¶
-
class
nexuscli.api.blobstore.model.
Blobstore
(nexus_http: Optional[nexuscli.nexus_http.NexusHttp] = None, **kwargs)¶ Bases:
nexuscli.api.base_model.BaseModel
Blob store object.
Configuration example for type: File
{ "softQuota": { "type": "spaceUsedQuota", "limit": 100 }, "name": "test", "type": "File", "path": "/tmp/test" }
Configuration example for type: S3
{ "name": "something-s3", "type": "S3", "bucketConfiguration": { "bucket": { "region": "us-east-1", "name": "mynexusbucket", "prefix": "path-prefix", "expiration": 3 }, "encryption": { "encryptionType": "s3ManagedEncryption", "encryptionKey": "" }, "bucketSecurity": { "accessKeyId": "AKIASLMFS2HSCEW2MZCC", "role": "", "sessionToken": "" } } }
-
ENCRYPTION_TYPES
= ['s3ManagedEncryption', 'kmsManagedEncryption']¶
-
QUOTA_TYPES
= ['spaceRemainingQuota', 'spaceUsedQuota']¶
-
TYPES
= ['S3', 'File']¶
-
property
soft_quota
¶
-
property
type
¶
-
update
(params: dict) → None¶
-