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
- func AddContainer(w http.ResponseWriter, r *http.Request)
- func AddRoutes(newRoutes utils.Routes)
- func DeleteContainer(w http.ResponseWriter, r *http.Request)
- func ExportContainer(w http.ResponseWriter, r *http.Request)
- func GetClient() *containers.Client
- func GetContainer(w http.ResponseWriter, r *http.Request)
- func GetContainers(w http.ResponseWriter, r *http.Request)
- func GetNamespaces(w http.ResponseWriter, r *http.Request)
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter() *mux.Router
- func UpdateContainer(w http.ResponseWriter, r *http.Request)
- func Upgrade(w http.ResponseWriter, r *http.Request)
- type ContainersRequest
- type Route
- type Routes
- type Service
- func (s *Service) AddContainer(req ContainersRequest, resp *int) error
- func (s *Service) AddContainerFromFile(req ContainersRequest, resp *int) error
- func (s *Service) CleanupImages(ns string, resp *int) error
- func (s *Service) DeleteContainer(req ContainersRequest, res *int) error
- func (s *Service) DeleteInactive(req ContainersRequest, resp *int) error
- func (s *Service) GetContainer(req ContainersRequest, container *containers.Container) error
- func (s *Service) GetContainers(namespace string, containers *[]containers.Container) error
- func (s *Service) GetNamespaces(req int, resp *[2]string) error
- func (s *Service) ResetContainer(req ContainersRequest, resp *int) error
- func (s *Service) Start(req ContainersRequest, res *int) error
- func (s *Service) StartContainer(req ContainersRequest, res *int) error
- func (s *Service) StopContainer(req ContainersRequest, res *int) error
- func (s *Service) UpdateAvailable(req ContainersRequest, resp *bool) error
- func (s *Service) Upgrade(req ContainersRequest, res *int) error
Constants ¶
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 DeleteContainer ¶
func DeleteContainer(w http.ResponseWriter, r *http.Request)
DeleteContainer ...
func ExportContainer ¶
func ExportContainer(w http.ResponseWriter, r *http.Request)
func GetContainer ¶
func GetContainer(w http.ResponseWriter, r *http.Request)
GetContainer returns a container
func GetNamespaces ¶
func GetNamespaces(w http.ResponseWriter, r *http.Request)
GetNamespaces gets all available namespaces
func UpdateContainer ¶
func UpdateContainer(w http.ResponseWriter, r *http.Request)
UpdateContainer updates the specified container
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 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) 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 ¶
GetNamespaces ...
func (*Service) ResetContainer ¶
func (s *Service) ResetContainer(req ContainersRequest, resp *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
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 |