ultron-attendant

command module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Ultron Attendant

Ultron Attendant is a tool designed to fetch cloud resources data for Ultron. It integrates with various APIs, including émma and Redis, to provide real-time data and caching capabilities to Ultron. The application processes weighted nodes from Kubernetes clusters, calculates median prices, loads interruption rates / latency rates and caches this information for quick access by Ultron.

Ultron Attendant is built with Go and can be run as a standalone application or within a Docker container.

Prerequisites

  • Go 1.23 or higher
  • Docker (if you want to run the application in a container)

Environment Variables

The application requires the following environment variables to be set:

  • EMMA_CLIENT_ID: Your Emma API client ID
  • EMMA_CLIENT_SECRET: Your Emma API client secret

Installation

Clone the repository
git clone https://github.com/be-heroes/ultron-attendant
cd ultron-attendant
Set up environment variables
export EMMA_CLIENT_ID=your_client_id
export EMMA_CLIENT_SECRET=your_client_secret
Build the application
go build -o main main.go
Run the application
./main

Docker

To build and run the application using Docker.

Build the Docker image
docker build -t ultron-attendant:latest .
Run the Docker container
docker run -e EMMA_CLIENT_ID=your_client_id -e EMMA_CLIENT_SECRET=your_client_secret ultron-attendant:latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL