| 1 | package WWW::VastAI::Endpoint; | ||
| 2 | 11 | our $VERSION = '0.001'; | |
| 3 | # ABSTRACT: Serverless endpoint wrapper with worker and log helpers | ||
| 4 | |||
| 5 | 11 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 11 | extends 'WWW::VastAI::Object'; | |
| 7 | |||
| 8 | 3 | ▶ | sub endpoint_name { shift->data->{endpoint_name} } |
|
Subroutine
endpoint_name: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | 1 | ▶ | sub endpoint_state { shift->data->{endpoint_state} } |
|
Subroutine
endpoint_state: called CC=1 SCAR=0.0
Pod
documented
| |||
| 10 | 1 | ▶ | sub api_key { shift->data->{api_key} } |
|
Subroutine
api_key: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | |||
| 12 | 1 | ▶ | sub workers { |
|
Subroutine
workers: called CC=1 SCAR=0.0
Pod
documented
| |||
| 13 | 1 | my ($self) = @_; | |
| 14 | 1 | return $self->_client->endpoints->workers($self->id); | |
| 15 | } | ||
| 16 | |||
| 17 | 1 | ▶ | sub logs { |
|
Subroutine
logs: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 1 | my ($self, %params) = @_; | |
| 19 | 1 | return $self->_client->endpoints->logs($self->endpoint_name, %params); | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | ▶ | sub delete { |
|
Subroutine
delete: called CC=1 SCAR=0.0
Pod
documented
| |||
| 23 | 1 | my ($self) = @_; | |
| 24 | 1 | return $self->_client->endpoints->delete($self->id); | |
| 25 | } | ||
| 26 | |||
| 27 | 11 | 1; | |
| 28 | |||
| 29 | __END__ | ||