apps

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CMListAppsURI = "/api/search?sortBy=com.soa.sort.order.alphabetical&count=20&start=0&q=type:app"
)

Variables

This section is empty.

Functions

func ListApps

func ListApps(config control.Configuration, debug bool) error

Types

type App

type App struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	ID          string `json:"id"`
	Visibility  string `json:"visibility"`
	Connections int    `json:"connections"`
	Followers   int    `json:"followers"`
	Rating      float32
}

App is a convenience structure for a CM App

type Apps

type Apps []App

Apps is a collection of API structs

func (Apps) Len

func (slice Apps) Len() int

Len is an implementation of sort interface for length of Apps

func (Apps) Less

func (slice Apps) Less(i, j int) bool

Less is an implementation of sort interface for less comparison

func (Apps) Swap

func (slice Apps) Swap(i, j int)

Swap is an implementation of the sort interface swap function

Jump to

Keyboard shortcuts

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