Documentation ¶
Index ¶
- type PreloadedFormulary
- type V1Cache
- func (index *V1Cache) Aliases() map[string]string
- func (index *V1Cache) FetchFormula(_ context.Context, name string) (formula.MultiPlatformFormula, error)
- func (index *V1Cache) Find(name string) *brewv1.Info
- func (index *V1Cache) List() brewv1.Index
- func (index *V1Cache) ListNames() []string
- func (index *V1Cache) SearchFunc(match func(*brewv1.Info) bool) []*brewv1.Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreloadedFormulary ¶
PreloadedFormulary defines the formulary's capabilities.
type V1Cache ¶
type V1Cache struct {
// contains filtered or unexported fields
}
V1Cache represents formula data cached from the Homebrew API.
func FetchV1 ¶
func FetchV1(ctx context.Context, apiclient *brewapi.Client, dir string, autoUpdate *brewenv.AutoUpdateConfig) (*V1Cache, error)
FetchV1 fetches the v1 index either from the cache or from the API according to its existence and the auto-update configuration.
func (*V1Cache) FetchFormula ¶
func (index *V1Cache) FetchFormula(_ context.Context, name string) (formula.MultiPlatformFormula, error)
FetchFormula implements formula.Formulary.
Click to show internal directories.
Click to hide internal directories.