package
0.7.3
Repository: https://github.com/kubernetes-helm/monocular.git
Documentation: pkg.go.dev

# Functions

AddCanonicalLink adds a "self" link to a chart resource's canonical API endpoint.
AddChartRelationship adds a "relationships" reference to a chartVersion resource's chart.
AddLatestChartVersionRelationship adds a "relationships" reference to a chart resource's latest chartVersion.
GetChartVersion returns a specific versions of a chart.
GetChartVersions returns all versions of a chart.
GetLatestChartVersion returns the most recent version from a slice of versioned charts.
IsYAML checks for valid YAML.
MakeChartID returns a chart ID in the form {:repo}/{:chart}.
MakeChartResource composes a Resource type that represents a repo+chart.
MakeChartResources accepts a slice of repo+chart data, converts each to a Resource type and then returns the slice of the converted Resource types (throwing away version information, and collapsing all chart+version records into a single resource representation for each chart).
MakeChartVersionID returns a chartVersion ID in the form {:repo}/{:chart}:{:version}.
MakeChartVersionResource composes a Resource type that represents a chartVersion.
MakeChartVersionResources accepts a slice of versioned repo+chart data, converts each to a Resource type and then returns the slice of the converted Resource types (retaining version info).
MakeRepoChartRouteURL returns a string that represents /{:apiVersion}/charts/{:repo}/{:chart}.
MakeRepoChartVersionRouteURL returns a string that represents /{:apiVersion}/charts/{:repo}/{:chart}/versions/{:version}.
MakeRepoResource composes a Resource type that represents a repository.
MakeRepoResources returns an array of RepoResources.
ParseYAMLRepo converts a YAML representation of a repo to a slice of charts.

# Constants

APIVer1String is the API version 1 string we include in route URLs.