Skip to content

Latest commit

 

History

History
73 lines (56 loc) · 2.22 KB

File metadata and controls

73 lines (56 loc) · 2.22 KB

Flame API Reference

This document provides the API reference for Flame's gRPC services.

Services Overview

Flame exposes three gRPC services:

Service Description Proto File
Frontend Client-facing API for sessions, tasks, and applications frontend.proto
Backend Executor-facing API for node and executor management backend.proto
Instance Application instance lifecycle management shim.proto

Quick Links

Package

All services and messages are defined in the flame.v1 package.

package flame.v1;

Authentication

Flame supports TLS for secure communication. Configure TLS certificates in your client configuration:

current-context: flame
contexts:
  - name: flame
    cluster:
      endpoint: "https://flame-session-manager:8080"
      tls:
        ca_file: "/etc/flame/certs/ca.crt"
        cert_file: "/etc/flame/certs/client.crt"
        key_file: "/etc/flame/certs/client.key"
    cache:
      endpoint: "grpcs://flame-object-cache:9090"
      tls:
        ca_file: "/etc/flame/certs/ca.crt"
        cert_file: "/etc/flame/certs/client.crt"
        key_file: "/etc/flame/certs/client.key"

Error Handling

gRPC status codes are used for error reporting:

Code Description
OK Operation succeeded
NOT_FOUND Resource not found
ALREADY_EXISTS Resource already exists
INVALID_ARGUMENT Invalid request parameters
FAILED_PRECONDITION Operation not allowed in current state
INTERNAL Internal server error

Related Documentation