package discovery
import "github.com/appc/spec/discovery"
Package discovery contains an experimental implementation of the Image Discovery section of the appc specification.
Index ¶
- type App
- func NewApp(name string, labels map[string]string) (*App, error)
- func NewAppFromString(app string) (*App, error)
- type Endpoints
Types ¶
type App ¶
func NewApp ¶
func NewAppFromString ¶
NewAppFromString takes a command line app parameter and returns a map of labels.
Example app parameters:
example.com/reduce-worker:1.0.0 example.com/reduce-worker,channel=alpha,label=value
type Endpoints ¶
func DiscoverEndpoints ¶
DiscoverEndpoints will make HTTPS requests to find the ac-discovery meta tags and optionally will use HTTP if insecure is set. Based on the app passed the discovery templates will be filled out and returned in eps.
Source Files ¶
discovery.go doc.go http.go parse.go
- Version
- v0.2.0
- Published
- Jan 21, 2015
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 43 minutes ago –
Tools for package owners.