parse

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageOptionsFile  = "package.yaml"
	UpstreamOptionsFile = "upstream.yaml"
)

Variables

This section is empty.

Functions

func ListPackages

func ListPackages(packageDirectory string, currentPackage string) (map[string]string, error)

Types

type PackageYaml

type PackageYaml struct {
	Commit         string `json:"commit,omitempty"`
	PackageVersion int    `json:"packageVersion,omitempty"`
	Path           string `json:"-"`
	SubDirectory   string `json:"subdirectory,omitempty"`
	Url            string `json:"url"`
	Version        string `json:"version,omitempty"`
}

func (PackageYaml) Remove added in v0.0.2

func (packageYaml PackageYaml) Remove() error

func (PackageYaml) Write added in v0.0.2

func (packageYaml PackageYaml) Write(overWrite bool) error

type UpstreamYaml

type UpstreamYaml struct {
	AHPackageName      string         `json:"ArtifactHubPackage"`
	AHRepoName         string         `json:"ArtifactHubRepo"`
	AutoInstall        string         `json:"AutoInstall"`
	ChartYaml          chart.Metadata `json:"ChartMetadata"`
	DisplayName        string         `json:"DisplayName"`
	Experimental       bool           `json:"Experimental"`
	Fetch              string         `json:"Fetch"`
	GitBranch          string         `json:"GitBranch"`
	GitHubRelease      bool           `json:"GitHubRelease"`
	GitRepoUrl         string         `json:"GitRepo"`
	GitSubDirectory    string         `json:"GitSubdirectory"`
	HelmChart          string         `json:"HelmChart"`
	HelmRepoUrl        string         `json:"HelmRepo"`
	Hidden             bool           `json:"Hidden"`
	Namespace          string         `json:"Namespace"`
	PackageVersion     int            `json:"PackageVersion"`
	RemoteDependencies bool           `json:"RemoteDependencies"`
	TrackVersions      []string       `json:"TrackVersions"`
	ReleaseName        string         `json:"ReleaseName"`
	Vendor             string         `json:"Vendor"`
}

func ParseUpstreamYaml

func ParseUpstreamYaml(packagePath string) (UpstreamYaml, error)

Jump to

Keyboard shortcuts

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