Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog is collected information about
func (*Catalog) Insert ¶
Insert places the given entry in the catalog potentially replacing an entry with the name name
type Entry ¶
type Entry struct { ProjectName string `json:"project_name"` URL string `json:"project_url,omitempty"` Author string `json:"author,omitempty"` Homepage string `json:"home_page,omitempty"` Description string `json:"description"` Discussion string `json:"discussion_url,omitempty"` Documentation string `json:"documentation_url,omitempty"` Tags []string `json:"tags,omitempty"` Version string `json:"version,omitempty"` Origin string `json:"origin,omitempty"` }
Entry contains the properties of a project which are recorded as part of the catalog
type Source ¶
type Source struct { Name string `json:"name"` // Destination string `json:"destination"` Method string `json:"method"` Parameters map[string]string `json:"parameters"` }
Source describes how to retrieve a catalog with the given name
type SourceFile ¶
type SourceFile struct {
// contains filtered or unexported fields
}
SourceFile is collected information about
func LoadSource ¶
func LoadSource(r io.Reader) (*SourceFile, error)
LoadSource loads an existing catalog source description in json form from the given reader
func NewSourceFile ¶
func NewSourceFile(name, destination, method string) *SourceFile
NewSourceFile creates a new empty source description file
func (*SourceFile) StoreSource ¶
func (s *SourceFile) StoreSource(w io.Writer) error
StoreSource writes the catalog in json form to the given writer
Click to show internal directories.
Click to hide internal directories.