Skip to content

Commit

Permalink
Expose the list of marathon uri tokens.
Browse files Browse the repository at this point in the history
This is needed by the analyzer to update an app check's config with the
right uri.
  • Loading branch information
mstemm committed Dec 28, 2016
1 parent 21609de commit c5a6dce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions userspace/libsinsp/mesos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ void mesos::refresh_token()
#endif // HAS_CAPTURE
}

const mesos::uri_list_t &mesos::marathon_uris()
{
return (m_discover_marathon_uris ? m_state_http->get_marathon_uris() : m_marathon_uris);
}

void mesos::refresh()
{
rebuild_mesos_state();
Expand Down
2 changes: 2 additions & 0 deletions userspace/libsinsp/mesos.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class mesos : public mesos_auth
bool collect_data();
virtual void refresh_token();

const uri_list_t &marathon_uris();

#ifdef HAS_CAPTURE
void send_data_request(bool collect = true);

Expand Down

0 comments on commit c5a6dce

Please sign in to comment.