blob: df2e5c578fe3f1412b8f5e55faaed564836f4300 [file] [log] [blame] [edit]
#ifndef PRODUCTION_BORG_MGMT_NODE_PROXY_SAFEPOWER_SAFEPOWER_AGENT_ACTION_VALIDATION_H_
#define PRODUCTION_BORG_MGMT_NODE_PROXY_SAFEPOWER_SAFEPOWER_AGENT_ACTION_VALIDATION_H_
#include "safepower_agent.pb.h"
#include "safepower_agent_config.pb.h"
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "absl/time/time.h"
namespace safepower_agent {
absl::Status ValidateRequest(
const safepower_agent_proto::StartActionRequest& request,
absl::string_view node_entity_tag,
const safepower_agent_proto::SystemState& initial_system_state,
absl::Time start_time,
const safepower_agent_config::ConditionValidationOptions& options =
safepower_agent_config::ConditionValidationOptions::default_instance());
} // namespace safepower_agent
#endif // PRODUCTION_BORG_MGMT_NODE_PROXY_SAFEPOWER_SAFEPOWER_AGENT_ACTION_VALIDATION_H_