models

package
v0.0.0-...-144d7dc Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name     string `json:"name"`
	Homepage string `json:"homepage"`
	Contact  string `json:"contact"`
}

type Binary

type Binary struct {
	Platform string `json:"platform"`
	Url      string `json:"url"`
	Checksum string `json:"checksum"`
}

type Plugin

type Plugin struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Version     string    `json:"version"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	Company     string    `json:"company"`
	Authors     []Author  `json:"authors"`
	Homepage    string    `json:"homepage"`
	Binaries    []Binary  `json:"binaries"`
}

type PluginModel

type PluginModel interface {
	PopulateModel(interface{}) []Plugin
}

func NewPlugins

func NewPlugins(logger io.Writer) PluginModel

type Plugins

type Plugins struct {
	// contains filtered or unexported fields
}

func (*Plugins) PopulateModel

func (p *Plugins) PopulateModel(input interface{}) []Plugin

type PluginsJson

type PluginsJson struct {
	Plugins []Plugin `json:"plugins"`
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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