modules

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BumpPatch added in v0.0.65

func BumpPatch(version string) string

func Generate

func Generate(manifest *Manifest) error

func NextPatch added in v0.0.68

func NextPatch(cfg api.Config, manifest *Manifest) (string, error)

NextPatch bumps the patch in major.minor.patch from the latest module version

func Package

func Package(manifest *Manifest, version string) (string, error)

func Register

func Register(cfg api.Config, manifest *Manifest) (*types.Module, error)

Types

type Manifest

type Manifest struct {
	OrgName       string   `yaml:"org_name" json:"orgName"`
	Name          string   `yaml:"name" json:"name"`
	FriendlyName  string   `yaml:"friendly_name" json:"friendlyName"`
	Description   string   `yaml:"description" json:"description"`
	Category      string   `yaml:"category" json:"category"`
	Subcategory   string   `yaml:"subcategory" json:"subcategory"`
	ProviderTypes []string `yaml:"provider_types" json:"providerTypes"`
	Platform      string   `yaml:"platform" json:"platform"`
	Subplatform   string   `yaml:"subplatform" json:"subplatform"`
	Type          string   `yaml:"type" json:"type"`
	AppCategories []string `yaml:"appCategories" json:"appCategories"`
	IsPublic      bool     `yaml:"is_public" json:"isPublic"`
}

func ManifestFromFile

func ManifestFromFile(filename string) (*Manifest, error)

func (Manifest) WriteManifestToFile

func (m Manifest) WriteManifestToFile(filename string) error

Jump to

Keyboard shortcuts

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