Artifactory-Client
view release on metacpan or search on metacpan
lib/Artifactory/Client.pm view on Meta::CPAN
my ( $self, %args ) = @_;
return $self->_handle_search( 'artifact', %args );
}
=head2 archive_entry_search( name => $name, repos => [ @repos ] )
Search archive entries for classes or any other jar resources
=cut
sub archive_entry_search {
my ( $self, %args ) = @_;
return $self->_handle_search( 'archive', %args );
}
=head2 gavc_search( g => 'foo', c => 'bar', result_detail => [qw(info properties)], )
Search by Maven coordinates: groupId, artifactId, version & classifier
=cut
sub gavc_search {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'gavc', %args );
}
=head2 property_search( p => [ 'v1', 'v2' ], repos => [ 'repo1', 'repo2' ], result_detail => [qw(info properties)], )
Search by properties
=cut
sub property_search {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'prop', %args );
}
=head2 checksum_search( md5 => '12345', repos => [ 'repo1', 'repo2' ], result_detail => [qw(info properties)], )
Artifact search by checksum (md5 or sha1)
=cut
sub checksum_search {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'checksum', %args );
}
=head2 bad_checksum_search( type => 'md5', repos => [ 'repo1', 'repo2' ] )
Find all artifacts that have a bad or missing client checksum values (md5 or
sha1)
=cut
sub bad_checksum_search {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'badChecksum', %args );
}
=head2 artifacts_not_downloaded_since( notUsedSince => 12345, createdBefore => 12345, repos => [ 'repo1', 'repo2' ] )
Retrieve all artifacts not downloaded since the specified Java epoch in msec.
=cut
sub artifacts_not_downloaded_since {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'usage', %args );
}
=head2 artifacts_with_date_in_date_range( from => 12345, repos => [ 'repo1', 'repo2' ], dateFields => [ 'created' ] )
Get all artifacts with specified dates within the given range. Search can be limited to specific repositories (local or
caches).
=cut
sub artifacts_with_date_in_date_range {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'dates', %args );
}
=head2 artifacts_created_in_date_range( from => 12345, to => 12345, repos => [ 'repo1', 'repo2' ] )
Get all artifacts created in date range
=cut
sub artifacts_created_in_date_range {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'creation', %args );
}
=head2 pattern_search( $pattern )
Get all artifacts matching the given Ant path pattern
=cut
sub pattern_search {
my ( $self, $pattern, %args ) = @_;
my $repository = $args{repository} || $self->repository();
my $url = $self->_api_url() . "/search/pattern?pattern=$repository:$pattern";
return $self->get($url);
}
=head2 builds_for_dependency( sha1 => 'abcde' )
Find all the builds an artifact is a dependency of (where the artifact is included in the build-info dependencies)
=cut
sub builds_for_dependency {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'dependency', %args );
}
=head2 license_search( unapproved => 1, unknown => 1, notfound => 0, neutral => 0, repos => [ 'foo', 'bar' ] )
Search for artifacts with specified statuses
=cut
sub license_search {
my ( $self, %args ) = @_;
return $self->_handle_search_props( 'license', %args );
( run in 2.248 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )