api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Output string `json:"output"`
}

Response is the response body for the ParseDockerCommand handler.

type Server

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

Server is the web app server.

func NewServer

func NewServer(logger *zerolog.Logger, listener net.Listener, assets fs.FS) *Server

NewServer creates a new Server.

func (*Server) Close

func (server *Server) Close() error

Close closes server and underlying listener.

func (*Server) ParseDockerCommand

func (server *Server) ParseDockerCommand(w http.ResponseWriter, r *http.Request)

ParseDockerCommand parses a Docker command and returns the equivalent Docker Compose YAML.

func (*Server) Run

func (server *Server) Run(ctx context.Context) (err error)

Run starts the server that host webapp and api endpoints.

Jump to

Keyboard shortcuts

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