Documentation ¶
Index ¶
- func Reverse(list []*rspb.Release, sortFn func([]*rspb.Release))
- func SortByChartName(list []*rspb.Release)
- func SortByDate(list []*rspb.Release)
- func SortByName(list []*rspb.Release)
- func SortByRevision(list []*rspb.Release)
- func SplitManifests(bigFile string) map[string]string
- type FilterFunc
- type SimpleHead
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortByChartName ¶
SortByChartName sorts the list of releases by a release's chart name in lexicographical order.
func SortByDate ¶
SortByDate returns the list of releases sorted by a release's last deployed time (in seconds).
func SortByName ¶
SortByName returns the list of releases sorted in lexicographical order.
func SortByRevision ¶
SortByRevision returns the list of releases sorted by a release's revision number (release.Version).
func SplitManifests ¶
SplitManifests takes a string of manifest and returns a map contains individual manifests
Types ¶
type FilterFunc ¶
FilterFunc returns true if the release object satisfies the predicate of the underlying filter func.
func All ¶
func All(filters ...FilterFunc) FilterFunc
All returns a FilterFunc that filters a list of releases determined by the predicate 'f0 && f1 && ... && fn'.
func Any ¶
func Any(filters ...FilterFunc) FilterFunc
Any returns a FilterFunc that filters a list of releases determined by the predicate 'f0 || f1 || ... || fn'.
func StatusFilter ¶
func StatusFilter(status rspb.Status_Code) FilterFunc
StatusFilter filters a set of releases by status code.
type SimpleHead ¶
type SimpleHead struct { Version string `json:"apiVersion"` Kind string `json:"kind,omitempty"` Metadata *struct { Name string `json:"name"` Annotations map[string]string `json:"annotations"` } `json:"metadata,omitempty"` }
SimpleHead defines what the structure of the head of a manifest file