info

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookbookInfo

type CookbookInfo struct {
	Name         string            `json:"name"`
	Version      string            `json:"version,omitempty"`
	Description  string            `json:"description,omitempty"`
	Maintainer   string            `json:"maintainer,omitempty"`
	License      string            `json:"license,omitempty"`
	Source       string            `json:"source"`
	Dependencies map[string]string `json:"dependencies,omitempty"`
	Versions     []string          `json:"available_versions,omitempty"`
}

CookbookInfo contains detailed information about a cookbook

type Provider

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

Provider provides cookbook information

func New

func New(sourceManager *source.Manager) *Provider

New creates a new info provider

func (*Provider) GetInfo

func (p *Provider) GetInfo(ctx context.Context, cookbookName string, requestedVersion string) (*CookbookInfo, error)

GetInfo retrieves information about a cookbook If requestedVersion is empty, it returns info for the latest version

func (*Provider) GetVersions

func (p *Provider) GetVersions(ctx context.Context, cookbookName string) ([]string, error)

GetVersions retrieves just the available versions for a cookbook

Jump to

Keyboard shortcuts

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