parser

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseServiceBinds

func ParseServiceBinds(data []byte) (bind.Binds, error)

func ServiceNamesFromJSON

func ServiceNamesFromJSON(serviceData []byte, collectionName string) ([]string, error)

Types

type BinlinkMap

type BinlinkMap map[string][]string

type ServiceCollection

type ServiceCollection struct {
	Name         string     `json:"collection"`
	DataServices []string   `json:"data_services"`
	AllServices  []string   `json:"all_services"`
	Pins         []string   `json:"pinned_packages"`
	ExtraPkgs    []string   `json:"extra_packages"`
	Binlinks     BinlinkMap `json:"binlinks"`
}

func ServiceCollectionFromJSON

func ServiceCollectionFromJSON(serviceData []byte, collectionName string) (ServiceCollection, error)

func ServiceCollectionsFromJSON

func ServiceCollectionsFromJSON(serviceData []byte) ([]ServiceCollection, error)

Jump to

Keyboard shortcuts

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