bundle

package
v0.0.0-...-faefad5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BundleRawState = map[int]string{
	0:  "Unknown",
	1:  "Uninstalled",
	2:  "Installed",
	4:  "Resolved",
	8:  "Starting",
	16: "Stopping",
	32: "Active",
}

BundleRawState Bundles states from integer to string map

Functions

func Build

func Build(i *objects.Instance)

Build instance on server

func Delete

func Delete(i *objects.Instance)

Delete bundle on instance

func Install

func Install(i *objects.Instance, bundlePath string, level string) error

Install instance on server

func Uninstall

func Uninstall(i *objects.Instance)

Uninstall bundle on instance

Types

type Bundle

type Bundle struct {
	ID           int    `json:"id"`
	Name         string `json:"name"`
	Fragment     bool   `json:"fragment"`
	StateRaw     int    `json:"stateRaw"`
	State        string `json:"state"`
	Version      string `json:"version"`
	SymbolicName string `json:"symbolicName"`
	Category     string `json:"category"`
}

Bundle OSGI bundle struct

func Get

func Get(i *objects.Instance, name string) (*Bundle, error)

Get bundle from instance

func List

func List(i *objects.Instance) ([]*Bundle, error)

List bundles on instance

func Search(i *objects.Instance, label string) (*Bundle, error)

Search searches through bundles on instance

func Start

func Start(i *objects.Instance, bundle *Bundle) (*Bundle, error)

Start a bundle

func Stop

func Stop(i *objects.Instance, bundle *Bundle) (*Bundle, error)

Stop bundle on instance

Jump to

Keyboard shortcuts

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