artifact-local

command module
v0.0.0-...-66c55d0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 6 Imported by: 0

README

Reference Bob Artifact Store

This is a simple artifact store enabling Bob to store build artifacts.

Requirements

  • Go 1.18+

Running

  • go build main.go to compile the code and obtain a binary main.
  • ./main will start on port 8001 by default, set the env var PORT to change.

API

Here {path} represents {pipeline-group}/{pipeline-name}/{run-id}/{artifact-name}.

  • GET /bob_artifact/{path}: Returns the artifact at the path if exists.
  • POST /bob_artifact/{path}: Takes the file contents as the post body. Writes the file at the path.
  • DELETE /bob_artifact/{path}: Deletes the file at the path.
  • GET /ping: Responds with an Ack.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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