chef

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	KeyBits          = 4096
	SettingPublicPem = "chef.public_pem"
)

Variables

View Source
var (
	ErrMissingMetadataFile = util.NewInvalidArgumentErrorf("metadata.json file is missing")
	ErrInvalidName         = util.NewInvalidArgumentErrorf("package name is invalid")
	ErrInvalidVersion      = util.NewInvalidArgumentErrorf("package version is invalid")
)

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Description     string            `json:"description,omitempty"`
	LongDescription string            `json:"long_description,omitempty"`
	Author          string            `json:"author,omitempty"`
	License         string            `json:"license,omitempty"`
	RepositoryURL   string            `json:"repository_url,omitempty"`
	Dependencies    map[string]string `json:"dependencies,omitempty"`
}

Metadata represents the metadata of a Chef package

type Package

type Package struct {
	Name     string
	Version  string
	Metadata *Metadata
}

Package represents a Chef package

func ParseChefMetadata

func ParseChefMetadata(r io.Reader) (*Package, error)

ParseChefMetadata parses a metadata.json file to retrieve the metadata of a Chef package

func ParsePackage

func ParsePackage(r io.Reader) (*Package, error)

ParsePackage parses the Chef package file

Jump to

Keyboard shortcuts

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