api

package
v5.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

internal/api/client.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client handles communication with the OCAP web frontend.

func New

func New(baseURL, apiKey string) *Client

New creates a new API client.

func (*Client) Healthcheck

func (c *Client) Healthcheck() error

Healthcheck checks if the OCAP web frontend is reachable.

func (*Client) Upload

func (c *Client) Upload(filePath string, meta storage.UploadMetadata) error

Upload sends a gzipped JSON mission file to the OCAP web frontend.

Jump to

Keyboard shortcuts

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