swagger

package
v0.0.0-...-b420f67 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

Go API Server for swagger

This files describes the app lifecycle service

Overview

This server was generated by the [swagger-codegen] (https://github.com/swagger-api/swagger-codegen) project.
By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

To see how to make this your own, look here:

README

  • API version: 1.0.0
  • Build date: 2020-08-05T11:42:07.144Z[GMT]
Running the server

To run the server, follow these simple steps:

go run main.go

Documentation

Overview

* App Lifecycle Service * * This files describes the app lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io

* App Lifecycle Service * * This files describes the App lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io

* App Lifecycle Service * * This files describes the app lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io

* App Lifecycle Service * * This files describes the App lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io

Index

Constants

View Source
const SystemdClient = "systemd:8080"

Variables

This section is empty.

Functions

func AddContainer

func AddContainer(w http.ResponseWriter, r *http.Request)

AddContainer adds a container within the specified namespace

func AddRoutes

func AddRoutes(newRoutes utils.Routes)

func DeleteContainer

func DeleteContainer(w http.ResponseWriter, r *http.Request)

DeleteContainer ...

func ExportContainer

func ExportContainer(w http.ResponseWriter, r *http.Request)

func GetClient

func GetClient() *containers.Client

GetClient returns a client

func GetContainer

func GetContainer(w http.ResponseWriter, r *http.Request)

GetContainer returns a container

func GetContainers

func GetContainers(w http.ResponseWriter, r *http.Request)

GetContainers ...

func GetNamespaces

func GetNamespaces(w http.ResponseWriter, r *http.Request)

GetNamespaces gets all available namespaces

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter() *mux.Router

func UpdateContainer

func UpdateContainer(w http.ResponseWriter, r *http.Request)

UpdateContainer updates the specified container

func Upgrade

func Upgrade(w http.ResponseWriter, r *http.Request)

Upgrade upgrades a list of containers

Types

type ContainersRequest

type ContainersRequest struct {
	Ns         string
	ID         string
	Containers []containers.Container
}

ContainersRequest for RPCs

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

type Routes

type Routes []Route

type Service

type Service int

Service ...

func (*Service) AddContainer

func (s *Service) AddContainer(req ContainersRequest, resp *int) error

AddContainer adds a container within the specified namespace

func (*Service) AddContainerFromFile

func (s *Service) AddContainerFromFile(req ContainersRequest, resp *int) error

func (*Service) CleanupImages

func (s *Service) CleanupImages(ns string, resp *int) error

func (*Service) DeleteContainer

func (s *Service) DeleteContainer(req ContainersRequest, res *int) error

DeleteContainer deletes a container

func (*Service) DeleteInactive

func (s *Service) DeleteInactive(req ContainersRequest, resp *int) error

func (*Service) GetContainer

func (s *Service) GetContainer(req ContainersRequest, container *containers.Container) error

GetContainer returns a container

func (*Service) GetContainers

func (s *Service) GetContainers(namespace string, containers *[]containers.Container) error

GetContainers returns an array of installed containers

func (*Service) GetNamespaces

func (s *Service) GetNamespaces(req int, resp *[2]string) error

GetNamespaces ...

func (*Service) ResetContainer

func (s *Service) ResetContainer(req ContainersRequest, resp *int) error

func (*Service) Start

func (s *Service) Start(req ContainersRequest, res *int) error

func (*Service) StartContainer

func (s *Service) StartContainer(req ContainersRequest, res *int) error

func (*Service) StopContainer

func (s *Service) StopContainer(req ContainersRequest, res *int) error

func (*Service) UpdateAvailable

func (s *Service) UpdateAvailable(req ContainersRequest, resp *bool) error

UpdateAvailable - Checks for available updates for a given container

func (*Service) Upgrade

func (s *Service) Upgrade(req ContainersRequest, res *int) error

Upgrade upgrades a list of containers

Directories

Path Synopsis
* Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io * Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io * Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io * Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io
* Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io * Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io * Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io * Container Lifecycle Service * * This files describes the container lifecycle service * * API version: 1.0.0 * Contact: opensource@peramic.io

Jump to

Keyboard shortcuts

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