Help us shape the future of Go! Take the 2026 Go Developer Survey

oci

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPreReleaseConstraint

func CheckPreReleaseConstraint(constraint *semver.Constraints, version *semver.Version) bool

CheckPreReleaseConstraint checks whether a given version, stripped of its pre-release suffix

func GetArtifactName

func GetArtifactName(artifact string) string

GetArtifactName extracts the artifact name from the chart reference and replaces ':' with '-'

func GetValuesFromChart

func GetValuesFromChart[T PathNavigator](chart, version string, pathNavigator T) ([]string, error)

GetValuesFromChart fetches the supported versions from a Helm chart specified by the chart and version parameters.

func ListTags

func ListTags(ctx context.Context, repository string) ([]string, error)

ListTags lists the tags for a given repository

func RemoveDomainAndOrg

func RemoveDomainAndOrg(src string) string

RemoveDomainAndOrg removes the domain and organization from the repository URL

func TagExists

func TagExists(tags []string, version string) bool

TagExists checks if a specific version exists in the list of tags

Types

type ListTagsFunc

type ListTagsFunc func(repo string, options ...crane.Option) ([]string, error)

ListTagsFunc is a type for the ListTags function

var DefaultListTags ListTagsFunc = crane.ListTags

DefaultListTags is the default implementation of ListTagsFunc

type LoaderFunc

type LoaderFunc func(name string) (*chart.Chart, error)

LoaderFunc is a function type for loading charts

type PathNavigator

type PathNavigator interface {
	GetSupportedVersions() ([]string, error)
}

type PullFunc

type PullFunc func(src, version string) (string, error)

PullFunc is a function type for pulling charts

Jump to

Keyboard shortcuts

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