cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Agent CLI

This repository contains the command-line interface (CLI) tool for interacting with the Agent and manager service. The CLI allows you to perform various tasks such as running computations, uploading algorithms and datasets, and retrieving results.

Build

From the project root:

make cli

Usage

Run Computation

To run a computation, use the following command:

./build/cocos-cli manager run --computation '{"name": "my-computation"}'
Get attestation

To retrieve attestation from agent, use the following command:

./build/cocos-cli agent attestation get '<report_data>'
Validate attestation

To validate and verify attestation from agent, use the following command:

./build/cocos-cli agent attestation validate '<attestation>' '<report_data>'
Upload Algorithm

To upload an algorithm, use the following command:

./build/cocos-cli agent algo /path/to/algorithm
Upload Dataset

To upload a dataset, use the following command:

./build/cocos-cli agent data /path/to/dataset.csv
Retrieve result

To retrieve the computation result, use the following command:

./build/cocos-cli agent result

Installtion

To use the CLI, you have the option to install it globally on your system. Here's how:

Build the CLI:

Navigate to the project root and run the following command to build the CLI binary:

make install-cli

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI added in v0.0.2

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

func New added in v0.0.2

func New(agentSDK agent.Service) *CLI

func (*CLI) NewAlgorithmsCmd added in v0.0.2

func (cli *CLI) NewAlgorithmsCmd() *cobra.Command

func (*CLI) NewAttestationCmd added in v0.0.2

func (cli *CLI) NewAttestationCmd() *cobra.Command

func (*CLI) NewDatasetsCmd added in v0.0.2

func (cli *CLI) NewDatasetsCmd() *cobra.Command

func (*CLI) NewGetAttestationCmd added in v0.0.2

func (cli *CLI) NewGetAttestationCmd() *cobra.Command

func (*CLI) NewResultsCmd added in v0.0.2

func (cli *CLI) NewResultsCmd() *cobra.Command

func (*CLI) NewValidateAttestationValidationCmd added in v0.0.2

func (cli *CLI) NewValidateAttestationValidationCmd() *cobra.Command

Jump to

Keyboard shortcuts

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