appcatalog

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 27

README

Go Reference CircleCI

appcatalog

This repo contains 2 components that support the Giant Swarm App Platform.

  • A Helm chart used by opsctl ensure appcatalogs.
  • A Go library we use in integration tests to get the correct version of managed apps.

Getting Project

Clone the git repository: https://github.com/giantswarm/appcatalog.git

How to build

Build it using the standard go build command.

go build github.com/giantswarm/appcatalog

Contact

Contributing & Reporting Bugs

See CONTRIBUTING for details on submitting patches, the contribution workflow as well as reporting bugs.

License

appcatalog is under the Apache 2.0 license. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestChart

func GetLatestChart(ctx context.Context, storageURL, app, appVersion string) (string, error)

GetLatestChart returns the latest chart tarball file for the specified storage URL and app and returns notFoundError when it can't find a specified app.

func GetLatestVersion

func GetLatestVersion(ctx context.Context, storageURL, app, appVersion string) (string, error)

GetLatestVersion returns the latest app version for the specified storage URL and app and returns notFoundError when it can't find a specified app.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func NewTarballURL

func NewTarballURL(baseURL string, appName string, version string) (string, error)

NewTarballURL returns the chart tarball URL for the specified app and version.

Types

type Entry added in v0.4.0

type Entry struct {
	AppVersion  string    `json:"appVersion"`
	Created     time.Time `json:"created"`
	Description string    `json:"description"`
	Home        string    `json:"home"`
	Icon        string    `json:"icon"`
	Keywords    []string  `json:"keywords"`
	Name        string    `json:"name"`
	Urls        []string  `json:"urls"`
	Version     string    `json:"version"`
}

func GetLatestEntry added in v0.4.0

func GetLatestEntry(ctx context.Context, storageURL, app, appVersion string) (Entry, error)

GetLatestEntry returns the latest app entry for the specified storage URL and app and returns notFoundError when it can't find a specified app.

Jump to

Keyboard shortcuts

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