Documentation ¶
Overview ¶
Package feed helps work with a Porter package feed (mixin or plugin).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTemplate ¶
func NewTemplatesBox ¶
func NewTemplatesBox() *packr.Box
NewSchemas creates or retrieves the packr box with the porter template files.
Types ¶
type GenerateOptions ¶
func (*GenerateOptions) ValidateSearchDirectory ¶
func (o *GenerateOptions) ValidateSearchDirectory(cxt *context.Context) error
func (*GenerateOptions) ValidateTemplateFile ¶
func (o *GenerateOptions) ValidateTemplateFile(cxt *context.Context) error
type MixinEntries ¶
type MixinEntries []*MixinFileset
MixinEntries is used to sort the entries in a mixin feed by when they were last updated
func (MixinEntries) Len ¶
func (e MixinEntries) Len() int
func (MixinEntries) Less ¶
func (e MixinEntries) Less(i, j int) bool
func (MixinEntries) Swap ¶
func (e MixinEntries) Swap(i, j int)
type MixinFeed ¶
type MixinFeed struct { *context.Context // Index of mixin files Index map[string]map[string]*MixinFileset // Mixins present in the feed Mixins []string // Updated timestamp according to the atom xml feed Updated *time.Time }
func NewMixinFeed ¶
func (*MixinFeed) Generate ¶
func (feed *MixinFeed) Generate(opts GenerateOptions) error
func (*MixinFeed) Save ¶
func (feed *MixinFeed) Save(opts GenerateOptions) error
type MixinFileset ¶
func (*MixinFileset) FindDownloadURL ¶
func (f *MixinFileset) FindDownloadURL(os string, arch string) *url.URL
func (*MixinFileset) GetLastUpdated ¶
func (f *MixinFileset) GetLastUpdated() time.Time
func (*MixinFileset) Updated ¶
func (f *MixinFileset) Updated() string
Click to show internal directories.
Click to hide internal directories.